[python-importlib/el6] * initial import

topdog topdog at fedoraproject.org
Sat Jul 16 23:28:58 UTC 2011


commit 151e2d813b01e27eeded24568c0bb10f10f4f828
Author: Andrew Colin Kissa <andrew at topdog.za.net>
Date:   Sun Jul 17 01:28:33 2011 +0200

     * initial import

 .gitignore            |    1 +
 python-importlib.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..098fc42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/importlib-1.0.2.tar.bz2
diff --git a/python-importlib.spec b/python-importlib.spec
new file mode 100644
index 0000000..ae383ec
--- /dev/null
+++ b/python-importlib.spec
@@ -0,0 +1,53 @@
+%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
+
+Name:           python-importlib
+Version:        1.0.2
+Release:        1%{?dist}
+Summary:        Backport of importlib.import_module() from Python 2.7
+
+Group:          Development/Languages
+License:        Python
+URL:            http://pypi.python.org/pypi/importlib
+Source0:        http://pypi.python.org/packages/source/i/importlib/importlib-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+Conflicts:      python(abi) = 2.7
+
+%description
+This package contains the code from importlib as found in Python 2.7.
+It is provided so that people who wish to use importlib.import_module()
+with a version of Python prior to 2.7 or in 3.0 have the function
+readily available. The code in no way deviates from what can be found
+in the 2.7 trunk.
+
+
+%prep
+%setup -q -n importlib-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+ 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{python_sitelib}/*
+
+
+%changelog
+* Tue Jun 21 2011 Andrew Colin Kissa <andrew at topdog.za.net> 1.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..52dcb7f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+58076727cc5d0eee3e91067fabda27eb  importlib-1.0.2.tar.bz2


More information about the scm-commits mailing list