automatic version update by autodist [release 2.1.0-1mamba;Mon May 06 2024]
This commit is contained in:
parent
aac935a4cc
commit
1315913f11
@ -1,6 +1,7 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-autopep8
|
Name: python-autopep8
|
||||||
Version: 2.0.4
|
Version: 2.1.0
|
||||||
Release: 2mamba
|
Release: 1mamba
|
||||||
Summary: Automatic generated to pep8 checked code
|
Summary: Automatic generated to pep8 checked code
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -11,9 +12,9 @@ Source: http://pypi.debian.net/autopep8/autopep8-%{version}.tar.gz
|
|||||||
License: MIT
|
License: MIT
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: libpython311-devel
|
BuildRequires: libpython311-devel
|
||||||
|
BuildRequires: python3.11dist(pycodestyle)
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: python3-devel >= 3.11.5-3mamba
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||||
Requires: python >= %python_version
|
|
||||||
Requires: python-pep8
|
Requires: python-pep8
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -29,30 +30,32 @@ This is old style tool, wrapped pep8 via subprocess module.
|
|||||||
%setup -q -n autopep8-%{version}
|
%setup -q -n autopep8-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python} setup.py install \
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||||
-O1 --skip-build \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--install-headers=%{_includedir}/python \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--single-version-externally-managed \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
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}
|
%files %{?pyappend}
|
||||||
mv %{buildroot}%{_bindir}/autopep8 %{buildroot}%{_bindir}/autopep8-%{?pyappend}
|
|
||||||
sed -i "s|%{_bindir}/autopep8|%{_bindir}/autopep8-%{?pyappend}|" %{name}.filelist
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{?pyappend} -f %{name}.filelist
|
|
||||||
%defattr(-,root,root)
|
%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
|
%doc README.rst
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 06 2024 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.0.4-2mamba
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.0.4-2mamba
|
||||||
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user