Adde python3 module

This commit is contained in:
Denis Silakov 2013-12-20 02:39:10 -05:00
parent 5f1e2c477e
commit b2d99456ca

View file

@ -9,6 +9,7 @@ License: MIT
Group: Development/Python Group: Development/Python
Url: http://pypi.python.org/pypi/six/ Url: http://pypi.python.org/pypi/six/
BuildArch: noarch BuildArch: noarch
BuildRequires: python-devel
%description %description
Six is a Python 2 and 3 compatibility library. It provides utility functions Six is a Python 2 and 3 compatibility library. It provides utility functions
@ -23,17 +24,41 @@ Online documentation is at http://packages.python.org/six/.
Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also
be found there. be found there.
%package -n python3-six
Summary: %{summary} / Python 3 library
BuildRequires: python3-devel
%description -n python3-six
python-six provides simple utilities for wrapping over differences between
Python 2 and Python 3.
%prep %prep
%setup -q -n %{oname}-%{version} %setup -qc
mv %{oname}-%{version} python2
cp -a python2 python3
%build %build
pushd python2
python setup.py build python setup.py build
popd
pushd python3
python3 setup.py build
popd
%install %install
pushd python2
python setup.py install --root=%{buildroot} python setup.py install --root=%{buildroot}
popd
pushd python3
python3 setup.py install --root=%{buildroot}
popd
%files %files
%doc README %doc python2/LICENSE python2/README python3/documentation/index.rst
%{py_puresitedir}/six.py* %{py_puresitedir}/*
%{py_puresitedir}/six*.egg-info
%files -n python3-six
%doc python3/LICENSE python3/README python2/documentation/index.rst
%{py3_puresitedir}/*