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