diff --git a/.gitignore b/.gitignore index f6bd029..cfffc95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /cffi-*.tar.gz +/cffi-*.tar.bz2 /cffi-*/ /results_python-cffi/ *.rpm diff --git a/python-cffi.spec b/python-cffi.spec index 801f8cd..52e3a48 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -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 diff --git a/sources b/sources index 68c5c35..f43fc6c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cffi-1.15.1.tar.gz) = e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5 +SHA512 (cffi-v1.15.1.tar.bz2) = 4505c1e3206b66fbdf06ba39be6daac14a35f7148cef3156bb2015792cb59c004ea13fe7c7514feb35ecc5e7526a88fc0b3036ae84fd146a0a3b55bc676e8e51