#10 [EPEL7] [DO NOT MERGE] Split python2-wheel from the python-wheel package
Closed 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ churchyard/python-wheel epel7-py2-rename  into  epel7

python2-wheel.spec python-wheel.spec
file renamed
+23 -42
@@ -1,49 +1,41 @@ 

  %global pypi_name wheel

  

- Name:           python-%{pypi_name}

+ Name:           python2-%{pypi_name}

  Version:        0.29.0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        A built-package format for Python

  

- License:        MIT

- URL:            https://bitbucket.org/pypa/wheel

- Source0:        https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

- BuildArch:      noarch

+ # wheel is MIT

+ # pep425tags.py is vendored, MIT

+ # decorator.py is from pyramid, BSD

+ License:        MIT and BSD

  

- %global _description \

- A built-package format for Python.\

- \

- A wheel is a ZIP-format archive with a specially formatted filename and the\

- .whl extension. It is designed to contain all the files for a PEP 376\

- compatible install in a way that is very close to the on-disk format.

+ # Versions are unknown

+ Provides:       bundled(python2-pep425tags)

+ Provides:       bundled(python2-pyramid)

  

- %description %{_description}

+ URL:            https://bitbucket.org/pypa/wheel

+ Source0:        %{pypi_source}

  

- %package -n     python2-%{pypi_name}

- Summary:        %{summary}

  BuildRequires:  python2-devel

  BuildRequires:  python-setuptools

  BuildRequires:  pytest

  BuildRequires:  pyxdg

  BuildRequires:  python-keyring

  BuildRequires:  python-jsonschema

+ BuildArch:      noarch

  

- %description -n python2-%{pypi_name} %{_description}

+ %{?python_provide:%python_provide python2-%{pypi_name}}

  

- Python 2 version.

+ %description

+ A built-package format for Python.

  

- %package -n     python%{python3_pkgversion}-%{pypi_name}

- Summary:        %{summary}

- BuildRequires:  python%{python3_pkgversion}-devel

- BuildRequires:  python%{python3_pkgversion}-setuptools

- BuildRequires:  python%{python3_pkgversion}-pytest

- BuildRequires:  python%{python3_pkgversion}-pyxdg

- BuildRequires:  python%{python3_pkgversion}-keyring

- BuildRequires:  python%{python3_pkgversion}-jsonschema

+ A wheel is a ZIP-format archive with a specially formatted filename and the

+ .whl extension. It is designed to contain all the files for a PEP 376

+ compatible install in a way that is very close to the on-disk format.

  

- %description -n python%{python3_pkgversion}-%{pypi_name} %{_description}

+ Python 2 version.

  

- Python 3 version.

  

  %prep

  %autosetup -n %{pypi_name}-%{version}
@@ -52,24 +44,18 @@ 

  

  %build

  %py2_build

- %py3_build

  

  %install

  %py2_install

  mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python2_version}}

  ln -s %{pypi_name}-%{python2_version} %{buildroot}%{_bindir}/%{pypi_name}-2

- %py3_install

- mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python3_version}}

- ln -s %{pypi_name}-%{python3_version} %{buildroot}%{_bindir}/%{pypi_name}-3

- 

  ln -s %{pypi_name}-2 %{buildroot}%{_bindir}/%{pypi_name}

  

  %check

  rm setup.cfg

  PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v --ignore build

- PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v --ignore build

  

- %files -n python2-%{pypi_name}

+ %files

  %license LICENSE.txt

  %doc CHANGES.txt README.txt

  %{_bindir}/%{pypi_name}
@@ -78,15 +64,10 @@ 

  %{python2_sitelib}/%{pypi_name}*

  %exclude %{python2_sitelib}/%{pypi_name}/test

  

- %files -n python%{python3_pkgversion}-%{pypi_name}

- %license LICENSE.txt

- %doc CHANGES.txt README.txt

- %{_bindir}/%{pypi_name}-3

- %{_bindir}/%{pypi_name}-%{python3_version}

- %{python3_sitelib}/%{pypi_name}*

- %exclude %{python3_sitelib}/%{pypi_name}/test

- 

  %changelog

+ * Thu Jul 25 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.0-2

+ - Split python2-wheel from the python-wheel package

+ 

  * Mon Nov 21 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.29.0-1

  - Update to 0.29.0

  - Cleanups and fixes