[python-subprocess32] import from srpm

dmalcolm dmalcolm at fedoraproject.org
Thu Feb 14 18:36:45 UTC 2013


commit da506b2a737e89efb8e62beb1d66fe0f007551f0
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Thu Feb 14 13:36:42 2013 -0500

    import from srpm

 .gitignore               |    1 +
 python-subprocess32.spec |   51 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a7ab17a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/subprocess32-3.2.3.tar.gz
diff --git a/python-subprocess32.spec b/python-subprocess32.spec
new file mode 100644
index 0000000..fbfdd88
--- /dev/null
+++ b/python-subprocess32.spec
@@ -0,0 +1,51 @@
+# we don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
+Name:           python-subprocess32
+Version:        3.2.3
+Release:        1%{?dist}
+Summary:        Backport of subprocess module from Python 3.2 to Python 2.*
+
+License:        Python
+URL:            http://pypi.python.org/pypi/subprocess32/
+Source0:        http://python-subprocess32.googlecode.com/files/subprocess32-%{version}.tar.gz
+
+BuildRequires:  python-devel
+
+%description
+Backport of the subprocess module from Python 3.2 for use on 2.x.
+
+
+%prep
+%setup -q -n subprocess32-%{version}
+
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+
+%check
+PYTHONPATH=$(pwd) %{__python} test_subprocess32.py
+
+
+%files
+%doc LICENSE README.txt
+%{python_sitearch}/_posixsubprocess.so
+%{python_sitearch}/subprocess32-%{version}-py2.7.egg-info
+%{python_sitearch}/subprocess32.py*
+
+
+%changelog
+* Wed Feb 13 2013 David Malcolm <dmalcolm at redhat.com> - 3.2.3-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..9dfda96 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+29427c819c7288873c3a0a775b4d5d9a  subprocess32-3.2.3.tar.gz


More information about the scm-commits mailing list