rpmbuild/SPECS/wechat.spec
2024-12-24 20:48:59 +08:00

56 lines
1.5 KiB
RPMSpec

%global __brp_check_rpaths %{nil}
%global debug_package %{nil}
%define _build_id_links none
%undefine __arch_install_post
Name: wechat
Version: 4.0.1.7
Release: 1%{?dist}
Summary: WeChat
License: Proprietary
URL: https://linux.weixin.qq.com
Source0: https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.rpm
Source1: wechat.desktop
Source2: wechat.svg
Source3: wechat
AutoReqProv: no
BuildRequires: rpm, cpio
Requires: libbz2.so.1()(64bit)
%description
WeChat from Tencent
%prep
%setup -T -c %{name}-%{version}
rpm2cpio %{S:0} | cpio -idmv --no-absolute-filenames -D %{_builddir}/%{name}-%{version}
%build
%install
install -d %{buildroot}/opt/wechat/
cp -r %{_builddir}/%{name}-%{version}/opt/wechat*/* %{buildroot}/opt/wechat/
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}
%files
%{_datarootdir}/applications/wechat.desktop
%{_datarootdir}/icons/hicolor/scalable/apps/wechat.svg
%{_bindir}/wechat
/opt/wechat/
%changelog
* Thu Dec 12 2024 nobody <nobody@nobody.com> - 4.0.1.7
- new version
* Fri Nov 8 2024 nobody <nobody@nobody.com> - 4.0.0.30
- new version
* Mon Nov 4 2024 nobody <nobody@nobody.com> - 4.0.0.21
- new version
* Thu May 23 2024 nobody <nobody@nobody.com> - 1.0.0.241
- new version