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:
parent
42efcca609
commit
851909db99
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/cffi-*.tar.gz
|
/cffi-*.tar.gz
|
||||||
|
/cffi-*.tar.bz2
|
||||||
/cffi-*/
|
/cffi-*/
|
||||||
/results_python-cffi/
|
/results_python-cffi/
|
||||||
*.rpm
|
*.rpm
|
||||||
|
@ -5,7 +5,7 @@ Release: 2%{?dist}
|
|||||||
Summary: Foreign Function Interface for Python to call C code
|
Summary: Foreign Function Interface for Python to call C code
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://cffi.readthedocs.org/
|
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
|
# 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
|
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.
|
Documentation for CFFI, the Foreign Function Interface for Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n cffi-%{general_version}%{?prerel}
|
%autosetup -p1 -n cffi-v%{general_version}%{?prerel}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -62,7 +62,7 @@ rm build/html/.buildinfo
|
|||||||
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
||||||
|
|
||||||
%files -n python3-cffi
|
%files -n python3-cffi
|
||||||
%doc PKG-INFO
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitearch}/cffi/
|
%{python3_sitearch}/cffi/
|
||||||
%{python3_sitearch}/_cffi_backend.*.so
|
%{python3_sitearch}/_cffi_backend.*.so
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (cffi-1.15.1.tar.gz) = e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5
|
SHA512 (cffi-v1.15.1.tar.bz2) = 4505c1e3206b66fbdf06ba39be6daac14a35f7148cef3156bb2015792cb59c004ea13fe7c7514feb35ecc5e7526a88fc0b3036ae84fd146a0a3b55bc676e8e51
|
||||||
|
Loading…
Reference in New Issue
Block a user