update (forwarded request 200602 from posophe) OBS-URL: https://build.opensuse.org/request/show/200661 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Shapely?expand=0&rev=6
62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-Shapely
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-Shapely
|
|
Version: 1.2.18
|
|
Release: 0
|
|
Summary: Geospatial geometries, predicates, and operations
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Python
|
|
Url: http://pypi.python.org/pypi/Shapely
|
|
Source: http://pypi.python.org/packages/source/S/Shapely/Shapely-%{version}.tar.gz
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-distribute
|
|
Requires: python-ctypes
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Shapely is a Python package for manipulation and analysis of 2D geospatial
|
|
geometries. It is based on GEOS (http://geos.refractions.net). Shapely 1.0
|
|
is not concerned with data formats or coordinate reference systems.
|
|
Responsibility for reading and writing data and projecting coordinates is
|
|
left to other packages like WorldMill and pyproj.
|
|
|
|
%prep
|
|
%setup -q -n Shapely-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
#%%check
|
|
#python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CREDITS.txt LICENSE.txt README.rst docs/*
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|