Blame SPECS/python3.11-six.spec

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