python-apipkg/python-apipkg.spec

76 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-apipkg
Version: 2.1.0
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: libpython3-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
%{__python} setup.py build
%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
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/apipkg-%{version}-py*.egg-info
%{python_sitearch}/apipkg-%{version}-py*.egg-info/*
%doc CHANGELOG
%changelog
* 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