%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: mapnik Version: 0.4.0 Release: 4%{?dist} Summary: Library providing algorithms for spatial data access and visualization. Group: Development/Libraries License: LGPL URL: http://www.mapnik.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source: http://download.berlios.de/mapnik/mapnik-0.4.0.tar.gz 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 %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. %prep %setup -q %build scons PREFIX=%{_prefix} DESTDIR=%{buildroot} %{?_smp_mflags} %install rm -rf %{buildroot} scons PREFIX=%{_prefix} DESTDIR=%{buildroot} install %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING INSTALL README demo %{_bindir}/shapeindex %{_includedir}/mapnik/ %{_libdir}/libmapnik.so %{_libdir}/mapnik/ %{python_sitelib}/mapnik/ %changelog * 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.