Blame SPECS/python3.11-six.spec

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