diff --git a/python-automat.spec b/python-automat.spec index 38ebb63..9064e70 100644 --- a/python-automat.spec +++ b/python-automat.spec @@ -1,19 +1,17 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-automat -Version: 22.10.0 -Release: 2mamba +Version: 24.8.1 +Release: 1mamba Summary: Self-service finite-state machines for the programmer on the go Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/glyph/Automat -Source: https://pypi.debian.net/Automat/Automat-%{version}.tar.gz +Source: https://pypi.debian.net/Automat/automat-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel -BuildRequires: python3.11dist(attrs) -BuildRequires: python3.11dist(setuptools) -BuildRequires: python3.11dist(six) ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba @@ -25,34 +23,35 @@ BuildRequires: python3-devel >= 3.11.5-3mamba %endif %prep -%setup -q -n Automat-%{version} +%setup -q -n automat-%{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}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif -%if "%{?with_pyver}" != "3" -mv %{buildroot}%{_bindir}/automat-visualize{,%{?with_pyver}} -sed -i "s|automat-visualize|automat-visualize%{?with_pyver}|" %{name}.filelist -%endif - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/Automat-%{version}-py*.egg-info -%{python_sitearch}/Automat-%{version}-py*.egg-info/* +%{_bindir}/automat-visualize +%dir %{python_sitelib}/Automat-%{version}.dist-info +%{python_sitelib}/Automat-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* %doc LICENSE %changelog +* Wed Dec 04 2024 Silvan Calarco 24.8.1-1mamba +- update to 24.8.1 + * Wed Sep 27 2023 Automatic Build System 22.10.0-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba