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