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:
parent
36e66be886
commit
2ba51bd879
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user