2012-02-02 00:54:20 +04:00
|
|
|
%define oname six
|
|
|
|
|
|
|
|
Name: python-%{oname}
|
2019-11-07 09:15:40 +03:00
|
|
|
Version: 1.13.0
|
2017-02-04 19:07:51 +03:00
|
|
|
Release: 3
|
2012-02-02 00:54:20 +04:00
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
2014-06-14 21:06:50 +04:00
|
|
|
Source0: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
2012-02-02 00:54:20 +04:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Python
|
2019-11-07 09:15:40 +03:00
|
|
|
URL: https://github.com/benjaminp/six/releases
|
2012-02-02 00:54:20 +04:00
|
|
|
BuildArch: noarch
|
2014-04-12 16:30:58 +04:00
|
|
|
BuildRequires: pkgconfig(python)
|
2012-02-02 00:54:20 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
|
|
|
for smoothing over the differences between the Python versions with the goal of
|
|
|
|
writing Python code that is compatible on both Python versions. See the
|
|
|
|
documentation for more information on what is provided.
|
|
|
|
|
|
|
|
Six supports Python 2.4+.
|
|
|
|
|
|
|
|
Online documentation is at http://packages.python.org/six/.
|
|
|
|
|
2013-02-08 15:47:08 +04:00
|
|
|
Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also
|
|
|
|
be found there.
|
2012-02-02 00:54:20 +04:00
|
|
|
|
|
|
|
%prep
|
2014-12-09 01:05:45 +04:00
|
|
|
%setup -qn %{oname}-%{version}
|
2012-02-02 00:54:20 +04:00
|
|
|
|
2019-11-07 09:15:40 +03:00
|
|
|
#-------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n python3-%{oname}
|
|
|
|
Group: Development/Python
|
|
|
|
|
|
|
|
%description -n python3-%{oname}
|
|
|
|
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
|
|
|
for smoothing over the differences between the Python versions with the goal of
|
|
|
|
writing Python code that is compatible on both Python versions. See the
|
|
|
|
documentation for more information on what is provided.
|
|
|
|
|
|
|
|
Six supports Python 2.4+.
|
|
|
|
|
|
|
|
Online documentation is at http://packages.python.org/six/.
|
|
|
|
|
|
|
|
Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also
|
|
|
|
be found there.
|
|
|
|
|
|
|
|
%files -n python3-%{oname}
|
|
|
|
%doc LICENSE README documentation/index.rst
|
|
|
|
%{py3_puresitedir}/*
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2012-02-02 00:54:20 +04:00
|
|
|
%build
|
2014-04-12 17:04:15 +04:00
|
|
|
chmod 644 README
|
2012-02-02 00:54:20 +04:00
|
|
|
python setup.py build
|
2019-11-07 09:15:40 +03:00
|
|
|
python3 setup.py build
|
2012-02-02 00:54:20 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --root=%{buildroot}
|
2019-11-07 09:15:40 +03:00
|
|
|
python3 setup.py install --root=%{buildroot}
|
2012-02-02 00:54:20 +04:00
|
|
|
|
|
|
|
%files
|
2014-12-09 01:05:45 +04:00
|
|
|
%doc LICENSE README documentation/index.rst
|
2013-12-20 02:39:10 -05:00
|
|
|
%{py_puresitedir}/*
|