This commit is contained in:
Sergey Zhemoytel 2024-01-24 00:07:29 +00:00
parent f1998c52d7
commit f500c1cb1f
2 changed files with 52 additions and 9 deletions

View file

@ -1,2 +1,2 @@
sources:
six-1.13.0.tar.gz: e9c61211c15361e9165df107e988c844ef47148c
six-1.16.0.tar.gz: 5943b11df66eb68050669b8612790fe2d0bf7147

View file

@ -1,18 +1,20 @@
%define oname six
Name: python-%{oname}
Version: 1.13.0
Release: 3
Version: 1.16.0
Release: 1
Summary: Python 2 and 3 compatibility utilities
Source0: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
URL: https://github.com/benjaminp/six
Source0: %{url}/archive/%{version}/%{oname}-%{version}.tar.gz
License: MIT
Group: Development/Python
URL: https://github.com/benjaminp/six/releases
BuildArch: noarch
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(python3)
BuildRequires: pythonegg(setuptools)
BuildRequires: python3egg(setuptools)
BuildRequires: python38-devel
BuildRequires: python38-setuptools
%description
Six is a Python 2 and 3 compatibility library. It provides utility functions
@ -30,6 +32,9 @@ be found there.
%prep
%setup -qn %{oname}-%{version}
cp -a . %{py3dir}
cp -a . %{py38dir}
#-------------------------------------------------------------------
%package -n python3-%{oname}
@ -54,14 +59,52 @@ be found there.
#-------------------------------------------------------------------
%package -n python38-%{oname}
Group: Development/Python
%description -n python38-%{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 python38-%{oname}
%doc LICENSE README.rst documentation/index.rst
%{py38_puresitedir}/*
#-------------------------------------------------------------------
%build
python setup.py build
python3 setup.py build
%py_build
pushd %{py3dir}
%py3_build
popd
pushd %{py38dir}
%py38_build
popd
%install
python setup.py install --root=%{buildroot}
python3 setup.py install --root=%{buildroot}
%py_install
pushd %{py3dir}
%py3_install
popd
pushd %{py38dir}
%py38_install
popd
%files
%doc LICENSE README.rst documentation/index.rst