This commit is contained in:
dogsheng 2019-11-30 10:33:23 +08:00
parent f30f36b67f
commit 59c4a11db8

View File

@ -6,13 +6,14 @@ based on C-like declarations that you can often copy-paste from header files or
Name: python-%{_name} Name: python-%{_name}
Version: 1.11.5 Version: 1.11.5
Release: 9 Release: 10
Summary: %{_summary} Summary: %{_summary}
License: MIT License: MIT
URL: http://cffi.readthedocs.org URL: http://cffi.readthedocs.org
Source0: https://files.pythonhosted.org/packages/source/c/cffi/%{_name}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/c/cffi/%{_name}-%{version}.tar.gz
Buildrequires: gdb libffi-devel gcc-c++ Buildrequires: gdb libffi-devel gcc-c++ gcc
%?python_enable_dependency_generator
%description %{_description} %description %{_description}
@ -51,14 +52,14 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE AUTHORS %doc LICENSE AUTHORS
%{python2_sitearch}/%{_name}/* %{python2_sitearch}/%{_name}/*
%{python2_sitearch}/%{_name}*info/* %{python2_sitearch}/%{_name}*info/
%{python2_sitearch}/_%{_name}*.so %{python2_sitearch}/_%{_name}*.so
%files -n python3-%{_name} %files -n python3-%{_name}
%defattr(-,root,root) %defattr(-,root,root)
%license LICENSE AUTHORS %license LICENSE AUTHORS
%{python3_sitearch}/%{_name}/* %{python3_sitearch}/%{_name}/*
%{python3_sitearch}/%{_name}*info/* %{python3_sitearch}/%{_name}*info/
%{python3_sitearch}/_%{_name}*.so %{python3_sitearch}/_%{_name}*.so
%files help %files help