File python-torra.spec of Package python-torra

#
# spec file for package python-torra


Name:           python-torra
Version:        1.0.41
Release:        0
Summary:        Torrent client
License:        MIT
URL:            https://github.com/colin-i/tora
#Source:         https://files.pythonhosted.org/packages/source/t/torra/torra-{version}.tar.gz
Source:         orig.tar.gz
Patch0: p0.patch.gz
Patch1: p1.patch.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module appdirs >= 1.4.3}
# /SECTION
BuildRequires:  fdupes
Requires:       python-appdirs >= 1.4.3
Requires:       python3-libtorrent-rasterbar
Requires:       libgtk-4-1
BuildArch:      noarch
%python_subpackages

%description
Torrent client

%prep
%autosetup -p1 -n torra-1

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/torra
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative torra

%postun
%python_uninstall_alternative torra

%files %{python_files}
%doc README.md
%python_alternative %{_bindir}/torra
%{python_sitelib}/torra
%{python_sitelib}/torra-%{version}.dist-info

%changelog
* Fri Jun 20 2025 Costin Botescu <costin.botescu@gmail.com> 1.0.37-0
- orig (costin.botescu@gmail.com)
openSUSE Build Service is sponsored by