-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
zapzap.spec
69 lines (51 loc) · 1.69 KB
/
zapzap.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
# Arquivo .spec para Fedora
%global srcname zapzap
%global srcversion 5.3.9
%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
%if 0%{?fedora}
BuildRequires: python3-pyqt6
Requires: python3-pyqt6-base
Requires: python3-pyqt6-sip
Requires: python3-pyqt6-webengine
Requires: python3-dbus
%endif
%if 0%{?mageia}
BuildRequires: python3-qt6
Requires: python3-pyqt6-sip
Requires: python3-dbus
Requires: python3-qt6-webenginewidgets
Requires: python3-qt6
%endif
%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