-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathcom.rtosta.zapzap.spec
More file actions
67 lines (49 loc) · 1.8 KB
/
com.rtosta.zapzap.spec
File metadata and controls
67 lines (49 loc) · 1.8 KB
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
# Arquivo .spec para Fedora (by @dbarbosa0)
# Based on PKGBUILD from AUR
%global srcname zapzap
%global srcversion 6.3.4.1
%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/%{srcname}/releases/tag/%{srcversion}/%{srcname}-%{srcversion}.tar.gz
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: python-build
BuildRequires: python-installer
BuildRequires: python-wheel
%if 0%{?fedora}
BuildRequires: python3-pyqt6
Requires: python3-pyqt6-base
Requires: python3-pyqt6-sip
Requires: python3-pyqt6-webengine
Requires: python3-dbus
%endif
%description
Zapzap - WhatsApp Messenger for Linux
%prep
%autosetup -n %{srcname}-%{version}
%build
%python3 -m build --wheel --no-isolation
%install
%python3 -m installer --destdir=%{buildroot} dist/*.whl
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