Build the Python 3 sub-package on EPEL7
This commit is contained in:
parent
417d4722f6
commit
bcf8c16765
1 changed files with 1 additions and 9 deletions
|
|
@ -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 <code@musicinmybrain.net> - 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 <volker27@gmx.at> - 0.9.0-1
|
||||
- New upstream release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue