Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Arquivo .spec para Mageia
- %global srcname zapzap
- %global srcversion 5.3.6
- %global __python /usr/bin/python3
- %global _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.rpm
- Name: %{srcname}
- Version: %{srcversion}
- Release: 1%{?dist}
- Summary: Zapzap - WhatsApp Messenger for Linux
- License: GNU General Public License v3.0
- URL: https://github.com/rafatosta/%{srcname}
- Source0: https://github.com/rafatosta/zapzap/archive/refs/tags/%{srcversion}.tar.gz
- # Requisitos de construção
- BuildArch: noarch
- BuildRequires: python3-devel
- BuildRequires: desktop-file-utils
- BuildRequires: python3-setuptools
- BuildRequires: python3-qt6
- Requires: python3-pyqt6-sip
- Requires: python3-dbus
- Requires: python3-qt6-webenginewidgets
- Requires: python3-qt6
- %description
- Zapzap - WhatsApp Messenger for Linux
- %prep
- %autosetup -n %{srcname}-%{version}
- %build
- %py3_build
- %install
- %python3 setup.py install --root %{buildroot}
- mkdir -p $RPM_BUILD_ROOT/usr/share/applications
- mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps/
- cp -R share/applications/com.rtosta.zapzap.desktop $RPM_BUILD_ROOT/usr/share/applications/com.rtosta.zapzap.desktop
- cp -R share/icons/com.rtosta.zapzap.svg $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps/com.rtosta.zapzap.svg
- %check
- %files
- %license LICENSE
- %doc README.md
- %{python3_sitelib}/*
- %{_bindir}/%{srcname}
- /usr/share/applications/com.rtosta.zapzap.desktop
- /usr/share/icons/hicolor/scalable/apps/com.rtosta.zapzap.svg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement