File persepolis.spec of Package persepolis
#
# spec file for package persepolis
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: persepolis
Version: @SERVICE@
Release: 0
Summary: A Download Manager GUI for aria2
License: GPL-3.0
Group: Productivity/Networking/Other
Url: https://github.com/persepolisdm/persepolis
Source: %{name}-%{version}.tar.xz
BuildRequires: aria2
BuildRequires: fdupes
BuildRequires: libnotify-tools
BuildRequires: python3-qt5
BuildRequires: python3-requests
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
Requires: aria2
Requires: libnotify-tools
Requires: python3
Requires: python3-qt5
Requires: python3-requests
Requires: python3-setproctitle
Requires: python3-urllib3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Persepolis Download Manager is a GUI for aria2.
Written in PYQT5.
For GNU/Linux and FreeBSD and PCBSD and OpenBSD
and Mac and Windows.
%prep
%setup -q
%build
python3 setup.py build
%install
python3 setup.py install -O1 \
--prefix=%{_prefix} \
--root=%{buildroot} \
--record-rpm=files.lst
grep -rl '^#!' %{buildroot}%{python3_sitelib}/%{name}/ | xargs -I {} chmod 0755 {}
%suse_update_desktop_file -r %{name} Internet FileTransfer
%fdupes %{buildroot}%{python3_sitelib}
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*.??g
%{_mandir}/man?/%{name}.?%{ext_man}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*-py%{py3_ver}.egg-info/
%changelog