diff --git a/python-autopep8.spec b/python-autopep8.spec index 48f121d..d9574bf 100644 --- a/python-autopep8.spec +++ b/python-autopep8.spec @@ -1,6 +1,7 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-autopep8 -Version: 2.0.4 -Release: 2mamba +Version: 2.1.0 +Release: 1mamba Summary: Automatic generated to pep8 checked code Group: System/Libraries Vendor: openmamba @@ -11,9 +12,9 @@ Source: http://pypi.debian.net/autopep8/autopep8-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel +BuildRequires: python3.11dist(pycodestyle) ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba -Requires: python >= %python_version Requires: python-pep8 BuildArch: noarch @@ -29,30 +30,32 @@ This is old style tool, wrapped pep8 via subprocess module. %setup -q -n autopep8-%{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=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ - --single-version-externally-managed \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "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 0%{?with_pyver} -mv %{buildroot}%{_bindir}/autopep8 %{buildroot}%{_bindir}/autopep8-%{?pyappend} -sed -i "s|%{_bindir}/autopep8|%{_bindir}/autopep8-%{?pyappend}|" %{name}.filelist -%endif - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) +%{_bindir}/autopep8 +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%{python3_sitelib}/__pycache__/autopep8.cpython-*.pyc +%{python3_sitelib}/autopep8.py %doc README.rst %changelog +* Mon May 06 2024 Automatic Build System 2.1.0-1mamba +- automatic version update by autodist + * Tue Sep 26 2023 Automatic Build System 2.0.4-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba