2024-01-06 10:44:36 +01:00
|
|
|
Name: python-apipkg
|
2024-01-06 10:44:36 +01:00
|
|
|
Version: 1.5
|
2024-01-06 10:44:36 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 10:44:36 +01:00
|
|
|
Summary: A namespace control and lazy-import mechanism for Python
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://bitbucket.org/hpk42/apipkg
|
2024-01-06 10:44:36 +01:00
|
|
|
Source: https://pypi.debian.net/apipkg/apipkg-%{version}.tar.gz
|
2024-01-06 10:44:36 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: python >= %python_version
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
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.
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 10:44:36 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 10:44:36 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:44:36 +01:00
|
|
|
%doc CHANGELOG
|
2024-01-06 10:44:36 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:44:36 +01:00
|
|
|
* Mon Dec 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-2mamba
|
|
|
|
- rebuilt with -py3 subpackage
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
* Fri Sep 28 2018 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
* Thu Dec 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-1mamba
|
|
|
|
- update to 1.4
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
* Wed May 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
|
|
|
|
- update to 1.2
|
|
|
|
|
2024-01-06 10:44:36 +01:00
|
|
|
* 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
|