File persepolis.spec of Package persepolis

#
# spec file for package persepolis
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           persepolis
Version:        3.2.0
Release:        0
Summary:        A Download Manager GUI for aria2
License:        GPL-3.0-only
Group:          Productivity/Networking/Other
URL:            https://github.com/persepolisdm/persepolis
Source:         %{name}-%{version}.tar.gz
BuildRequires:  aria2
BuildRequires:  config(pulseaudio)
BuildRequires:  fdupes
BuildRequires:  ffmpeg
BuildRequires:  libnotify-tools
BuildRequires:  pulseaudio-utils
BuildRequires:  pkgconfig
BuildRequires:  python3
BuildRequires:  python3-psutil
BuildRequires:  python3-qt5
BuildRequires:  python3-requests
BuildRequires:  python3-setproctitle
BuildRequires:  python3-setuptools
BuildRequires:  python3-youtube-dl
BuildRequires:  sound-theme-freedesktop
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRequires:  youtube-dl
Requires:       aria2
Requires:       ffmpeg
Requires:       python3
Requires:       python3-psutil
Requires:       python3-qt5
Requires:       python3-requests
Requires:       python3-setproctitle
Requires:       python3-youtube-dl
Requires:       sound-theme-freedesktop
Requires:       youtube-dl
Recommends:     adwaita-qt5
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 --prefix=%{_prefix} --root=%{buildroot}
chmod 755 %{buildroot}%{python3_sitelib}/persepolis/__main__.py
chmod 755 '%{buildroot}%{python3_sitelib}/persepolis/Persepolis Download Manager.py'

%suse_update_desktop_file -r com.github.persepolisdm.persepolis Internet FileTransfer

%fdupes %{buildroot}%{python3_sitelib}

%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%endif

%if 0%{?suse_version} < 1330
%postun
%desktop_database_postun
%endif

%files
%license LICENSE
%doc README.md
%{_bindir}/persepolis
%{_datadir}/applications/com.github.persepolisdm.persepolis.desktop
%{_datadir}/metainfo/com.github.persepolisdm.persepolis.appdata.xml
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
%dir %{_datadir}/metainfo
%endif
%{_datadir}/pixmaps/persepolis.svg
%{_datadir}/pixmaps/persepolis-tray.svg
%{_mandir}/man1/persepolis.1%{?ext_man}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*-py%{py3_ver}.egg-info/

%changelog
openSUSE Build Service is sponsored by