# 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@redhat.com> - 3.2.3-1
- initial package