Blame SPECS/python3.11-six.spec

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