Compare commits

...

No commits in common. 'c9' and 'i8' have entirely different histories.
c9 ... i8

2
.gitignore vendored

@ -1 +1 @@
SOURCES/cffi-1.14.5.tar.gz
SOURCES/cffi-1.11.5.tar.gz

@ -1 +1 @@
21cdeccd7b7b121d35eae1b8e91d78f9ec83da98 SOURCES/cffi-1.14.5.tar.gz
1686e6689a691414d3d22626c837adeee3996dd9 SOURCES/cffi-1.11.5.tar.gz

@ -1,19 +1,25 @@
%global __python /usr/bin/python3
Name: python-cffi
Version: 1.14.5
Release: 5%{?dist}
Version: 1.11.5
Release: 5%{?dist}.inferit
Summary: Foreign Function Interface for Python to call C code
License: MIT
URL: https://cffi.readthedocs.org/
Source0: %{pypi_source cffi}
URL: http://cffi.readthedocs.org/
Source0: https://pypi.io/packages/source/c/cffi/cffi-%{version}.tar.gz
BuildRequires: make
BuildRequires: libffi-devel
BuildRequires: gcc
# For tests:
BuildRequires: gcc-c++
BuildRequires: python3
BuildRequires: python3-sphinx
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: python3-pycparser
BuildRequires: python3-pytest
%?python_enable_dependency_generator
# Do not check .so files in the python_sitelib directory
# or any files in the application's directory for provides
%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$
%description
Foreign Function Interface for Python, providing a convenient and
@ -22,139 +28,58 @@ based on LuaJITs FFI.
%package -n python3-cffi
Summary: Foreign Function Interface for Python 3 to call C code
BuildRequires: python3-sphinx
BuildRequires: python3-pytest
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pycparser
Requires: python3-pycparser
%{?python_provide:%python_provide python3-cffi}
%description -n python3-cffi
Foreign Function Interface for Python, providing a convenient and
reliable way of calling existing C code from Python. The interface is
based on LuaJITs FFI.
%package doc
Summary: Documentation for CFFI
BuildArch: noarch
Requires: python3-cffi = %{version}-%{release}
%description doc
Documentation for CFFI, the Foreign Function Interface for Python.
%prep
%autosetup -p1 -n cffi-%{version}
%setup -q -n cffi-%{version}
%build
%py3_build
cd doc
make SPHINXBUILD=sphinx-build-3 html
make html
rm build/html/.buildinfo
%install
%py3_install
#Tests fail but only in mock.
#%check
#%{__python3} setup_base.py build_ext -f -i
#PYTHONPATH=build/lib.linux-* py.test-3 c/ testing/
%check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%install
%py3_install \
--record %{buildroot}%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/installed-files.txt
%files -n python3-cffi
%doc PKG-INFO
%license LICENSE
%{python3_sitearch}/cffi/
%{python3_sitearch}/_cffi_backend.*.so
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/*
%files doc
%doc doc/build/html
%changelog
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 1.14.5-5
- Add automatically generated Obsoletes tag with the python39- prefix
for smoother upgrade from RHEL8
- Related: rhbz#1990421
* Thu Aug 19 2021 DJ Delorie <dj@redhat.com> - 1.14.5-4
- Rebuilt for libffi 3.4.2 SONAME transition.
Related: rhbz#1891914
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Fri Feb 12 2021 Lumír Balhar <lbalhar@redhat.com> - 1.14.5-1
- Update to 1.14.5
Resolves: rhbz#1927933
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
- Update to 1.14.3
* Tue Sep 08 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.2-1
- Update to 1.14.2 (#1869032)
* Fri Aug 14 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-1
- Update to 1.14.1
- Fixes: rhbz#1860698
- Fixes: rhbz#1865276
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-2
- Rebuilt for Python 3.9
* Mon Feb 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.0
- Update to 1.14.0 (#1800646)
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-1
- Update to 1.13.2 (#1768219)
* Mon Oct 21 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.1-1
- Update to 1.13.1 (#1763767)
* Tue Oct 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.0-1
- Update to 1.13.0 (#1761757)
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-5
- Subpackage python2-cffi has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-3
- Reduce Python 2 build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-2
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-1
- Update to 1.12.3 (#1701577)
- https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-12-3
* Mon Jul 15 2019 Petr Viktorin <pviktori@redhat.com> - 1.12.2-2
- Remove unused build dependency on Cython
- Remove duplicate build dependency on pytest
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.2-1
- Update to 1.12.2 (#1677888)
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-6
- Fix FTBFS (#1605627)
%changelog
* Mon Dec 04 2023 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.11.5-5.inferit
- Added dependency for build and defined %__python explicitly
- Rebuilt for MSVSphere 8.8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Oct 22 2018 Christian Heimes <cheimes@redhat.com> - 1.11.5-5
- Build doc package, resolves rhbz#1641665
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-4
- Rebuilt for Python 3.7
* Thu Jun 07 2018 Troy Dawson <tdawson@redhat.com> - 1.11.5-4
- No python2 in RHEL8
* Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3
- Disable tests to fix mock-only FTBFS.

Loading…
Cancel
Save