Even more compliance with latest python packaging guidelines.

This commit is contained in:
Jerry James 2016-02-01 16:31:05 -07:00
parent 3db8b2e92c
commit 3bd9f927e5

View File

@ -7,7 +7,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.0.7 Version: 2.0.7
Release: 2%{?dist} Release: 2%{?dist}
Summary: Python 2 interface to GMP, MPFR, and MPC Summary: Python interface to GMP, MPFR, and MPC
# All source files are LGPLv3+ except: # All source files are LGPLv3+ except:
# - src/py3intcompat.c is Python # - src/py3intcompat.c is Python
@ -27,9 +27,6 @@ BuildRequires: python3-devel
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
%endif %endif
Provides: bundled(jquery)
%{?python_provide:%python_provide python2-%{srcname}}
%global common_desc \ %global common_desc \
This package contains a C-coded Python extension module that supports \ This package contains a C-coded Python extension module that supports \
multiple-precision arithmetic. It is the successor to the original \ multiple-precision arithmetic. It is the successor to the original \
@ -43,6 +40,15 @@ functionality.
%description %description
%{common_desc} %{common_desc}
%package -n python2-%{srcname}
Summary: Python 2 interface to GMP, MPFR, and MPC
Provides: bundled(jquery)
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
%{common_desc}
%if 0%{?with_py3} %if 0%{?with_py3}
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: Python 3 interface to GMP, MPFR, and MPC Summary: Python 3 interface to GMP, MPFR, and MPC
@ -103,14 +109,14 @@ popd
%install %install
# Python 2 install # Python 2 install
pushd %{srcname}-%{version} pushd %{srcname}-%{version}
%{py2_install} %py2_install
chmod 0755 %{buildroot}%{python2_sitearch}/*.so chmod 0755 %{buildroot}%{python2_sitearch}/*.so
popd popd
%if 0%{?with_py3} %if 0%{?with_py3}
# Python 3 install # Python 3 install
pushd python3-%{srcname}-%{version} pushd python3-%{srcname}-%{version}
%{py3_install} %py3_install
chmod 0755 %{buildroot}%{python3_sitearch}/*.so chmod 0755 %{buildroot}%{python3_sitearch}/*.so
popd popd
%endif %endif
@ -128,7 +134,7 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} test/runtests.py
popd popd
%endif %endif
%files %files -n python2-%{srcname}
%license %{srcname}-%{version}/COPYING %{srcname}-%{version}/COPYING.LESSER %license %{srcname}-%{version}/COPYING %{srcname}-%{version}/COPYING.LESSER
%doc %{srcname}-%{version}/docs/_build/html/* %doc %{srcname}-%{version}/docs/_build/html/*
%{python2_sitearch}/%{srcname}* %{python2_sitearch}/%{srcname}*
@ -141,6 +147,9 @@ popd
%endif %endif
%changelog %changelog
* Mon Feb 1 2016 Jerry James <loganjerry@gmail.com> - 2.0.7-2
- Comply with latest python packaging guidelines
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2 * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5