5d84689
Name:           python-cffi
3254f34
Version:        1.12.3
3254f34
Release:        1%{?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
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
ac2b1cb
%package -n python2-cffi
ac2b1cb
Summary:        Foreign Function Interface for Python 3 to call C code
dabc32b
BuildRequires:  python2-pytest
dabc32b
BuildRequires:  python2-devel
dabc32b
BuildRequires:  python2-setuptools
dabc32b
BuildRequires:  python2-pycparser
ac2b1cb
%{?python_provide:%python_provide python2-cffi}
ac2b1cb
ac2b1cb
%description -n python2-cffi
ac2b1cb
Foreign Function Interface for Python, providing a convenient and
ac2b1cb
reliable way of calling existing C code from Python. The interface is
ac2b1cb
based on LuaJIT’s FFI.
ac2b1cb
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
524344e
%autosetup -p1 -n cffi-%{version}
5d84689
5d84689
%build
dabc32b
%py2_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
%py2_install
dabc32b
%py3_install
dabc32b
dabc32b
%check
824bcda
PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/
824bcda
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
5d84689
ac2b1cb
%files -n python2-cffi
f59b293
%doc PKG-INFO
f59b293
%license LICENSE
dabc32b
%{python2_sitearch}/cffi/
dabc32b
%{python2_sitearch}/_cffi_backend.so
dabc32b
%{python2_sitearch}/cffi-%{version}-py%{python2_version}.egg-info/
5d84689
5d84689
%files -n python3-cffi
f59b293
%doc PKG-INFO
f59b293
%license LICENSE
dabc32b
%{python3_sitearch}/cffi/
dabc32b
%{python3_sitearch}/_cffi_backend.*.so
dabc32b
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
5d84689
5d84689
%files doc
5d84689
%doc doc/build/html
5d84689
5d84689
%changelog
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