From 6fde35d480ce0d27230e45fe53e5335d8147f336 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Feb 10 2012 21:35:19 +0000 Subject: * Wed Nov 08 2010 Fabian Affolter - 1.0-1 - Initial package --- diff --git a/.gitignore b/.gitignore index e69de29..8e9fdf4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/apipkg-1.0.tar.gz diff --git a/python-apipkg.spec b/python-apipkg.spec new file mode 100644 index 0000000..bdf402d --- /dev/null +++ b/python-apipkg.spec @@ -0,0 +1,58 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%endif + +%global srcname apipkg + +Name: python-%{srcname} +Version: 1.0 +Release: 1%{?dist} +Summary: Python namespace control and lazy-import mechanism + +Group: Development/Languages +License: MIT +URL: http://pypi.python.org/pypi/apipkg +Source0: http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-nose + + +%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 python +module that works on virtually all Python versions, including CPython2.3 to +Python3.1, Jython and PyPy. It co-operates well with Python's help() system, +custom importers (PEP302) and common command line completion tools. + + +%prep +%setup -q -n %{srcname}-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install --skip-build --root %{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGELOG README.txt +%{python_sitelib}/%{srcname}.p* +%{python_sitelib}/%{srcname}*.egg-info + + +%changelog +* Wed Nov 08 2010 Fabian Affolter - 1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..ab09a8c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e8319fc4a3ca8edb13b5d7e233acb9ea apipkg-1.0.tar.gz