From 61f090a2aa7b7e8b19e5a506607f8013fb8fe3f9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:44:36 +0100 Subject: [PATCH] python 2.7 mass rebuild [release 1.0b6-2mamba;Fri May 17 2013] --- README.md | 3 +++ python-apipkg.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 python-apipkg.spec diff --git a/README.md b/README.md index ac28985..42342b2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # python-apipkg +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. + diff --git a/python-apipkg.spec b/python-apipkg.spec new file mode 100644 index 0000000..146bca1 --- /dev/null +++ b/python-apipkg.spec @@ -0,0 +1,53 @@ +Name: python-apipkg +Version: 1.0b6 +Release: 2mamba +Summary: A namespace control and lazy-import mechanism for Python +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://bitbucket.org/hpk42/apipkg +Source: http://pypi.python.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz +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. + +%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 -f %{name}.filelist +%defattr(-,root,root) +%doc CHANGELOG README.txt + +%changelog +* Fri May 17 2013 Silvan Calarco 1.0b6-2mamba +- python 2.7 mass rebuild + +* Thu Sep 30 2010 Stefano Cotta Ramusino 1.0b6-1mamba +- package created by autospec