diff --git a/SOURCES/.kyact b/SOURCES/.kyact new file mode 100644 index 0000000..5af4b92 --- /dev/null +++ b/SOURCES/.kyact @@ -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 diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..b795523 --- /dev/null +++ b/SOURCES/LICENSE @@ -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----- diff --git a/SOURCES/libactivation.so b/SOURCES/libactivation.so new file mode 100644 index 0000000..258e70d Binary files /dev/null and b/SOURCES/libactivation.so differ diff --git a/SOURCES/lsb-release b/SOURCES/lsb-release new file mode 100644 index 0000000..25aaa17 --- /dev/null +++ b/SOURCES/lsb-release @@ -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 diff --git a/SOURCES/wechat b/SOURCES/wechat new file mode 100755 index 0000000..5ced403 --- /dev/null +++ b/SOURCES/wechat @@ -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 "$@" diff --git a/SOURCES/wechat.desktop b/SOURCES/wechat.desktop new file mode 100644 index 0000000..5a3464f --- /dev/null +++ b/SOURCES/wechat.desktop @@ -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 diff --git a/SOURCES/wechat.svg b/SOURCES/wechat.svg new file mode 100644 index 0000000..562efc7 --- /dev/null +++ b/SOURCES/wechat.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS/wechat.spec b/SPECS/wechat.spec new file mode 100644 index 0000000..75a9e11 --- /dev/null +++ b/SPECS/wechat.spec @@ -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 - 1.0.0.241 + - new version