Blame SPECS/python3.11-six.spec

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