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
This commit is contained in:
Sascha Peilicke 2011-09-26 08:15:11 +00:00 committed by Git OBS Bridge
parent 36e66be886
commit 2ba51bd879
2 changed files with 19 additions and 18 deletions

View File

@ -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 Thu Mar 24 23:18:59 UTC 2011 - alexandre@exatati.com.br

View File

@ -11,36 +11,32 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # 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()")} Name: python-geopy
%{!?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}
Version: 0.94.1 Version: 0.94.1
Release: 1 Release: 0
Url: http://www.geopy.org/ Url: http://www.geopy.org/
Summary: Python Geocoding Toolbox Summary: Python Geocoding Toolbox
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2 Source: geopy-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-setuptools BuildRequires: python-distribute
BuildRequires: python-simplejson BuildRequires: python-simplejson
BuildRequires: python-xml BuildRequires: python-xml
Requires: python-xml
%if 0%{?suse_version} %if 0%{?suse_version}
%py_requires %py_requires
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif %endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
geopy makes it easy for developers to locate the coordinates of addresses, cities, 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. extension), and Semantic MediaWiki pages.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n geopy-%{version}
%build %build
export CFLAGS="%{optflags}"
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean # TODO: Disable only tests that need network access
rm -rf %{buildroot} #%%check
#python setup.py test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
# You may have to add additional files here (documentation and binaries mostly) %python_sitelib/*
%python_sitelib/%{mod_name}*
%python_sitelib/*.egg-info
%changelog %changelog