2024-01-06 11:28:12 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-moddb
|
2024-04-15 10:05:03 +02:00
|
|
|
Version: 0.11.0
|
|
|
|
Release: 1mamba
|
2024-01-06 11:28:12 +01:00
|
|
|
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
|
2024-02-23 15:56:58 +01:00
|
|
|
BuildRequires: (python3.11dist(beautifulsoup4) >= 4 with python3.11dist(beautifulsoup4) < 5)
|
|
|
|
BuildRequires: (python3.11dist(requests) >= 2 with python3.11dist(requests) < 3)
|
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 11:28:12 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n moddb-%{version}
|
2024-02-23 15:56:58 +01:00
|
|
|
sed -i "s|pyrate-limiter == 2.*|pyrate-limiter >= 2|" requirements.txt
|
2024-01-06 11:28:12 +01:00
|
|
|
|
|
|
|
%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
|
2024-04-15 10:05:03 +02:00
|
|
|
* Mon Apr 15 2024 Automatic Build System <autodist@openmamba.org> 0.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-23 15:56:58 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-06 11:28:12 +01:00
|
|
|
* Sat Aug 26 2023 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:28:12 +01:00
|
|
|
* Tue Jul 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1-1mamba
|
|
|
|
- package created using the webbuild interface
|