From bcf8c16765d0101454485bb6438041d67453bb28 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 8 Mar 2023 07:54:43 -0500 Subject: [PATCH] Build the Python 3 sub-package on EPEL7 --- python-OWSLib.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/python-OWSLib.spec b/python-OWSLib.spec index 905ba36..ab0437e 100644 --- a/python-OWSLib.spec +++ b/python-OWSLib.spec @@ -1,5 +1,4 @@ # Works with either ElementTree or python-lxml -%global with_python3 0%{?fedora} Name: python-OWSLib Version: 0.9.0 @@ -37,7 +36,6 @@ Requires: python2-pytz %description -n python2-OWSLib %{common_description} -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-OWSLib Summary: %{summary} @@ -55,7 +53,6 @@ Requires: python%{python3_pkgversion}-requests Requires: python%{python3_pkgversion}-pytz %description -n python%{python3_pkgversion}-OWSLib %{common_description} -%endif # if with_python3 %prep @@ -71,16 +68,12 @@ find 'owslib' -type f -name '*.py' \ %build %py2_build -%if 0%{?with_python3} %py3_build -%endif %install %py2_install -%if 0%{?with_python3} %py3_install -%endif # if with_python3 %files -n python2-OWSLib @@ -91,20 +84,19 @@ find 'owslib' -type f -name '*.py' \ %{python2_sitelib}/OWSLib-%{version}-py%{python2_version}.egg-info -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-OWSLib %license LICENSE.txt %doc README.txt CHANGES.txt CREDITS.txt %{python3_sitelib}/owslib/ %{python3_sitelib}/OWSLib-%{version}-py%{python3_version}.egg-info -%endif # if with_python3 %changelog * Wed Mar 08 2023 Benjamin A. Beasley - 0.9.0-2 - Generally “modernize” packaging (by EPEL7 standards) - Update License to SPDX +- Build the Python 3 sub-package on EPEL7 * Sat Jun 13 2015 Volker Fröhlich - 0.9.0-1 - New upstream release