[python-shapely/f13/master] Initial commit
Volker Fröhlich
volter at fedoraproject.org
Tue Nov 30 19:52:06 UTC 2010
commit 3f31707cf65a310bd205e4ce24df128f94a3d2c7
Author: Volker Fröhlich <volker27 at gmx.at>
Date: Tue Nov 30 20:52:07 2010 +0100
Initial commit
python-shapely.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
2 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/python-shapely.spec b/python-shapely.spec
new file mode 100644
index 0000000..c03593b
--- /dev/null
+++ b/python-shapely.spec
@@ -0,0 +1,71 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+# Can be removed after EOL of F12
+
+Name: python-shapely
+Version: 1.2.7
+Release: 2%{?dist}
+Summary: Geometric objects, predicates, and operations
+
+Group: Development/Libraries
+License: BSD
+URL: http://trac.gispython.org/lab/wiki/Shapely
+Source0: http://gispython.org/dist/Shapely-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-devel python-setuptools-devel
+Requires: geos
+
+%description
+Shapely is a package for creation, manipulation, and analysis
+of planar geometry objects – designed especially for developers
+of cutting edge geographic information systems. In a nutshell:
+Shapely lets you do PostGIS-ish stuff outside the context of a
+database using idiomatic Python.
+
+
+%prep
+%setup -q -n Shapely-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%check
+# Tests fail for F14 and Rawhide
+# http://trac.gispython.org/lab/ticket/244
+%if %{?fedora} == 13
+%{__python} setup.py test
+%endif
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES.txt CREDITS.txt README.txt LICENSE.txt
+%doc PKG-INFO examples docs
+%{python_sitelib}/shapely
+%{python_sitelib}/Shapely-%{version}-py*.egg-info
+# These two scripts are also in the examples directory, have no shebang
+# and seem to serve no purpose otherwise.
+%exclude %{_bindir}/intersect.py
+%exclude %{_bindir}/dissolve.py
+
+
+%changelog
+* Sat Nov 27 2010 Volker Fröhlich <volker27 at gmx.at> - 1.2.7-2
+- Explained excluded files; added check section
+
+* Wed Nov 24 2010 Volker Fröhlich <volker27 at gmx.at> - 1.2.7-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..127c278 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2cd0bab00a2c39d1ae6cd9ed648db904 Shapely-1.2.7.tar.gz
More information about the scm-commits
mailing list