2022-11-29 00:39:48 +00:00
|
|
|
%global __python3 /usr/bin/python3.11
|
|
|
|
%global python3_pkgversion 3.11
|
|
|
|
|
2022-11-29 00:34:45 +00:00
|
|
|
# tests are enabled by default
|
|
|
|
%bcond_without tests
|
|
|
|
|
2022-11-29 00:39:48 +00:00
|
|
|
%global python_wheelname six-%{version}-py2.py3-none-any.whl
|
|
|
|
|
|
|
|
Name: python%{python3_pkgversion}-six
|
2022-11-29 00:34:45 +00:00
|
|
|
Version: 1.16.0
|
2022-11-29 00:39:48 +00:00
|
|
|
Release: 1%{?dist}
|
2022-11-29 00:34:45 +00:00
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/benjaminp/six
|
|
|
|
Source0: %{pypi_source six}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2022-11-29 00:39:48 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pip
|
|
|
|
BuildRequires: python%{python3_pkgversion}-wheel
|
2022-11-29 00:34:45 +00:00
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-tkinter
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
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.}
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n six-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2022-11-29 00:39:48 +00:00
|
|
|
%py3_build_wheel
|
2022-11-29 00:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2022-11-29 00:39:48 +00:00
|
|
|
%py3_install_wheel %{python_wheelname}
|
2022-11-29 00:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2022-11-29 00:39:48 +00:00
|
|
|
%files -n python%{python3_pkgversion}-six
|
2022-11-29 00:34:45 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst documentation/index.rst
|
2022-11-29 00:39:48 +00:00
|
|
|
%{python3_sitelib}/six-*.dist-info/
|
|
|
|
%pycached %{python3_sitelib}/six.py
|
2022-11-29 00:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-11-29 00:39:48 +00:00
|
|
|
* Fri Nov 11 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.16.0-1
|
|
|
|
- Initial package
|
|
|
|
- Fedora contributions by:
|
|
|
|
Bohuslav Kabrda <bkabrda@redhat.com>
|
|
|
|
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
|
David Malcolm <dmalcolm@redhat.com>
|
|
|
|
Dennis Gilmore <dennis@ausil.us>
|
|
|
|
Haikel Guemar <hguemar@fedoraproject.org>
|
|
|
|
Igor Gnatenko <ignatenko@redhat.com>
|
|
|
|
Karolina Surma <ksurma@redhat.com>
|
|
|
|
Lumir Balhar <lbalhar@redhat.com>
|
|
|
|
Matthias Runge <mrunge@redhat.com>
|
|
|
|
Miro Hrončok <miro@hroncok.cz>
|
|
|
|
Orion Poplawski <orion@nwra.com>
|
|
|
|
Pádraig Brady <P@draigBrady.com>
|
|
|
|
Petr Viktorin <pviktori@redhat.com>
|
|
|
|
Ralph Bean <rbean@redhat.com>
|
|
|
|
Robert Kuska <rkuska@redhat.com>
|
|
|
|
Slavek Kabrda <bkabrda@redhat.com>
|
|
|
|
Tomas Hrnciar <thrnciar@redhat.com>
|
|
|
|
Tomas Orsava <torsava@redhat.com>
|
|
|
|
Tom Callaway <spot@fedoraproject.org>
|
|
|
|
yatin <ykarel@redhat.com>
|