c6631b
Name:           python-cffi
c6631b
Version:        1.11.5
c6631b
Release:        5%{?dist}
c6631b
Summary:        Foreign Function Interface for Python to call C code
c6631b
License:        MIT
c6631b
URL:            http://cffi.readthedocs.org/
c6631b
Source0:        https://pypi.io/packages/source/c/cffi/cffi-%{version}.tar.gz
c6631b
c6631b
BuildRequires:  libffi-devel
c6631b
BuildRequires:  python3-sphinx
c6631b
BuildRequires:  python3-devel
c6631b
BuildRequires:  python3-setuptools
c6631b
BuildRequires:  python3-Cython
c6631b
BuildRequires:  python3-pycparser
c6631b
BuildRequires:  python3-pytest
c6631b
c6631b
# Do not check .so files in the python_sitelib directory
c6631b
# or any files in the application's directory for provides
c6631b
%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$
c6631b
c6631b
%description
c6631b
Foreign Function Interface for Python, providing a convenient and
c6631b
reliable way of calling existing C code from Python. The interface is
c6631b
based on LuaJIT’s FFI.
c6631b
c6631b
%package -n python3-cffi
c6631b
Summary:        Foreign Function Interface for Python 3 to call C code
c6631b
Requires:       python3-pycparser
c6631b
%{?python_provide:%python_provide python3-cffi}
c6631b
c6631b
%description -n python3-cffi
c6631b
Foreign Function Interface for Python, providing a convenient and
c6631b
reliable way of calling existing C code from Python. The interface is
c6631b
based on LuaJIT’s FFI.
c6631b
%package doc
c6631b
Summary:        Documentation for CFFI
c6631b
BuildArch:      noarch
c6631b
Requires:       python3-cffi = %{version}-%{release}
c6631b
c6631b
%description doc
c6631b
Documentation for CFFI, the Foreign Function Interface for Python.
c6631b
c6631b
%prep
c6631b
%setup -q -n cffi-%{version}
c6631b
c6631b
%build
c6631b
%py3_build
c6631b
cd doc
c6631b
make html
c6631b
rm build/html/.buildinfo
c6631b
c6631b
#Tests fail but only in mock.
c6631b
#%check
c6631b
#%{__python3} setup_base.py build_ext -f -i
c6631b
#PYTHONPATH=build/lib.linux-* py.test-3 c/ testing/
c6631b
c6631b
%install
c6631b
%py3_install \
c6631b
    --record %{buildroot}%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/installed-files.txt
c6631b
c6631b
%files -n python3-cffi
c6631b
%doc PKG-INFO
c6631b
%license LICENSE
c6631b
%{python3_sitearch}/*
c6631b
c6631b
%files doc
c6631b
%doc doc/build/html
c6631b
c6631b
c6631b
%changelog
c6631b
* Mon Oct 22 2018 Christian Heimes <cheimes@redhat.com> - 1.11.5-5
c6631b
- Build doc package, resolves rhbz#1641665
c6631b
c6631b
* Thu Jun 07 2018 Troy Dawson <tdawson@redhat.com> - 1.11.5-4
c6631b
- No python2 in RHEL8
c6631b
c6631b
* Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3
c6631b
- Disable tests to fix mock-only FTBFS.
c6631b
c6631b
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.5-2
c6631b
- Update Python 2 dependency declarations to new packaging standards
c6631b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c6631b
c6631b
* Fri Mar 02 2018 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
c6631b
- New release 1.11.5
c6631b
c6631b
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.11.2-3
c6631b
- Escape macros in %%changelog
c6631b
c6631b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c6631b
c6631b
* Thu Oct 19 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
c6631b
- New release 1.11.0
c6631b
- Fix %%check
c6631b
c6631b
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 1.11.0-2
c6631b
- Cleanup spec file conditionals
c6631b
c6631b
* Sat Sep 23 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.0-1
c6631b
- New release 1.11.0
c6631b
c6631b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c6631b
c6631b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c6631b
c6631b
* Tue Apr 04 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.10.0-1
c6631b
- New release 1.10.0
c6631b
c6631b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c6631b
c6631b
* Sat Jan 07 2017 John Dulaney <jdulaney@Fedoraproject.org> - 1.9.1-1
c6631b
- Update to latest upstream 1.9.1
c6631b
c6631b
* Fri Jan 6 2017 Orion Poplawski <orion@cora.nwra.com> - 1.8.3-4
c6631b
- Modernize spec
c6631b
c6631b
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.8.3-3
c6631b
- Rebuild for Python 3.6
c6631b
- Disable test dependencies
c6631b
c6631b
* Thu Nov 03 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-2
c6631b
- Re-disable check
c6631b
c6631b
* Sun Sep 18 2016 John Dulaney <jdulaney@Fedoraproject.org> - 1.8.3-1
c6631b
- Update to 1.8.3
c6631b
- Reenable check
c6631b
c6631b
* Wed Sep 07 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.8.2-1
c6631b
- Update to 1.8.2
c6631b
c6631b
* Tue Aug 09 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.7.0-3
c6631b
- Record installed files
c6631b
c6631b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
c6631b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c6631b
c6631b
* Thu Jun 23 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.7.0-1
c6631b
- Update to 1.7.0
c6631b
c6631b
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-3
c6631b
- Switch Source0 to using pypi.io
c6631b
c6631b
* Thu Apr 28 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-2
c6631b
- Update Source0 URL to account for pypi change
c6631b
c6631b
* Thu Apr 21 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6.0-1
c6631b
- Update to 1.6.0 (#1329203)
c6631b
c6631b
* Mon Feb 15 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.5.2-1
c6631b
- Update to 1.5.2 (#1299272)
c6631b
c6631b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6631b
c6631b
* Mon Jan 18 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.5.0-1
c6631b
- Update to 1.5.0 (#1299272)
c6631b
c6631b
* Mon Jan 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.4.2-2
c6631b
- Move python-cffi => python2-cffi
c6631b
c6631b
* Tue Dec 22 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.2-1
c6631b
- Update to 1.4.2 (#1293504)
c6631b
c6631b
* Thu Dec 17 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.4.1-1
c6631b
- Update to latest upstream release
c6631b
c6631b
* Fri Dec 11 2015 John Dulaney <jdulaney@fedoraproject.org> - 1.3.1-1
c6631b
- Update to latest upstream release
c6631b
c6631b
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.1.2-4
c6631b
- Rebuilt for Python3.5 rebuild
c6631b
c6631b
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.1.2-3
c6631b
- Modernize spec file
c6631b
- add missing source
c6631b
c6631b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c6631b
c6631b
* Tue Jun 16 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.1.2-2
c6631b
- Update to 1.1.2
c6631b
- Fix license
c6631b
c6631b
* Tue Aug 19 2014 Eric Smith <spacewar@gmail.com> 0.8.6-1
c6631b
- Update to latest upstream.
c6631b
- No python3 in el7.
c6631b
c6631b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c6631b
c6631b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6631b
c6631b
* Mon May 12 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.1-2
c6631b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
c6631b
c6631b
* Wed Feb 26 2014 Eric Smith <spacewar@gmail.com> 0.8.1-1
c6631b
- Update to latest upstream.
c6631b
c6631b
* Tue Aug 13 2013 Eric Smith <spacewar@gmail.com> 0.6-5
c6631b
- Add Requires of python{,3}-pycparser.
c6631b
c6631b
* Thu Jul 25 2013 Eric Smith <spacewar@gmail.com> 0.6-4
c6631b
- Fix broken conditionals in spec (missing question marks), needed for el6.
c6631b
c6631b
* Tue Jul 23 2013 Eric Smith <spacewar@gmail.com> 0.6-3
c6631b
- Add Python3 support.
c6631b
c6631b
* Mon Jul 22 2013 Eric Smith <spacewar@gmail.com> 0.6-2
c6631b
- Better URL, and use version macro in Source0.
c6631b
c6631b
* Sun Jul 21 2013 Eric Smith <spacewar@gmail.com> 0.6-1
c6631b
- initial version