diff --git a/cffi-1.14.4.tar.gz b/cffi-1.14.4.tar.gz deleted file mode 100644 index 444610c60c04a781bafca07175266de3d8d0ddda..0000000000000000000000000000000000000000 Binary files a/cffi-1.14.4.tar.gz and /dev/null differ diff --git a/cffi-1.14.5.tar.gz b/cffi-1.14.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cd5e0da8eec9c30193f377c7bb95af2c5ece34dc Binary files /dev/null and b/cffi-1.14.5.tar.gz differ diff --git a/python-cffi.spec b/python-cffi.spec index 244fcd366ee2417d3e22329c2e8c54e85ade8b23..c0d901e9f4accb7825fbe77c1334bfdcd268390b 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -1,35 +1,53 @@ -%global _name cffi -%global _summary C Foreign Function Interface for Python -%global _description \ -C Foreign Function Interface for Python. Interact with almost any C code from Python,\ +%global _empty_manifest_terminate_build 0 +Name: python-cffi +Version: 1.14.5 +Release: 1 +Summary: Foreign Function Interface for Python calling C code. +License: MIT +URL: http://cffi.readthedocs.org +Source0: https://files.pythonhosted.org/packages/a8/20/025f59f929bbcaa579704f443a438135918484fffaacfaddba776b374563/cffi-1.14.5.tar.gz +%description +C Foreign Function Interface for Python. Interact with almost any C code from Python, based on C-like declarations that you can often copy-paste from header files or documentation. -Name: python-%{_name} -Version: 1.14.4 -Release: 1 -Summary: %{_summary} -License: MIT -URL: http://cffi.readthedocs.org -Source0: https://files.pythonhosted.org/packages/source/c/cffi/%{_name}-%{version}.tar.gz +%package -n python3-cffi +Summary: Foreign Function Interface for Python calling C code. +Provides: python-cffi +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +BuildRequires: libffi-devel +# General requires +BuildRequires: python3-pycparser +# Tests running requires +BuildRequires: python3-pytest +# General requires +Requires: python3-pycparser +Requires: libffi-devel +# Tests running requires +Requires: python3-pytest +%description -n python3-cffi +C Foreign Function Interface for Python. Interact with almost any C code from Python, +based on C-like declarations that you can often copy-paste from header files or documentation. -Buildrequires: gdb libffi-devel gcc-c++ gcc python3-sphinx - -%?python_enable_dependency_generator - -%description %{_description} - -%package -n python3-%{_name} -Summary: %{_summary} -Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptools -%{?python_provide:%python_provide python3-%{_name}} -%description -n python3-%{_name} %{_description} +%package help +Summary: Foreign Function Interface for Python calling C code. +Provides: python3-cffi-doc +%description help +C Foreign Function Interface for Python. Interact with almost any C code from Python, +based on C-like declarations that you can often copy-paste from header files or documentation. -%package_help %prep -%autosetup -n %{_name}-%{version} -p1 +%autosetup -n cffi-1.14.5 -S git %build %py3_build @@ -37,21 +55,45 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool %install %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + %check -PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ +%{__python3} setup.py test -%files -n python3-%{_name} -%defattr(-,root,root) -%license LICENSE AUTHORS -%{python3_sitearch}/%{_name}/* -%{python3_sitearch}/%{_name}*info/ -%{python3_sitearch}/_%{_name}*.so +%files -n python3-cffi -f filelist.lst -%files help -%defattr(-,root,root) -%doc PKG-INFO README.md +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Jul 14 2021 OpenStack_SIG - 1.14.5-1 +- Upgrade to version 1.14.5 * Mon Feb 1 2021 wangjie - 1.14.4-1 - DESC:upgrade 1.14.4-1 @@ -84,24 +126,20 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ - ID:NA - SUG:NA - DESC:potential fix for python3.8 - * Tue Nov 5 2019 shenyangyang - 1.11.5-10 - Type:enhancement - ID:NA - SUG:NA - DESC:add provides of pythonx.7dist(cffi) - * Fri Sep 27 2019 shenyangyang - 1.11.5-9 - Type:enhancement - ID:NA - SUG:NA - DESC:move license file - * Thu Sep 5 2019 shenyangyang - 1.11.5-8 - Type:enhancement - ID:NA - SUG:NA - DESC:optimize the method to provide default version of python-name - * Wed Aug 21 2019 openEuler Buildteam - 1.11.5-7 - Package init