80 lines
2.5 KiB
RPMSpec
80 lines
2.5 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: python-apipkg
|
|
Version: 3.0.2
|
|
Release: 1mamba
|
|
Summary: A namespace control and lazy-import mechanism for Python
|
|
Group: System/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/pytest-dev/apipkg
|
|
Source: https://pypi.debian.net/apipkg/apipkg-%{version}.tar.gz
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython311-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
With apipkg you can control the exported namespace of a python package and greatly reduce the number of imports for your users.
|
|
It is a small pure python module that works on virtually all Python versions.
|
|
|
|
%if 0%{?with_pyver}
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n apipkg-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
%files %{?pyappend}
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
%{python_sitelib}/%{pkgname}/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|
|
|
|
* Sun Apr 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
|
|
- rebuilt with python 3.10
|
|
|
|
* Sat Oct 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
|
|
- update to 2.1.0
|
|
|
|
* Thu Sep 23 2021 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Dec 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-2mamba
|
|
- rebuilt with -py3 subpackage
|
|
|
|
* Fri Sep 28 2018 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Dec 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-1mamba
|
|
- update to 1.4
|
|
|
|
* Wed May 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
|
|
- update to 1.2
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0b6-2mamba
|
|
- python 2.7 mass rebuild
|
|
|
|
* Thu Sep 30 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.0b6-1mamba
|
|
- package created by autospec
|