5d84689
Name:           python-cffi
3ab6ef4
%global general_version 1.15.1
938105d
Version:        %{general_version}%{?prerel:~%{prerel}}
42efcca
Release:        2%{?dist}
5d84689
Summary:        Foreign Function Interface for Python to call C code
Nathaniel McCallum c7cb6a6
License:        MIT
824bcda
URL:            https://cffi.readthedocs.org/
824bcda
Source0:        %{pypi_source cffi}
5d84689
4f976ef
# Adjust tests for a last minute Python 3.11 change in the traceback format 
4f976ef
Patch:          https://foss.heptapod.net/pypy/cffi/-/merge_requests/113.patch
4f976ef
3ab6ef4
BuildRequires:  make
dabc32b
BuildRequires:  libffi-devel
dabc32b
BuildRequires:  gcc
5d84689
dabc32b
# For tests:
dabc32b
BuildRequires:  gcc-c++
dabc32b
dabc32b
%?python_enable_dependency_generator
5d84689
5d84689
%description
5d84689
Foreign Function Interface for Python, providing a convenient and
5d84689
reliable way of calling existing C code from Python. The interface is
5d84689
based on LuaJIT’s FFI.
5d84689
5d84689
%package -n python3-cffi
5d84689
Summary:        Foreign Function Interface for Python 3 to call C code
dabc32b
BuildRequires:  python3-sphinx
dabc32b
BuildRequires:  python3-pytest
dabc32b
BuildRequires:  python3-devel
dabc32b
BuildRequires:  python3-setuptools
dabc32b
BuildRequires:  python3-pycparser
ac2b1cb
%{?python_provide:%python_provide python3-cffi}
5d84689
5d84689
%description -n python3-cffi
5d84689
Foreign Function Interface for Python, providing a convenient and
5d84689
reliable way of calling existing C code from Python. The interface is
5d84689
based on LuaJIT’s FFI.
5d84689
5d84689
%package doc
5d84689
Summary:        Documentation for CFFI
5d84689
BuildArch:      noarch
5d84689
5d84689
%description doc
5d84689
Documentation for CFFI, the Foreign Function Interface for Python.
5d84689
5d84689
%prep
938105d
%autosetup -p1 -n cffi-%{general_version}%{?prerel}
5d84689
5d84689
%build
Orion Poplawski d24ef7a
%py3_build
5d84689
5d84689
cd doc
dabc32b
make SPHINXBUILD=sphinx-build-3 html
5d84689
rm build/html/.buildinfo
5d84689
5d84689
%install
dabc32b
%py3_install
dabc32b
dabc32b
%check
43d8c3c
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
5d84689
5d84689
%files -n python3-cffi
f59b293
%doc PKG-INFO
f59b293
%license LICENSE
dabc32b
%{python3_sitearch}/cffi/
dabc32b
%{python3_sitearch}/_cffi_backend.*.so
938105d
%{python3_sitearch}/cffi-%{general_version}%{?prerel}-py%{python3_version}.egg-info/
5d84689
5d84689
%files doc
5d84689
%doc doc/build/html
5d84689
5d84689
%changelog
42efcca
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-2
42efcca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
42efcca
4f976ef
* Fri Jul 15 2022 Miro Hrončok <mhroncok@redhat.com> - 1.15.1-1
4f976ef
- Adjust tests for a last minute Python 3.11 change in the traceback format
4f976ef
3ab6ef4
* Mon Jul 11 2022 Lumír Balhar <lbalhar@redhat.com> - 1.15.1-0
3ab6ef4
- Update to 1.15.1
3ab6ef4
Resolves: rhbz#2102824
3ab6ef4
b686674
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.15.0-6
b686674
- Rebuilt for Python 3.11
b686674
a520fff
* Wed Mar 30 2022 Miro Hrončok <mhroncok@redhat.com> - 1.15.0-5
a520fff
- Fix alignment issue on ppc64le
a520fff
- Fixes: rhbz#2046865
a520fff
cc09eb2
* Wed Feb 02 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.15.0-4
cc09eb2
- Backport patch to fix compatibility with Python 3.11
cc09eb2
- Fixes: rhbz#2040165
cc09eb2
fdbcda9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-3
fdbcda9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
fdbcda9
c22a4d0
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 1.15.0-2
c22a4d0
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
c22a4d0
928c92e
* Tue Dec 21 2021 Lumír Balhar <lbalhar@redhat.com> - 1.15.0-1
928c92e
- Update to 1.15.0
928c92e
Resolves: rhbz#2013760
928c92e
938105d
* Thu Oct 07 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.15.0~rc2-1
938105d
- Update to 1.15.0rc2
938105d
Resolves: rhbz#2007006
938105d
2400267
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.6-2
2400267
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2400267
bcabf2e
* Fri Jul 09 2021 Lumír Balhar <lbalhar@redhat.com> - 1.14.6-1
bcabf2e
- Update to 1.14.6
bcabf2e
Resolves: rhbz#1980622
bcabf2e
49e9f67
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.14.5-2
49e9f67
- Rebuilt for Python 3.10
49e9f67
88f6759
* Fri Feb 12 2021 Lumír Balhar <lbalhar@redhat.com> - 1.14.5-1
88f6759
- Update to 1.14.5
88f6759
Resolves: rhbz#1927933
88f6759
8733871
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
8733871
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8733871
c4d874d
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
c4d874d
- Update to 1.14.3
c4d874d
43d8c3c
* Tue Sep 08 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.2-1
43d8c3c
- Update to 1.14.2 (#1869032)
43d8c3c
985fde6
* Fri Aug 14 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-1
985fde6
- Update to 1.14.1
985fde6
- Fixes: rhbz#1860698
985fde6
- Fixes: rhbz#1865276
abd592b
21452e3
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-2
21452e3
- Rebuilt for Python 3.9
21452e3
ddd679d
* Mon Feb 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.0
ddd679d
- Update to 1.14.0 (#1800646)
ddd679d
2cb480e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
2cb480e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2cb480e
4b7014b
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-1
4b7014b
- Update to 1.13.2 (#1768219)
4b7014b
7ce5a91
* Mon Oct 21 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.1-1
7ce5a91
- Update to 1.13.1 (#1763767)
7ce5a91
0167dc7
* Tue Oct 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.0-1
0167dc7
- Update to 1.13.0 (#1761757)
0167dc7
d0eb254
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-5
d0eb254
- Subpackage python2-cffi has been removed
d0eb254
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
d0eb254
db04ce7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-4
db04ce7
- Rebuilt for Python 3.8.0rc1 (#1748018)
db04ce7
a59154a
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-3
a59154a
- Reduce Python 2 build dependencies
a59154a
76ff265
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-2
76ff265
- Rebuilt for Python 3.8
76ff265
3254f34
* Thu Jul 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-1
3254f34
- Update to 1.12.3 (#1701577)
3254f34
- https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-12-3
3254f34
17bdca2
* Mon Jul 15 2019 Petr Viktorin <pviktori@redhat.com> - 1.12.2-2
17bdca2
- Remove unused build dependency on Cython
17bdca2
- Remove duplicate build dependency on pytest
17bdca2
824bcda
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.2-1
824bcda
- Update to 1.12.2 (#1677888)
824bcda
9a2d51a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-7
9a2d51a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9a2d51a
dabc32b
* Wed Aug 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-6
dabc32b
- Fix FTBFS (#1605627)
dabc32b
43342db
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-5
43342db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
43342db
801cb4a
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-4
801cb4a
- Rebuilt for Python 3.7
801cb4a
a086aed
* Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3
a086aed
- Disable tests to fix mock-only FTBFS.
a086aed
1077dbb
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.5-2
1077dbb
- Update Python 2 dependency declarations to new packaging standards
1077dbb
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1077dbb
171cc09
* Fri Mar 02 2018 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
171cc09
- New release 1.11.5
171cc09
0e0df6b
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.11.2-3
0e0df6b
- Escape macros in %%changelog
0e0df6b
d60bdb4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-2
d60bdb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d60bdb4
a45cb54
* Thu Oct 19 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
a45cb54
- New release 1.11.0
0e0df6b
- Fix %%check
a45cb54
33fe1c0
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 1.11.0-2
33fe1c0
- Cleanup spec file conditionals
33fe1c0
0a0ebcf
* Sat Sep 23 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.0-1
0a0ebcf
- New release 1.11.0
0a0ebcf
3b33ad9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
3b33ad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b33ad9
35b2992
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
35b2992
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
35b2992
1d01b4e
* Tue Apr 04 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.10.0-1
1d01b4e
- New release 1.10.0
1d01b4e
b4f3d50
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
b4f3d50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b4f3d50
7c2dc2c
* Sat Jan 07 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.9.1-1
7c2dc2c
- Update to latest upstream 1.9.1
7c2dc2c
Orion Poplawski d24ef7a
* Fri Jan 6 2017 Orion Poplawski <orion@cora.nwra.com> - 1.8.3-4
Orion Poplawski d24ef7a
- Modernize spec
Orion Poplawski d24ef7a
cf9b704
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.8.3-3
cf9b704
- Rebuild for Python 3.6
cf9b704
- Disable test dependencies
cf9b704
09185d9
* Thu Nov 03 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-2
09185d9
- Re-disable check
09185d9
6a12e50
* Sun Sep 18 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-1
6a12e50
- Update to 1.8.3
6a12e50
- Reenable check
6a12e50
205d0ba
* Wed Sep 07 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.8.2-1
205d0ba
- Update to 1.8.2
205d0ba
7ed8750
* Tue Aug 09 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.7.0-3
7ed8750
- Record installed files
7ed8750
fdcd11f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
fdcd11f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fdcd11f
07fcdb9
* Thu Jun 23 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.7.0-1
07fcdb9
- Update to 1.7.0
07fcdb9
07506a8
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-3
07506a8
- Switch Source0 to using pypi.io
07506a8
9d674d5
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-2
9d674d5
- Update Source0 URL to account for pypi change
9d674d5
3512f45
* Thu Apr 21 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-1
3512f45
- Update to 1.6.0 (#1329203)
3512f45
9ec3ed6
* Mon Feb 15 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.5.2-1
9ec3ed6
- Update to 1.5.2 (#1299272)
9ec3ed6
1dc0a9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
1dc0a9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1dc0a9c
7376baa
* Mon Jan 18 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.5.0-1
7376baa
- Update to 1.5.0 (#1299272)
7376baa
ac2b1cb
* Mon Jan 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.4.2-2
ac2b1cb
- Move python-cffi => python2-cffi
ac2b1cb
27bc6b1
* Tue Dec 22 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.2-1
27bc6b1
- Update to 1.4.2 (#1293504)
27bc6b1
6b0c520
* Thu Dec 17 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.1-1
6b0c520
- Update to latest upstream release
6b0c520
65dd632
* Fri Dec 11 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.3.1-1
3542213
- Update to latest upstream release
3542213
Robert Kuska a2bcd0b
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.1.2-4
Robert Kuska a2bcd0b
- Rebuilt for Python3.5 rebuild
Robert Kuska a2bcd0b
f59b293
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.1.2-3
f59b293
- Modernize spec file
f59b293
- add missing source
f59b293
39b383a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
39b383a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
39b383a
Nathaniel McCallum c7cb6a6
* Tue Jun 16 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.1.2-2
Nathaniel McCallum c7cb6a6
- Update to 1.1.2
Nathaniel McCallum c7cb6a6
- Fix license
Nathaniel McCallum c7cb6a6
77ca7d4
* Tue Aug 19 2014 Eric Smith <spacewar@gmail.com> 0.8.6-1
77ca7d4
- Update to latest upstream.
77ca7d4
- No python3 in el7.
77ca7d4
99b4758
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
99b4758
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
99b4758
98aeac1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
98aeac1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
98aeac1
0e6aada
* Mon May 12 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.1-2
0e6aada
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
0e6aada
8213599
* Wed Feb 26 2014 Eric Smith <spacewar@gmail.com> 0.8.1-1
8213599
- Update to latest upstream.
8213599
8213599
* Tue Aug 13 2013 Eric Smith <spacewar@gmail.com> 0.6-5
8dba9df
- Add Requires of python{,3}-pycparser.
8dba9df
8213599
* Thu Jul 25 2013 Eric Smith <spacewar@gmail.com> 0.6-4
f1d8e76
- Fix broken conditionals in spec (missing question marks), needed for el6.
f1d8e76
8213599
* Tue Jul 23 2013 Eric Smith <spacewar@gmail.com> 0.6-3
5d84689
- Add Python3 support.
5d84689
8213599
* Mon Jul 22 2013 Eric Smith <spacewar@gmail.com> 0.6-2
5d84689
- Better URL, and use version macro in Source0.
5d84689
8213599
* Sun Jul 21 2013 Eric Smith <spacewar@gmail.com> 0.6-1
5d84689
- initial version