python-moddb/python-moddb.spec

67 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-moddb
Version: 0.11.0
Release: 1mamba
Summary: A scrapper for ModDB Mod and Game pages
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ClementJ18/moddb
Source: https://pypi.debian.net/moddb/moddb-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: (python3.11dist(beautifulsoup4) >= 4 with python3.11dist(beautifulsoup4) < 5)
BuildRequires: (python3.11dist(requests) >= 2 with python3.11dist(requests) < 3)
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n moddb-%{version}
sed -i "s|pyrate-limiter == 2.*|pyrate-limiter >= 2|" requirements.txt
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE
%changelog
* Mon Apr 15 2024 Automatic Build System <autodist@openmamba.org> 0.11.0-1mamba
- automatic version update by autodist
* Wed Feb 21 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.0-2mamba
- relax version requirement for pyrate-limiter
* Tue Feb 13 2024 Automatic Build System <autodist@openmamba.org> 0.10.0-1mamba
- automatic version update by autodist
* Sat Aug 26 2023 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Tue Jul 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1-1mamba
- package created using the webbuild interface