From 3bd9f927e5750def30c9e589ee9804c8bce2a776 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 1 Feb 2016 16:31:05 -0700 Subject: [PATCH] Even more compliance with latest python packaging guidelines. --- python-gmpy2.spec | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/python-gmpy2.spec b/python-gmpy2.spec index 2a6e685..d05ec28 100644 --- a/python-gmpy2.spec +++ b/python-gmpy2.spec @@ -7,7 +7,7 @@ Name: python-%{srcname} Version: 2.0.7 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: # - src/py3intcompat.c is Python @@ -27,9 +27,6 @@ BuildRequires: python3-devel BuildRequires: python3-sphinx %endif -Provides: bundled(jquery) -%{?python_provide:%python_provide python2-%{srcname}} - %global common_desc \ This package contains a C-coded Python extension module that supports \ multiple-precision arithmetic. It is the successor to the original \ @@ -43,6 +40,15 @@ functionality. %description %{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} %package -n python3-%{srcname} Summary: Python 3 interface to GMP, MPFR, and MPC @@ -103,14 +109,14 @@ popd %install # Python 2 install pushd %{srcname}-%{version} -%{py2_install} +%py2_install chmod 0755 %{buildroot}%{python2_sitearch}/*.so popd %if 0%{?with_py3} # Python 3 install pushd python3-%{srcname}-%{version} -%{py3_install} +%py3_install chmod 0755 %{buildroot}%{python3_sitearch}/*.so popd %endif @@ -128,7 +134,7 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} test/runtests.py popd %endif -%files +%files -n python2-%{srcname} %license %{srcname}-%{version}/COPYING %{srcname}-%{version}/COPYING.LESSER %doc %{srcname}-%{version}/docs/_build/html/* %{python2_sitearch}/%{srcname}* @@ -141,6 +147,9 @@ popd %endif %changelog +* Mon Feb 1 2016 Jerry James - 2.0.7-2 +- Comply with latest python packaging guidelines + * Tue Nov 10 2015 Fedora Release Engineering - 2.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5