diff --git a/python-smartypants.spec b/python-smartypants.spec index bc7a249..1b0394d 100644 --- a/python-smartypants.spec +++ b/python-smartypants.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2-) Name: python-smartypants Version: 2.0.1 -Release: 1mamba +Release: 2mamba Summary: A Python fork of SmartyPants Group: System/Libraries Vendor: openmamba @@ -12,9 +12,9 @@ Source: https://github.com/leohemsted/smartypants.py.git/v%{version}/smar #Source: https://pypi.debian.net/smartypants/smartypants-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython3-devel +BuildRequires: libpython311-devel ## AUTOBUILDREQ-END -Provides: python%{?with_pyver}dist(smartypants) +BuildRequires: python3-devel >= 3.11.5-3mamba %description %{summary}. @@ -27,26 +27,32 @@ Provides: python%{?with_pyver}dist(smartypants) %setup -q -n smartypants.py-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/smartypants; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +%endif -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -#%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info -#%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* +%{_bindir}/smartypants* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%{python_sitelib}/smartypants.py +%{python_sitelib}/__pycache__/smartypants.cpython* %doc COPYING %changelog +* Fri Sep 29 2023 Automatic Build System 2.0.1-2mamba +- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba + * Sun Oct 31 2021 Silvan Calarco 2.0.1-1mamba - update to 2.0.1