From 4afa238e548176316b6d4f1dd06759b927cf7906 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 23 Feb 2018 13:44:51 +0100 Subject: [PATCH] switch to github sources PyPI doesn't provide half of the real package. Signed-off-by: Igor Gnatenko --- python-wheel.spec | 13 +++++-------- sources | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/python-wheel.spec b/python-wheel.spec index d03eaef..1a22422 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -14,8 +14,8 @@ Epoch: 1 Summary: 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 +URL: https://github.com/pypa/wheel +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, @@ -75,10 +75,9 @@ Python 3 version. %prep -%setup -q -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 # remove unneeded shebangs sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py -%patch0 -p1 %build @@ -118,22 +117,20 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %if %{with python2} %files -n python2-%{pypi_name} %license LICENSE.txt -%doc CHANGES.txt README.txt +%doc CHANGES.txt README.rst %{_bindir}/%{pypi_name} %{_bindir}/%{pypi_name}-2 %{_bindir}/%{pypi_name}-%{python2_version} %{python2_sitelib}/%{pypi_name}* -%exclude %{python2_sitelib}/%{pypi_name}/test %endif %if %{with python3} %files -n python3-%{pypi_name} %license LICENSE.txt -%doc CHANGES.txt README.txt +%doc CHANGES.txt README.rst %{_bindir}/%{pypi_name}-3 %{_bindir}/%{pypi_name}-%{python3_version} %{python3_sitelib}/%{pypi_name}* -%exclude %{python3_sitelib}/%{pypi_name}/test %endif %changelog diff --git a/sources b/sources index 1d2ab71..9da6af2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wheel-0.30.0.tar.gz) = d39fb683ca2937745b057464ec17f5fab0475c2b1225cc4c84f1b0e8cd61a4bb039730dafdaa687f7b054ce080c4b7acbd3196045db14e015585536fcf498f84 +SHA512 (wheel-0.30.0.tar.gz) = e7828923dcbd82d8cc3d122d112b19cb10a09857497afa558dfcbda6ee6a252efa5db6fcc1b54a79df9f8ed42b3035d0413a66620eebca39210513d7e6f2b807