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