| |
@@ -9,8 +9,8 @@
|
| |
%global python_wheeldir %{_datadir}/python-wheels
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
- Version: 0.31.1
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 0.32.0
|
| |
+ Release: 1%{?dist}
|
| |
Epoch: 1
|
| |
Summary: Built-package format for Python
|
| |
|
| |
@@ -19,14 +19,13 @@
|
| |
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
| |
BuildArch: noarch
|
| |
|
| |
- # Latest version of wheel requires the package keyrings.alt in order for the tests to pass,
|
| |
- # however it can't be packaged for Fedora as of yet since the code is not licensed,
|
| |
- # and as a result wheel fails to build from source.
|
| |
- # Review request of keyrings.alt: https://bugzilla.redhat.com/show_bug.cgi?id=1365794
|
| |
- # Until the license issue is resolved upstream, this patch is added to revert
|
| |
- # the commit from wheel, that introduced this dependency.
|
| |
- # https://bitbucket.org/pypa/wheel/commits/06841295888fdb430abe12aae29da92107e7360a
|
| |
- Patch0: remove-keyrings.alt-dependency.patch
|
| |
+ %if ! %{with bootstrap}
|
| |
+ # several tests compile extensions
|
| |
+ # those tests are skipped if gcc is not found
|
| |
+ BuildRequires: gcc
|
| |
+ %endif
|
| |
+
|
| |
+ %{?python_enable_dependency_generator}
|
| |
|
| |
%global _description \
|
| |
A built-package format for Python.\
|
| |
@@ -44,8 +43,6 @@
|
| |
BuildRequires: python2-setuptools
|
| |
%if ! %{with bootstrap}
|
| |
BuildRequires: python2-pytest
|
| |
- BuildRequires: python2-pyxdg
|
| |
- BuildRequires: python2-keyring
|
| |
%endif
|
| |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
| |
|
| |
@@ -61,8 +58,6 @@
|
| |
BuildRequires: python3-setuptools
|
| |
%if %{without bootstrap}
|
| |
BuildRequires: python3-pytest
|
| |
- BuildRequires: python3-pyxdg
|
| |
- BuildRequires: python3-keyring
|
| |
%endif
|
| |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
| |
|
| |
@@ -82,8 +77,9 @@
|
| |
|
| |
%prep
|
| |
%autosetup -n %{pypi_name}-%{version} -p1
|
| |
- # remove unneeded shebangs
|
| |
- sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py
|
| |
+
|
| |
+ # Empty files make rpmlint sad
|
| |
+ test -s wheel/cli/install.py || echo "# empty" > wheel/cli/install.py
|
| |
|
| |
|
| |
%build
|
| |
@@ -115,7 +111,6 @@
|
| |
|
| |
|
| |
%check
|
| |
- export LC_ALL=C.UTF-8
|
| |
rm setup.cfg
|
| |
%if %{with python2}
|
| |
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build
|
| |
@@ -126,7 +121,7 @@
|
| |
%if %{with python2}
|
| |
%files -n python2-%{pypi_name}
|
| |
%license LICENSE.txt
|
| |
- %doc CHANGES.txt README.rst
|
| |
+ %doc README.rst
|
| |
%{_bindir}/%{pypi_name}
|
| |
%{_bindir}/%{pypi_name}-2
|
| |
%{_bindir}/%{pypi_name}-%{python2_version}
|
| |
@@ -135,7 +130,7 @@
|
| |
|
| |
%files -n python3-%{pypi_name}
|
| |
%license LICENSE.txt
|
| |
- %doc CHANGES.txt README.rst
|
| |
+ %doc README.rst
|
| |
%{_bindir}/%{pypi_name}-3
|
| |
%{_bindir}/%{pypi_name}-%{python3_version}
|
| |
%{python3_sitelib}/%{pypi_name}*
|
| |
@@ -149,6 +144,9 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Sun Sep 30 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.32.0-1
|
| |
+ - Update to 0.32.0
|
| |
+
|
| |
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.31.1-3
|
| |
- Create python-wheel-wheel package with the wheel of wheel
|
| |
|
| |