| 1 |
# |
| 2 |
# spec file for package OWSLib (0.7.2) |
| 3 |
# |
| 4 |
# Copyright (c) 2011 Angelos Tzotsos <[email protected]> |
| 5 |
# |
| 6 |
# This file and all modifications and additions to the pycsw |
| 7 |
# package are under the same license as the package itself. |
| 8 |
|
| 9 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} |
| 10 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
| 11 |
|
| 12 |
%define pyname owslib |
| 13 |
|
| 14 |
Name: python-%{pyname} |
| 15 |
Version: 0.7.2 |
| 16 |
Release: 0 |
| 17 |
Summary: Python interface to OGC Web Services |
| 18 |
License: BSD |
| 19 |
Url: http://geopython.github.com/OWSLib/ |
| 20 |
Group: Productivity/Scientific/Other |
| 21 |
Source0: %{pyname}-%{version}.tar.gz |
| 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 23 |
BuildArch: noarch |
| 24 |
BuildRequires: python-devel |
| 25 |
BuildRequires: python-setuptools |
| 26 |
BuildRequires: fdupes |
| 27 |
Requires: python |
| 28 |
Requires: python-dateutil |
| 29 |
|
| 30 |
%description |
| 31 |
OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models. |
| 32 |
|
| 33 |
%prep |
| 34 |
%setup -q -n %{pyname}-%{version} |
| 35 |
|
| 36 |
%build |
| 37 |
%{__python} setup.py build |
| 38 |
|
| 39 |
%install |
| 40 |
rm -rf %{buildroot} |
| 41 |
|
| 42 |
python setup.py install --prefix=%{_prefix} --root=%{buildroot} \ |
| 43 |
--record-rpm=INSTALLED_FILES |
| 44 |
|
| 45 |
%fdupes -s %{buildroot} |
| 46 |
|
| 47 |
%clean |
| 48 |
rm -rf %{buildroot} |
| 49 |
|
| 50 |
%files -f INSTALLED_FILES |
| 51 |
%defattr(-,root,root,-) |
| 52 |
|
| 53 |
%changelog |