File persepolis.spec of Package persepolis

#
# spec file for package persepolis
#
# Copyright (c) 2024 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:        5.2.0
Release:        0
Summary:        A download manager written in Python
License:        GPL-3.0
URL:            https://persepolisdm.github.io
Source:         https://github.com/persepolisdm/persepolis/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Group:          Productivity/Networking/Web/Utilities
BuildArch:      noarch
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  python3
Requires:       python3-PySocks
Requires:       python3-pyside6
Requires:       python3-requests
Requires:       python3-setproctitle
Requires:       python3-psutil
Requires:       python3-urllib3
Recommends:     python3-dasbus
Recommends:     yt-dlp
Recommends:     ffmpeg
Recommends:     sound-theme-freedesktop

%description
Persepolis is a download manager written in Python. Persepolis is a sample of free and open source software. It's developed for GNU/Linux distributions, BSDs, MacOS, and Microsoft Windows.

%prep
%autosetup -p1 

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/persepolis
%{_datadir}/applications/com.github.persepolisdm.persepolis.desktop
%{_datadir}/metainfo/com.github.persepolisdm.persepolis.appdata.xml
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/com.github.persepolisdm.persepolis.svg
%{_datadir}/icons/hicolor/scalable/apps/persepolis-tray.svg
%{_mandir}/man1/persepolis.1%{ext_man}
%{python3_sitelib}/%{name}/

%changelog
openSUSE Build Service is sponsored by