Blame SPECS/python3.11-six.spec

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