Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Application:Geo
python-basemap
python-basemap.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-basemap.spec of Package python-basemap
# # spec file for package python-basemap # # Copyright (c) 2012-2013 Wojciech Kazubski, wk@ire.pw.edu.pl # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # 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/ # %define pyname basemap %define ver 1.0.7 Name: python-%{pyname} Version: %{ver} Release: 21.1 Summary: Plots map projections with boundaries Group: Development/Libraries/Python License: LGPL-2.0+ Url: http://matplotlib.sourceforge.net/users/toolkits.html Source0: http://downloads.sourceforge.net/project/matplotlib/matplotlib-toolkits/basemap-%{ver}/basemap-%{ver}.tar.gz Source1: shapefile-brazil.tar.bz2 Source2: %{pyname}-setup.cfg Patch0: %{pyname}-1.0.7-datadir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: libproj-devel BuildRequires: python-numpy-devel BuildRequires: libshp-devel BuildRequires: libgeos-devel #BuildRequires: python-httplib2 BuildRequires: fdupes BuildRequires: blas BuildRequires: lapack Requires: python-matplotlib >= 0.98 Requires: python-numpy Requires: python-imaging #Requires: python-httplib2 #shapelib %{py_requires} %description Basemap is a matplotlib toolkit that allows you to plot data on map projections (with continental and political boundaries). #data and example packages %package -n python-%{pyname}-data Summary: Data for python-%{pyname} Group: Development/Libraries/Python License: GPL-2.0 and Public Domain Requires: python-%{pyname}, python-%{pyname}-data BuildArch: noarch %description -n python-%{pyname}-data Data sets for python-%{pyname} %package -n python-%{pyname}-data-hires Summary: High resolution map data for python-%{pyname} Group: Development/Libraries/Python License: GPL-2.0 Requires: python-%{pyname}, python-%{pyname}-data BuildArch: noarch %description -n python-%{pyname}-data-hires High resolution map data sets for python-%{pyname} %package -n python-%{pyname}-examples Summary: Example programs and data for python-%{pyname} Group: Development/Libraries/Python License: Copyright only Requires: python-%{pyname} BuildArch: noarch %description -n python-%{pyname}-examples Example programs and data sets for python-%{pyname} %prep %setup -q -n %{pyname}-%{version} %patch0 -p1 chmod -x examples/lic_demo.py tar xjvf %{SOURCE1} # add extra data mv brazil.{dbf,shp,shx} lib/mpl_toolkits/%{pyname}/data/ cp README examples/COPYING %build cp %{SOURCE2} ./setup.cfg export GEOS_LIB="/usr/" %{__python} setup.py config %{__python} setup.py build %install #install the data export QA_RPATHS=$0x0001 install -d %{buildroot}%{_datadir} cp -a lib/mpl_toolkits/%{pyname}/data/ %{buildroot}%{_datadir}/%{pyname} %{__python} setup.py install --prefix=/usr -O1 --skip-build --root=%{buildroot} %fdupes %{buildroot}/%{py_sitedir} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changelog README %exclude %{py_sitedir}/mpl_toolkits/__init__.* %{py_sitedir}/mpl_toolkits/%{pyname} %exclude %{py_sitedir}/mpl_toolkits/%{pyname}/data %{py_sitedir}/*.egg-info %{py_sitedir}/_geoslib.so %dir %{py_sitedir}/mpl_toolkits %files -n python-%{pyname}-data %defattr(0644,root,root) %doc README LICENSE_data %{_datadir}/%{pyname}/ %exclude %{_datadir}/%{pyname}/test27 %exclude %{_datadir}/%{pyname}/testvarious %exclude %{_datadir}/%{pyname}/test83 %exclude %{_datadir}/%{pyname}/testntv2 %exclude %{_datadir}/%{pyname}/*_h.dat %exclude %{_datadir}/%{pyname}/*_f.dat %files -n python-%{pyname}-data-hires %defattr(0644,root,root) %doc LICENSE_data %{_datadir}/%{pyname}/*_h.dat %{_datadir}/%{pyname}/*_f.dat %files -n python-%{pyname}-examples %defattr(0644,root,root) %doc examples/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor