From 2ba51bd87976a000212a70571a610e9eb659f003cae03841704866d8efb07f92 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 26 Sep 2011 08:15:11 +0000 Subject: [PATCH] Accepting request 84083 from devel:languages:python - Spec file cleanup: * Removed %clean section (not needed anymore) * Removed CFLAGS (not a C extension) OBS-URL: https://build.opensuse.org/request/show/84083 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geopy?expand=0&rev=3 --- python-geopy.changes | 7 +++++++ python-geopy.spec | 30 ++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/python-geopy.changes b/python-geopy.changes index 4b47449..1c789c5 100644 --- a/python-geopy.changes +++ b/python-geopy.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 21 09:25:03 UTC 2011 - saschpe@suse.de + +- Spec file cleanup: + * Removed %clean section (not needed anymore) + * Removed CFLAGS (not a C extension) + ------------------------------------------------------------------- Thu Mar 24 23:18:59 UTC 2011 - alexandre@exatati.com.br diff --git a/python-geopy.spec b/python-geopy.spec index dbc4a2f..9c7fd89 100644 --- a/python-geopy.spec +++ b/python-geopy.spec @@ -11,36 +11,32 @@ # 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/ # -# norootforbuild -%{!?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)")} - -%define mod_name geopy - -Name: python-%{mod_name} +Name: python-geopy Version: 0.94.1 -Release: 1 +Release: 0 Url: http://www.geopy.org/ Summary: Python Geocoding Toolbox License: MIT Group: Development/Languages/Python -Source: %{mod_name}-%{version}.tar.bz2 +Source: geopy-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-distribute BuildRequires: python-simplejson BuildRequires: python-xml +Requires: python-xml %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description geopy makes it easy for developers to locate the coordinates of addresses, cities, @@ -52,22 +48,20 @@ Local Live (Virtual Earth), geocoder.us, GeoNames, MediaWiki pages (with the GIS extension), and Semantic MediaWiki pages. %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n geopy-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} +# TODO: Disable only tests that need network access +#%%check +#python setup.py test %files %defattr(-,root,root,-) -# You may have to add additional files here (documentation and binaries mostly) -%python_sitelib/%{mod_name}* -%python_sitelib/*.egg-info +%python_sitelib/* %changelog