From df774dd4246f33cbb52cfdf422cd15b5b3b40684 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 10:44:37 +0100 Subject: [PATCH] automatic version update by autodist [release 3.0.1-1mamba;Fri Oct 07 2022] --- python-apipkg.spec | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/python-apipkg.spec b/python-apipkg.spec index 9bcc74c..f44f4ad 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -1,5 +1,6 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-apipkg -Version: 2.1.1 +Version: 3.0.1 Release: 1mamba Summary: A namespace control and lazy-import mechanism for Python Group: System/Libraries/Python @@ -26,30 +27,24 @@ It is a small pure python module that works on virtually all Python versions. %setup -q -n apipkg-%{version} %build -%{__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 "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist - -%clean -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/apipkg-%{version}-py*.egg-info -%{python_sitearch}/apipkg-%{version}-py*.egg-info/* -%doc CHANGELOG +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE %changelog +* Fri Oct 07 2022 Automatic Build System 3.0.1-1mamba +- automatic version update by autodist + * Mon May 09 2022 Automatic Build System 2.1.1-1mamba - automatic version update by autodist