%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-pycountry Version: 23.12.11 Release: 2mamba Summary: ISO country, subdivision, language, currency and script definitions and their translations Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://pypi.org/project/pycountry/ Source: https://pypi.debian.net/pycountry/pycountry-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba %description %{summary}. %if 0%{?with_pyver} %define py_requires_append \ Obsoletes: pycountry-py3 < 23.12.11\ Obsoletes: pycountry-py310 < 23.12.11 %pyver_package %endif %prep %setup -q -n pycountry-%{version} %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.txt %changelog * Mon Feb 19 2024 Silvan Calarco 23.12.11-2mamba - fixed obsolete for pycountry-py3 * Fri Feb 16 2024 Automatic Build System 23.12.11-1mamba - automatic version update by autodist * Tue Sep 26 2023 Automatic Build System 22.3.5-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba * Tue May 03 2022 Silvan Calarco 22.3.5-1mamba - update to 22.3.5 * Fri Nov 21 2014 Automatic Build System 1.9-1mamba - automatic update by autodist * Sun Jul 13 2014 Automatic Build System 1.8-1mamba - automatic update by autodist * Sun Jun 01 2014 Automatic Build System 1.6-1mamba - automatic update by autodist * Sat Dec 14 2013 Silvan Calarco 1.3-1mamba - package created using the webbuild interface