-
Notifications
You must be signed in to change notification settings - Fork 22
/
dingtalk-bin.spec
109 lines (85 loc) · 3.05 KB
/
dingtalk-bin.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
%global __brp_check_rpaths %{nil}
%global debug_package %{nil}
%define _build_id_links none
%undefine __arch_install_post
AutoReqProv: no
Name: dingtalk-bin
Version: 7.6.0.40718
Release: 2%{?dist}
Summary: 钉钉
License: Custom
URL: https://gov.dingtalk.com
Source0: https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_%{version}_amd64.deb
Source1: https://tms.dingtalk.com/markets/dingtalk/service-terms-zh
Source2: dingtalk-bin.desktop
Source3: dingtalk.svg
Source4: dingtalk-launcher.sh
Source5: libcairo.so.2
Source6: xdg-open
BuildRequires: dpkg
Requires: libGLU.so.1
Requires: libxcrypt-compat
%description
钉钉
%prep
%setup -T -c %{name}-%{version}
dpkg -X %{S:0} .
%define BUILD_DIR %{_builddir}/%{name}-%{version}
%build
cp %{S:1} ./LICENSE
%install
# Main program
install -d %{buildroot}/opt/dingtalk-bin
mv %{BUILD_DIR}/opt/apps/com.alibabainc.dingtalk/files/* %{buildroot}/opt/dingtalk-bin/
# Desktop file
install -Dm644 %{S:2} -t %{buildroot}%{_datarootdir}/applications/
# Icons
install -Dm644 %{S:3} -t %{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps/
# Launcher
install -d %{buildroot}%{_bindir}
install -Dm755 %{S:4} %{buildroot}%{_bindir}/dingtalk
# Patch
# fix cairo
install -Dm644 %{S:5} %{buildroot}/opt/dingtalk-bin/*Release*
# fix chinese input in workbench
rm -rf %{buildroot}/opt/dingtalk-bin/*Release*/{libm.so.6,Resources/{i18n/tool/*.exe,qss/mac,web_content/NativeWebContent_*.zip},libstdc*}
# fix chinese input in workbench
rm -rf %{buildroot}/opt/dingtalk-bin/*Release*/libgtk-x11-2.0.so.*
# fix open url
install -Dm755 %{S:6} -t %{buildroot}/opt/dingtalk-bin/*Release*
# remove unused lib
rm -rf %{buildroot}/opt/dingtalk-bin/*Release*/{libcurl.so.4,libz*}
%files
%license LICENSE
%{_bindir}/dingtalk
%{_datarootdir}/applications/*
%{_datarootdir}/icons/hicolor/scalable/apps/*
/opt/dingtalk-bin/
%changelog
* Tue Jan 17 2023 zhullyb <[email protected]> - 1.6.0.230113-2
- fix open url
* Tue Jan 17 2023 zhullyb <[email protected]> - 1.6.0.230113-1
- new version
- remove unused lib
- depend libGLU.so.1 and libxcrypt-compat
- use x11 if dingtalk do not support wayland
* Tue Jan 17 2023 zhullyb <[email protected]> - 1.4.0.20829-1
- new version
* Mon May 23 2022 zhullyb <[email protected]> - 1.4.0.20425-2
- Build for Fedora36
* Sat Apr 30 2022 zhullyb <[email protected]> - 1.4.0.20425-1
- new version
* Fri Apr 15 2022 zhullyb <[email protected]> - 1.4.0.20413-1
- new version
* Sat Apr 09 2022 zhullyb <[email protected]> - 1.4.0.20408-1
- new version
* Thu Mar 24 2022 zhullyb <[email protected]> - 1.4.0.42-1
- new version
* Sat Mar 19 2022 zhullyb <[email protected]> - 1.4.0.37-1
- new version
* Thu Feb 24 2022 zhullyb <[email protected]> - 1.3.0.20214-2
- Disable debuginfo package generation.
* Sun Feb 20 2022 zhullyb <[email protected]> - 1.3.0.20214-1
- Update to 1.3.0.20214
* Mon Feb 14 2022 zhullyb <[email protected]> - 1.3.0.12502-1
- First build.