%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define svn 20071031 Name: mapnik Version: 0.4.0 Release: 1.%{svn}%{?dist} Summary: Library providing algorithms for spatial data access and visualization Group: Development/Libraries License: LGPL2+ URL: http://www.mapnik.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: mapnik-%{svn}svn.tar.bz2 Source1: mapnik-svn.sh Patch0: mapnik-sconstruct.patch Patch1: mapnik-sconscript-python.patch Patch2: mapnik-include-aggrenderer-hpp.patch Patch3: mapnik-src-sconscript.patch Patch4: mapnik-src-aggrenderer-cpp.patch Patch5: mapnik-bindings-fontpath.patch BuildRequires: scons BuildRequires: python-devel BuildRequires: libtool-ltdl-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: zlib-devel BuildRequires: freetype-devel BuildRequires: postgresql-devel BuildRequires: proj-devel BuildRequires: boost-devel BuildRequires: gdal-devel BuildRequires: agg-devel Requires: dejavu-fonts Requires: dejavu-fonts-experimental Requires: postgis %description Mapnik is an OpenSource C++/Python toolkit for developing GIS (Geographic Information Systems) applications. At the core is a C++ shared library providing algorithms/patterns for spatial data access and visualization. Essentially a collection of geographic objects (map, layer, datasource, feature, geometry), the library doesn't rely on "windowing systems" and can be deployed in any server environment. It is intended to play fair in a multi-threaded environment and is aimed primarily, but not exclusively, at web-based development. High-level Python bindings (boost.python) facilitate rapid application development, targeting zope3, django etc. %package devel Summary: Header files for the Mapnik spatial visualization library Group: Development/Libraries Requires: mapnik %description devel This package contains the header files for Mapnik. If you want to develop programs using Mapnik, you will need to install mapnik-devel. %package python Summary: Python bindings for the Mapnik spatial visualization library Group: Development/Libraries Requires: mapnik %description python This package contains the language bindings to enable the Mapnik library to be used from the python language. %prep %setup -q -n mapnik %patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %build scons PREFIX=%{_prefix} DESTDIR=%{buildroot} %{?_smp_mflags} CXXFLAGS="%{optflags}" %install rm -rf %{buildroot} scons PREFIX=%{_prefix} DESTDIR=%{buildroot} install %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING INSTALL README demo %{_libdir}/libmapnik.so %{_libdir}/mapnik/ %files devel %defattr(-,root,root,-) %{_includedir}/mapnik/ %files python %defattr(-,root,root,-) %{python_sitearch}/mapnik/ %changelog * Wed Oct 31 2007 Keith Sharp 0.4.0-1-20071031 - Rebuild with latest SVN - Split into mapnik and mapnik-devel - Fix fontpath bug - Use system agg library - Fixed licence tag * Tue Aug 07 2007 Keith Sharp 0.4.0-2-20070729 - Added a requires on postgis * Sun Jul 29 2007 Keith Sharp 0.4.0-1-20070729 - Update to build from SVN - Added Scons patches - Removed shapeindex * Fri Jul 06 2007 Keith SHarp 0.4.0-4 - Remove .sconsign excludes to fix build on F7 + Rawhide * Fri Mar 30 2007 Keith Sharp 0.4.0-3 - Added missing BuidlRequires: python-devel * Mon Mar 26 2007 Keith Sharp 0.4.0-2 - Added missing BuidlRequires: libtool-ltdl-devel - Replaced /usr with %%{_prefix} * Fri Mar 23 2007 Keith Sharp 0.4.0-1 - Initial packaging.