switch to github sources

PyPI doesn't provide half of the real package.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-23 13:44:51 +01:00
parent 14a14e2c5d
commit 4afa238e54
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
2 changed files with 6 additions and 9 deletions

View File

@ -14,8 +14,8 @@ Epoch: 1
Summary: Built-package format for Python Summary: Built-package format for Python
License: MIT License: MIT
URL: https://bitbucket.org/pypa/wheel URL: https://github.com/pypa/wheel
Source0: https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Latest version of wheel requires the package keyrings.alt in order for the tests to pass, # Latest version of wheel requires the package keyrings.alt in order for the tests to pass,
@ -75,10 +75,9 @@ Python 3 version.
%prep %prep
%setup -q -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version} -p1
# remove unneeded shebangs # remove unneeded shebangs
sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py
%patch0 -p1
%build %build
@ -118,22 +117,20 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
%if %{with python2} %if %{with python2}
%files -n python2-%{pypi_name} %files -n python2-%{pypi_name}
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.txt README.txt %doc CHANGES.txt README.rst
%{_bindir}/%{pypi_name} %{_bindir}/%{pypi_name}
%{_bindir}/%{pypi_name}-2 %{_bindir}/%{pypi_name}-2
%{_bindir}/%{pypi_name}-%{python2_version} %{_bindir}/%{pypi_name}-%{python2_version}
%{python2_sitelib}/%{pypi_name}* %{python2_sitelib}/%{pypi_name}*
%exclude %{python2_sitelib}/%{pypi_name}/test
%endif %endif
%if %{with python3} %if %{with python3}
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.txt README.txt %doc CHANGES.txt README.rst
%{_bindir}/%{pypi_name}-3 %{_bindir}/%{pypi_name}-3
%{_bindir}/%{pypi_name}-%{python3_version} %{_bindir}/%{pypi_name}-%{python3_version}
%{python3_sitelib}/%{pypi_name}* %{python3_sitelib}/%{pypi_name}*
%exclude %{python3_sitelib}/%{pypi_name}/test
%endif %endif
%changelog %changelog

View File

@ -1 +1 @@
SHA512 (wheel-0.30.0.tar.gz) = d39fb683ca2937745b057464ec17f5fab0475c2b1225cc4c84f1b0e8cd61a4bb039730dafdaa687f7b054ce080c4b7acbd3196045db14e015585536fcf498f84 SHA512 (wheel-0.30.0.tar.gz) = e7828923dcbd82d8cc3d122d112b19cb10a09857497afa558dfcbda6ee6a252efa5db6fcc1b54a79df9f8ed42b3035d0413a66620eebca39210513d7e6f2b807