Compare commits

...

No commits in common. "imports/c8-beta/python-cffi-1.11.5-5.el8" and "c8-stream-3.8" have entirely different histories.

3 changed files with 95 additions and 37 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/cffi-1.11.5.tar.gz SOURCES/cffi-1.13.2.tar.gz

View File

@ -1 +1 @@
1686e6689a691414d3d22626c837adeee3996dd9 SOURCES/cffi-1.11.5.tar.gz ad94c1b64570ec3016a945d4b226d527de81f9b9 SOURCES/cffi-1.13.2.tar.gz

View File

@ -1,78 +1,136 @@
%bcond_with docs
Name: python-cffi Name: python-cffi
Version: 1.11.5 Version: 1.13.2
Release: 5%{?dist} Release: 3%{?dist}
Summary: Foreign Function Interface for Python to call C code Summary: Foreign Function Interface for Python to call C code
License: MIT License: MIT
URL: http://cffi.readthedocs.org/ URL: https://cffi.readthedocs.org/
Source0: https://pypi.io/packages/source/c/cffi/cffi-%{version}.tar.gz Source0: %{pypi_source cffi}
# Exclude i686 arch. Due to a modularity issue it's being added to the
# x86_64 compose of CRB, but we don't want to ship it at all.
# See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: python3-sphinx BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: python3-pycparser
BuildRequires: python3-pytest
# Do not check .so files in the python_sitelib directory # For tests:
# or any files in the application's directory for provides BuildRequires: gcc-c++
%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$
%?python_enable_dependency_generator
%description %description
Foreign Function Interface for Python, providing a convenient and Foreign Function Interface for Python, providing a convenient and
reliable way of calling existing C code from Python. The interface is reliable way of calling existing C code from Python. The interface is
based on LuaJITs FFI. based on LuaJITs FFI.
%package -n python3-cffi %package -n python%{python3_pkgversion}-cffi
Summary: Foreign Function Interface for Python 3 to call C code Summary: Foreign Function Interface for Python 3 to call C code
Requires: python3-pycparser %if %{with docs}
%{?python_provide:%python_provide python3-cffi} BuildRequires: python%{python3_pkgversion}-sphinx
%endif
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pycparser
BuildRequires: python%{python3_pkgversion}-rpm-macros
%{?python_provide:%python_provide python%{python3_pkgversion}-cffi}
%description -n python3-cffi %description -n python%{python3_pkgversion}-cffi
Foreign Function Interface for Python, providing a convenient and Foreign Function Interface for Python, providing a convenient and
reliable way of calling existing C code from Python. The interface is reliable way of calling existing C code from Python. The interface is
based on LuaJITs FFI. based on LuaJITs FFI.
%package doc %package doc
Summary: Documentation for CFFI Summary: Documentation for CFFI
BuildArch: noarch BuildArch: noarch
Requires: python3-cffi = %{version}-%{release}
%description doc %description doc
Documentation for CFFI, the Foreign Function Interface for Python. Documentation for CFFI, the Foreign Function Interface for Python.
%prep %prep
%setup -q -n cffi-%{version} %autosetup -p1 -n cffi-%{version}
%build %build
%py3_build %py3_build
cd doc
make html
rm build/html/.buildinfo
#Tests fail but only in mock. %if %{with docs}
#%check cd doc
#%{__python3} setup_base.py build_ext -f -i make SPHINXBUILD=sphinx-build-3 html
#PYTHONPATH=build/lib.linux-* py.test-3 c/ testing/ rm build/html/.buildinfo
%endif
%install %install
%py3_install \ %py3_install
--record %{buildroot}%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/installed-files.txt
%files -n python3-cffi %check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%files -n python%{python3_pkgversion}-cffi
%doc PKG-INFO %doc PKG-INFO
%license LICENSE %license LICENSE
%{python3_sitearch}/* %{python3_sitearch}/cffi/
%{python3_sitearch}/_cffi_backend.*.so
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
%if %{with docs}
%files doc %files doc
%doc doc/build/html %doc doc/build/html
%endif
%changelog %changelog
* Mon Oct 22 2018 Christian Heimes <cheimes@redhat.com> - 1.11.5-5 * Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.13.2-3
- Build doc package, resolves rhbz#1641665 - Exclude unsupported i686 arch
* Thu Jun 07 2018 Troy Dawson <tdawson@redhat.com> - 1.11.5-4 * Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-2
- No python2 in RHEL8 - Adjusted for Python 3.8 module in RHEL 8
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-1
- Update to 1.13.2 (#1768219)
* Mon Oct 21 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.1-1
- Update to 1.13.1 (#1763767)
* Tue Oct 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.0-1
- Update to 1.13.0 (#1761757)
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-5
- Subpackage python2-cffi has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-3
- Reduce Python 2 build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-2
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-1
- Update to 1.12.3 (#1701577)
- https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-12-3
* Mon Jul 15 2019 Petr Viktorin <pviktori@redhat.com> - 1.12.2-2
- Remove unused build dependency on Cython
- Remove duplicate build dependency on pytest
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.2-1
- Update to 1.12.2 (#1677888)
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-6
- Fix FTBFS (#1605627)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.5-4
- Rebuilt for Python 3.7
* Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3 * Fri May 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.11.5-3
- Disable tests to fix mock-only FTBFS. - Disable tests to fix mock-only FTBFS.