f40a57
Name:           python-cffi
f40a57
Version:        1.14.5
b80f98
Release:        5%{?dist}
f40a57
Summary:        Foreign Function Interface for Python to call C code
f40a57
License:        MIT
f40a57
URL:            https://cffi.readthedocs.org/
f40a57
Source0:        %{pypi_source cffi}
f40a57
f40a57
BuildRequires: make
f40a57
BuildRequires:  libffi-devel
f40a57
BuildRequires:  gcc
f40a57
f40a57
# For tests:
f40a57
BuildRequires:  gcc-c++
f40a57
f40a57
%?python_enable_dependency_generator
f40a57
f40a57
%description
f40a57
Foreign Function Interface for Python, providing a convenient and
f40a57
reliable way of calling existing C code from Python. The interface is
f40a57
based on LuaJIT’s FFI.
f40a57
f40a57
%package -n python3-cffi
f40a57
Summary:        Foreign Function Interface for Python 3 to call C code
f40a57
BuildRequires:  python3-sphinx
f40a57
BuildRequires:  python3-pytest
f40a57
BuildRequires:  python3-devel
f40a57
BuildRequires:  python3-setuptools
f40a57
BuildRequires:  python3-pycparser
f40a57
%{?python_provide:%python_provide python3-cffi}
f40a57
f40a57
%description -n python3-cffi
f40a57
Foreign Function Interface for Python, providing a convenient and
f40a57
reliable way of calling existing C code from Python. The interface is
f40a57
based on LuaJIT’s FFI.
f40a57
f40a57
%package doc
f40a57
Summary:        Documentation for CFFI
f40a57
BuildArch:      noarch
f40a57
f40a57
%description doc
f40a57
Documentation for CFFI, the Foreign Function Interface for Python.
f40a57
f40a57
%prep
f40a57
%autosetup -p1 -n cffi-%{version}
f40a57
f40a57
%build
f40a57
%py3_build
f40a57
f40a57
cd doc
f40a57
make SPHINXBUILD=sphinx-build-3 html
f40a57
rm build/html/.buildinfo
f40a57
f40a57
%install
f40a57
%py3_install
f40a57
f40a57
%check
f40a57
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
f40a57
f40a57
%files -n python3-cffi
f40a57
%doc PKG-INFO
f40a57
%license LICENSE
f40a57
%{python3_sitearch}/cffi/
f40a57
%{python3_sitearch}/_cffi_backend.*.so
f40a57
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
f40a57
f40a57
%files doc
f40a57
%doc doc/build/html
f40a57
f40a57
%changelog
b80f98
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 1.14.5-5
b80f98
- Add automatically generated Obsoletes tag with the python39- prefix
b80f98
  for smoother upgrade from RHEL8
b80f98
- Related: rhbz#1990421
b80f98
f40a57
* Thu Aug 19 2021 DJ Delorie <dj@redhat.com> - 1.14.5-4
f40a57
- Rebuilt for libffi 3.4.2 SONAME transition.
f40a57
  Related: rhbz#1891914
f40a57
f40a57
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-3
f40a57
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f40a57
  Related: rhbz#1991688
f40a57
f40a57
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-2
f40a57
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f40a57
f40a57
* Fri Feb 12 2021 Lumír Balhar <lbalhar@redhat.com> - 1.14.5-1
f40a57
- Update to 1.14.5
f40a57
Resolves: rhbz#1927933
f40a57
f40a57
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f40a57
f40a57
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
f40a57
- Update to 1.14.3
f40a57
f40a57
* Tue Sep 08 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.2-1
f40a57
- Update to 1.14.2 (#1869032)
f40a57
f40a57
* Fri Aug 14 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-1
f40a57
- Update to 1.14.1
f40a57
- Fixes: rhbz#1860698
f40a57
- Fixes: rhbz#1865276
f40a57
f40a57
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-2
f40a57
- Rebuilt for Python 3.9
f40a57
f40a57
* Mon Feb 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.0
f40a57
- Update to 1.14.0 (#1800646)
f40a57
f40a57
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f40a57
f40a57
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-1
f40a57
- Update to 1.13.2 (#1768219)
f40a57
f40a57
* Mon Oct 21 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.1-1
f40a57
- Update to 1.13.1 (#1763767)
f40a57
f40a57
* Tue Oct 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.0-1
f40a57
- Update to 1.13.0 (#1761757)
f40a57
f40a57
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-5
f40a57
- Subpackage python2-cffi has been removed
f40a57
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
f40a57
f40a57
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-4
f40a57
- Rebuilt for Python 3.8.0rc1 (#1748018)
f40a57
f40a57
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-3
f40a57
- Reduce Python 2 build dependencies
f40a57
f40a57
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-2
f40a57
- Rebuilt for Python 3.8
f40a57
f40a57
* Thu Jul 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-1
f40a57
- Update to 1.12.3 (#1701577)
f40a57
- https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-12-3
f40a57
f40a57
* Mon Jul 15 2019 Petr Viktorin <pviktori@redhat.com> - 1.12.2-2
f40a57
- Remove unused build dependency on Cython
f40a57
- Remove duplicate build dependency on pytest
f40a57
f40a57
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.2-1
f40a57
- Update to 1.12.2 (#1677888)
f40a57
f40a57
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-7
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f40a57
f40a57
* Wed Aug 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-6
f40a57
- Fix FTBFS (#1605627)
f40a57
f40a57
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-5
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f40a57
f40a57
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-4
f40a57
- Rebuilt for Python 3.7
f40a57
f40a57
* Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3
f40a57
- Disable tests to fix mock-only FTBFS.
f40a57
f40a57
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.5-2
f40a57
- Update Python 2 dependency declarations to new packaging standards
f40a57
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f40a57
f40a57
* Fri Mar 02 2018 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
f40a57
- New release 1.11.5
f40a57
f40a57
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.11.2-3
f40a57
- Escape macros in %%changelog
f40a57
f40a57
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f40a57
f40a57
* Thu Oct 19 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
f40a57
- New release 1.11.0
f40a57
- Fix %%check
f40a57
f40a57
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 1.11.0-2
f40a57
- Cleanup spec file conditionals
f40a57
f40a57
* Sat Sep 23 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.0-1
f40a57
- New release 1.11.0
f40a57
f40a57
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f40a57
f40a57
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f40a57
f40a57
* Tue Apr 04 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.10.0-1
f40a57
- New release 1.10.0
f40a57
f40a57
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f40a57
f40a57
* Sat Jan 07 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.9.1-1
f40a57
- Update to latest upstream 1.9.1
f40a57
f40a57
* Fri Jan 6 2017 Orion Poplawski <orion@cora.nwra.com> - 1.8.3-4
f40a57
- Modernize spec
f40a57
f40a57
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.8.3-3
f40a57
- Rebuild for Python 3.6
f40a57
- Disable test dependencies
f40a57
f40a57
* Thu Nov 03 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-2
f40a57
- Re-disable check
f40a57
f40a57
* Sun Sep 18 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-1
f40a57
- Update to 1.8.3
f40a57
- Reenable check
f40a57
f40a57
* Wed Sep 07 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.8.2-1
f40a57
- Update to 1.8.2
f40a57
f40a57
* Tue Aug 09 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.7.0-3
f40a57
- Record installed files
f40a57
f40a57
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
f40a57
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f40a57
f40a57
* Thu Jun 23 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.7.0-1
f40a57
- Update to 1.7.0
f40a57
f40a57
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-3
f40a57
- Switch Source0 to using pypi.io
f40a57
f40a57
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-2
f40a57
- Update Source0 URL to account for pypi change
f40a57
f40a57
* Thu Apr 21 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-1
f40a57
- Update to 1.6.0 (#1329203)
f40a57
f40a57
* Mon Feb 15 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.5.2-1
f40a57
- Update to 1.5.2 (#1299272)
f40a57
f40a57
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f40a57
f40a57
* Mon Jan 18 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.5.0-1
f40a57
- Update to 1.5.0 (#1299272)
f40a57
f40a57
* Mon Jan 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.4.2-2
f40a57
- Move python-cffi => python2-cffi
f40a57
f40a57
* Tue Dec 22 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.2-1
f40a57
- Update to 1.4.2 (#1293504)
f40a57
f40a57
* Thu Dec 17 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.1-1
f40a57
- Update to latest upstream release
f40a57
f40a57
* Fri Dec 11 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.3.1-1
f40a57
- Update to latest upstream release
f40a57
f40a57
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.1.2-4
f40a57
- Rebuilt for Python3.5 rebuild
f40a57
f40a57
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.1.2-3
f40a57
- Modernize spec file
f40a57
- add missing source
f40a57
f40a57
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f40a57
f40a57
* Tue Jun 16 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.1.2-2
f40a57
- Update to 1.1.2
f40a57
- Fix license
f40a57
f40a57
* Tue Aug 19 2014 Eric Smith <spacewar@gmail.com> 0.8.6-1
f40a57
- Update to latest upstream.
f40a57
- No python3 in el7.
f40a57
f40a57
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f40a57
f40a57
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f40a57
f40a57
* Mon May 12 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.1-2
f40a57
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f40a57
f40a57
* Wed Feb 26 2014 Eric Smith <spacewar@gmail.com> 0.8.1-1
f40a57
- Update to latest upstream.
f40a57
f40a57
* Tue Aug 13 2013 Eric Smith <spacewar@gmail.com> 0.6-5
f40a57
- Add Requires of python{,3}-pycparser.
f40a57
f40a57
* Thu Jul 25 2013 Eric Smith <spacewar@gmail.com> 0.6-4
f40a57
- Fix broken conditionals in spec (missing question marks), needed for el6.
f40a57
f40a57
* Tue Jul 23 2013 Eric Smith <spacewar@gmail.com> 0.6-3
f40a57
- Add Python3 support.
f40a57
f40a57
* Mon Jul 22 2013 Eric Smith <spacewar@gmail.com> 0.6-2
f40a57
- Better URL, and use version macro in Source0.
f40a57
f40a57
* Sun Jul 21 2013 Eric Smith <spacewar@gmail.com> 0.6-1
f40a57
- initial version