automatic version update by autodist [release 3.0.1-1mamba;Fri Oct 07 2022]

This commit is contained in:
Automatic Build System 2024-01-06 10:44:37 +01:00
parent c730a5c361
commit df774dd424

View File

@ -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 <autodist@mambasoft.it> 3.0.1-1mamba
- automatic version update by autodist
* Mon May 09 2022 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist