56 lines
1.4 KiB
RPMSpec
56 lines
1.4 KiB
RPMSpec
# Works with either ElementTree or python-lxml
|
|
%global modname OWSLib
|
|
|
|
Name: python-%{modname}
|
|
Version: 0.21.0
|
|
Release: %autorelease
|
|
Summary: Client library for OGC web services
|
|
License: BSD
|
|
URL: https://geopython.github.io/OWSLib
|
|
Source0: https://files.pythonhosted.org/packages/source/O/%{modname}/%{modname}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
|
|
%global _description\
|
|
Package for client programming with Open Geospatial Consortium (OGC) web\
|
|
service (hence OWS) interface standards, and their related content models.
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-OWSLib
|
|
Summary: Client library for OGC web services
|
|
|
|
Requires: python3-dateutil
|
|
Requires: python3-pyproj
|
|
Requires: python3-pytz
|
|
Requires: python3-requests
|
|
|
|
%description -n python3-OWSLib
|
|
Package for client programming with Open Geospatial Consortium (OGC) web
|
|
service (hence OWS) interface standards, and their related content models.
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
rm -rf %{modname}.egg-info
|
|
|
|
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
|
|
%files -n python3-OWSLib
|
|
%doc README.rst CHANGES.rst AUTHORS.rst
|
|
# TODO: Add LICENSE on the next release after 0.17.0
|
|
%{python3_sitelib}/owslib
|
|
%{python3_sitelib}/%{modname}-%{version}-py*.egg-info
|
|
|
|
%changelog
|
|
%autochangelog
|