[python-geojson] Initial import (#916432)
Ralph Bean
ralph at fedoraproject.org
Mon Apr 29 14:55:06 UTC 2013
commit 96d0a218207953ee74cedf5b2701b09a3dd2aae2
Author: Ralph Bean <rbean at redhat.com>
Date: Mon Apr 29 10:54:57 2013 -0400
Initial import (#916432)
.gitignore | 1 +
python-geojson-remove-setuptools-requirement.patch | 25 +++++++++
python-geojson.spec | 57 ++++++++++++++++++++
sources | 1 +
4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7582ac2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geojson-1.0.1.tar.gz
diff --git a/python-geojson-remove-setuptools-requirement.patch b/python-geojson-remove-setuptools-requirement.patch
new file mode 100644
index 0000000..79574c3
--- /dev/null
+++ b/python-geojson-remove-setuptools-requirement.patch
@@ -0,0 +1,25 @@
+From 2fd782911a42a07f8ba5499f8cdbee2ed8cd9d5d Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Mon, 4 Mar 2013 09:47:20 -0500
+Subject: [PATCH] Remove setuptools requirement.
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index b51fd20..19c7592 100644
+--- a/setup.py
++++ b/setup.py
+@@ -15,7 +15,7 @@ setup(name = "geojson",
+ url = "http://trac.gispython.org/lab/wiki/GeoJSON",
+ long_description = readme_text,
+ packages = ["geojson"],
+- install_requires = ["simplejson", "setuptools"],
++ install_requires = ["simplejson"],
+ test_suite = "tests.test_suite",
+ classifiers = [
+ "Development Status :: 5 - Production/Stable",
+--
+1.8.1.2
+
diff --git a/python-geojson.spec b/python-geojson.spec
new file mode 100644
index 0000000..8b5e801
--- /dev/null
+++ b/python-geojson.spec
@@ -0,0 +1,57 @@
+%global modname geojson
+
+Name: python-geojson
+Version: 1.0.1
+Release: 2%{?dist}
+Summary: Encoder/decoder for simple GIS features
+
+Group: Development/Libraries
+License: BSD
+URL: http://pypi.python.org/pypi/geojson
+Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz
+# Remove setuptools runtime requirement
+Patch0: python-geojson-remove-setuptools-requirement.patch
+
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-simplejson
+
+Requires: python-simplejson
+
+
+%description
+Geojson provides geometry, feature, and collection classes, and supports
+pickle-style dump and load of objects that provide the lab's Python geo
+interface.
+
+%prep
+%setup -q -n %{modname}-%{version}
+%patch0 -p1
+
+# Remove bundled egg-info in case it exists
+rm -rf %{modname}.egg-info
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+# The tests don't quite pass.
+#%%check
+#%%{__python} setup.py test
+
+%files
+%doc README.txt LICENSE.txt CHANGES.txt CREDITS.txt GeoInterface.txt
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}*
+
+%changelog
+* Mon Mar 04 2013 Ralph Bean <rbean at redhat.com> - 1.0.1-2
+- Remove setuptools runtime requirement.
+- Remove example from description.
+
+* Wed Feb 27 2013 Ralph Bean <rbean at redhat.com> - 1.0.1-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..8fd7598 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e71eadfa718684480b99f6be5269558a geojson-1.0.1.tar.gz
More information about the scm-commits
mailing list