mirror of
https://github.com/lanseyujie/rpmbuild.git
synced 2025-01-23 14:32:17 +08:00
feat: pack wechat
This commit is contained in:
parent
68d3585962
commit
c50170392b
5
SOURCES/.kyact
Normal file
5
SOURCES/.kyact
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
systemuuid=25ef0280-ec82-42b0-8fb6-10adccc67c02
|
||||||
|
netmac=00:07:3e:9c:2e:43
|
||||||
|
registernum=WCYU-3AS2-Q7LP-HWH6-SJPZ
|
||||||
|
serialnum=27734012
|
||||||
|
harddisk=WDC-PC-SN530-SDBPNPZ-512G_204485805972
|
19
SOURCES/LICENSE
Normal file
19
SOURCES/LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA1
|
||||||
|
|
||||||
|
TO:麒麟软件内部版本
|
||||||
|
SERIAL:100000
|
||||||
|
TERM:2021-08-29
|
||||||
|
CLASS:desktop
|
||||||
|
VERSION:Desktop
|
||||||
|
PLATFORM:x86_64
|
||||||
|
OSNAME:Kylin V10 SP1
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v2.0.14 (GNU/Linux)
|
||||||
|
|
||||||
|
iJwEAQECAAYFAmEDwk8ACgkQLRr+uL6cqPu6xAP/QRty0END7q0VxbbwgoKYefHk
|
||||||
|
VJF9F7SFSU5FGVUyR0pLmKzAMAmi+9xhbGw5tGp2XLIBOJHayK6TGhdpgvP+wT6s
|
||||||
|
0QLrh3c7HZhM0maoo6ZNR07bYzXXPcrMt6qTgaSRQnV+zfARn9+e2Ub5xfBfphtk
|
||||||
|
KHL1Nd4NRj0aICyjlys=
|
||||||
|
=6SEp
|
||||||
|
-----END PGP SIGNATURE-----
|
BIN
SOURCES/libactivation.so
Normal file
BIN
SOURCES/libactivation.so
Normal file
Binary file not shown.
7
SOURCES/lsb-release
Normal file
7
SOURCES/lsb-release
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
DISTRIB_ID=Kylin
|
||||||
|
DISTRIB_RELEASE=V10
|
||||||
|
DISTRIB_CODENAME=kylin
|
||||||
|
DISTRIB_DESCRIPTION="Kylin V10 SP1"
|
||||||
|
DISTRIB_KYLIN_RELEASE=V10
|
||||||
|
DISTRIB_VERSION_TYPE=enterprise
|
||||||
|
DISTRIB_VERSION_MODE=normal
|
7
SOURCES/wechat
Executable file
7
SOURCES/wechat
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# wechat only support xcb
|
||||||
|
export QT_QPA_PLATFORM="xcb"
|
||||||
|
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
||||||
|
/opt/wechat/wechat "$@"
|
23
SOURCES/wechat.desktop
Normal file
23
SOURCES/wechat.desktop
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Comment=WeChat
|
||||||
|
Comment[zh_CN]=微信
|
||||||
|
TryExec=wechat
|
||||||
|
Exec=wechat %u
|
||||||
|
Icon=wechat
|
||||||
|
Name=WeChat
|
||||||
|
Name[zh_CN]=微信
|
||||||
|
Categories=Network;InstantMessaging;Chat;
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Keywords=wechat;weixin;we;w;
|
||||||
|
Keywords[zh_CN]=微;微信;wechat;weixin;we;
|
||||||
|
StartupWMClass=wechat
|
||||||
|
X-GNOME-SingleWindow=true
|
||||||
|
SingleMainWindow=true
|
||||||
|
Actions=quit;
|
||||||
|
|
||||||
|
[Desktop Action quit]
|
||||||
|
Name=Quit WeChat
|
||||||
|
Name[zh_CN]=退出
|
||||||
|
Exec=bash -c '/usr/bin/killall wechat'
|
||||||
|
Icon=application-exit
|
20
SOURCES/wechat.svg
Normal file
20
SOURCES/wechat.svg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<filter id="filter1237" x="-.076174" y="-.079355" width="1.1523" height="1.1587" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation="0.2724989"/>
|
||||||
|
</filter>
|
||||||
|
<filter id="filter1241" x="-.060911" y="-.063456" width="1.1218" height="1.1269" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation="0.2724989"/>
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
<path d="m6.4268 2.6457a5.3685 4.954 0 0 1 5.3685 4.954 5.3685 4.954 0 0 1-5.3685 4.954 5.3685 4.954 0 0 1-2.2883-0.47734c-0.93841 0.79887-1.9351 0.87568-1.9351 0.87568 0.53757-0.61366 0.89477-1.4417 0.90308-1.461a5.3685 4.954 0 0 1-2.0481-3.8913 5.3685 4.954 0 0 1 5.3685-4.954z" fill="#000000" fill-rule="evenodd" filter="url(#filter1241)" opacity=".15" stroke-width=".85954"/>
|
||||||
|
<circle cx="-330.35" cy="-328.38" r="0" fill="#5e4aa6" stroke-width=".26458"/>
|
||||||
|
<circle cx="-60.794" cy="5.5457" r="0" fill="#5e4aa6" fill-rule="evenodd" stroke-width=".38234"/>
|
||||||
|
<path d="m6.4268 2.2497a5.3685 4.954 0 0 1 5.3685 4.954 5.3685 4.954 0 0 1-5.3685 4.954 5.3685 4.954 0 0 1-2.2883-0.47734c-0.93841 0.79887-1.9351 0.87568-1.9351 0.87568 0.53757-0.61366 0.89477-1.4417 0.90308-1.461a5.3685 4.954 0 0 1-2.0481-3.8913 5.3685 4.954 0 0 1 5.3685-4.954z" fill="#8fe25a" fill-rule="evenodd" stroke-width=".85954"/>
|
||||||
|
<path d="m11.582 6.8379a4.2928 3.9614 0 0 0-4.2928 3.9614 4.2928 3.9614 0 0 0 4.2928 3.9614 4.2928 3.9614 0 0 0 1.8298-0.38169c0.75039 0.63878 1.5474 0.7002 1.5474 0.7002-0.42988-0.49069-0.71549-1.1529-0.72214-1.1683a4.2928 3.9614 0 0 0 1.6377-3.1117 4.2928 3.9614 0 0 0-4.2928-3.9614z" fill="#000000" fill-rule="evenodd" filter="url(#filter1237)" opacity=".15" stroke-width=".6873"/>
|
||||||
|
<path d="m11.582 6.4419a4.2928 3.9614 0 0 0-4.2928 3.9614 4.2928 3.9614 0 0 0 4.2928 3.9614 4.2928 3.9614 0 0 0 1.8298-0.38169c0.75039 0.63878 1.5474 0.7002 1.5474 0.7002-0.42988-0.49069-0.71549-1.1529-0.72214-1.1683a4.2928 3.9614 0 0 0 1.6377-3.1117 4.2928 3.9614 0 0 0-4.2928-3.9614z" fill="#f2f2f2" fill-rule="evenodd" stroke-width=".6873"/>
|
||||||
|
<circle cx="4.4454" cy="5.5437" r=".82566" fill="#4d4d4d" fill-rule="evenodd" stroke-width=".82566"/>
|
||||||
|
<circle cx="8.2958" cy="5.5437" r=".82566" fill="#4d4d4d" fill-rule="evenodd" stroke-width=".82566"/>
|
||||||
|
<circle cx="9.9976" cy="9.087" r=".66023" fill="#4d4d4d" fill-rule="evenodd" stroke-width=".66023"/>
|
||||||
|
<circle cx="13.078" cy="9.087" r=".66023" fill="#4d4d4d" fill-rule="evenodd" stroke-width=".66023"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
59
SPECS/wechat.spec
Normal file
59
SPECS/wechat.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
%global __brp_check_rpaths %{nil}
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%define _build_id_links none
|
||||||
|
%undefine __arch_install_post
|
||||||
|
|
||||||
|
Name: wechat
|
||||||
|
Version: 1.0.0.241
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: WeChat
|
||||||
|
License: Proprietary
|
||||||
|
URL: https://weixin.qq.com
|
||||||
|
Source0: https://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1/pool/all/wechat-beta_%{version}_amd64.deb
|
||||||
|
Source1: wechat.desktop
|
||||||
|
Source2: wechat.svg
|
||||||
|
Source3: wechat
|
||||||
|
Source4: libactivation.so
|
||||||
|
Source5: .kyact
|
||||||
|
Source6: LICENSE
|
||||||
|
Source7: lsb-release
|
||||||
|
|
||||||
|
AutoReqProv: no
|
||||||
|
BuildRequires: dpkg
|
||||||
|
Requires: libbz2.so.1()(64bit)
|
||||||
|
|
||||||
|
%description
|
||||||
|
WeChat from Tencent
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -T -c %{name}-%{version}
|
||||||
|
dpkg -X %{S:0} %{_builddir}/%{name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}/opt/wechat/
|
||||||
|
cp -r %{_builddir}/%{name}-%{version}/opt/wechat*/* %{buildroot}/opt/wechat/
|
||||||
|
cp -L /usr/lib64/libbz2.so.1 %{buildroot}/opt/wechat/libbz2.so.1.0
|
||||||
|
install -Dm644 %{S:1} -t %{buildroot}%{_datarootdir}/applications/
|
||||||
|
# Icon From: https://github.com/vinceliuice/WhiteSur-icon-theme
|
||||||
|
install -Dm644 %{S:2} -t %{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps/
|
||||||
|
install -Dm755 %{S:3} -t %{buildroot}%{_bindir}
|
||||||
|
install -d %{buildroot}/usr/lib/
|
||||||
|
install -Dm755 %{S:4} -t %{buildroot}/usr/lib/
|
||||||
|
install -d %{buildroot}%{_sysconfdir}
|
||||||
|
cp %{S:5} %{S:6} %{S:7} %{buildroot}%{_sysconfdir}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_datarootdir}/applications/wechat.desktop
|
||||||
|
%{_datarootdir}/icons/hicolor/scalable/apps/wechat.svg
|
||||||
|
%{_bindir}/wechat
|
||||||
|
%{_sysconfdir}/.kyact
|
||||||
|
%{_sysconfdir}/LICENSE
|
||||||
|
%{_sysconfdir}/lsb-release
|
||||||
|
/usr/lib/libactivation.so
|
||||||
|
/opt/wechat/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu May 23 2024 nobody <nobody@nobody.com> - 1.0.0.241
|
||||||
|
- new version
|
Loading…
Reference in New Issue
Block a user