Minor cleanup
This commit is contained in:
parent
760e26f6bc
commit
5b8bf18400
@ -1,33 +1,22 @@
|
|||||||
%global modname six
|
|
||||||
|
|
||||||
# tests are enabled by default
|
# tests are enabled by default
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
%global python_wheelname six-%{version}-py2.py3-none-any.whl
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-six
|
||||||
Version: 1.15.0
|
Version: 1.15.0
|
||||||
Release: 5%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/six
|
URL: https://pypi.python.org/pypi/six
|
||||||
Source0: %{pypi_source %{modname}}
|
Source0: %{pypi_source six}
|
||||||
|
|
||||||
# Backported from upstream PR: https://github.com/benjaminp/six/pull/343
|
# Backported from upstream PR: https://github.com/benjaminp/six/pull/343
|
||||||
Patch0: py310.patch
|
Patch0: py310.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%global _description \
|
|
||||||
%%{name} provides simple utilities for wrapping over differences between\
|
|
||||||
Python 2 and Python 3.
|
|
||||||
|
|
||||||
%description %{_description}
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{modname}
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python%{python3_pkgversion}-pip
|
BuildRequires: python%{python3_pkgversion}-pip
|
||||||
@ -38,12 +27,21 @@ BuildRequires: python3-pytest
|
|||||||
BuildRequires: python3-tkinter
|
BuildRequires: python3-tkinter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
%global _description %{expand:
|
||||||
Python 3 version.
|
%{name} provides simple utilities for wrapping over differences between
|
||||||
|
Python 2 and Python 3.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-six
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%description -n python%{python3_pkgversion}-six %{_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{modname}-%{version}
|
%autosetup -p1 -n six-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -55,16 +53,15 @@ Python 3 version.
|
|||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -rfsxX test_six.py
|
%pytest -rfsxX test_six.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{modname}
|
%files -n python%{python3_pkgversion}-six
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst documentation/index.rst
|
%doc README.rst documentation/index.rst
|
||||||
%{python3_sitelib}/%{modname}-*.dist-info/
|
%{python3_sitelib}/six-*.dist-info/
|
||||||
%{python3_sitelib}/%{modname}.py
|
%pycached %{python3_sitelib}/six.py
|
||||||
%{python3_sitelib}/__pycache__/%{modname}.*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user