Use a hg tarball for source, for easier patching

PKG-INFO is missing from the new tarball, but that is no documentation anyway,
use the README instead.
This commit is contained in:
Miro Hrončok 2022-11-14 15:06:04 +01:00
parent 42efcca609
commit 851909db99
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/cffi-*.tar.gz
/cffi-*.tar.bz2
/cffi-*/
/results_python-cffi/
*.rpm

View File

@ -5,7 +5,7 @@ Release: 2%{?dist}
Summary: Foreign Function Interface for Python to call C code
License: MIT
URL: https://cffi.readthedocs.org/
Source0: %{pypi_source cffi}
Source: https://foss.heptapod.net/pypy/cffi/-/archive/v%{version}/cffi-v%{version}.tar.bz2
# Adjust tests for a last minute Python 3.11 change in the traceback format
Patch: https://foss.heptapod.net/pypy/cffi/-/merge_requests/113.patch
@ -46,7 +46,7 @@ BuildArch: noarch
Documentation for CFFI, the Foreign Function Interface for Python.
%prep
%autosetup -p1 -n cffi-%{general_version}%{?prerel}
%autosetup -p1 -n cffi-v%{general_version}%{?prerel}
%build
%py3_build
@ -62,7 +62,7 @@ rm build/html/.buildinfo
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%files -n python3-cffi
%doc PKG-INFO
%doc README.md
%license LICENSE
%{python3_sitearch}/cffi/
%{python3_sitearch}/_cffi_backend.*.so

View File

@ -1 +1 @@
SHA512 (cffi-1.15.1.tar.gz) = e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5
SHA512 (cffi-v1.15.1.tar.bz2) = 4505c1e3206b66fbdf06ba39be6daac14a35f7148cef3156bb2015792cb59c004ea13fe7c7514feb35ecc5e7526a88fc0b3036ae84fd146a0a3b55bc676e8e51