2 Summary: Toolkit for developing GIS (Geographic Information Systems) applications
8 Source0: http://download.berlios.de/mapnik/%{name}-%{version}.tar.bz2
9 # Source0-md5: 8f65fda2a792518d6f6be8a85f62fc73
10 Patch0: %{name}-boost_lib_names.patch
11 Patch1: boost-filesystem.patch
12 URL: http://mapnik.org/
13 BuildRequires: boost-devel
14 BuildRequires: boost-python-devel
15 BuildRequires: cairomm-devel
16 BuildRequires: curl-devel
17 BuildRequires: freetype-devel
18 BuildRequires: gdal-devel
19 BuildRequires: libicu-devel
20 BuildRequires: libjpeg-devel
21 BuildRequires: libltdl-devel
22 BuildRequires: libpng-devel
23 BuildRequires: libtiff-devel
24 BuildRequires: libxml2-devel
25 BuildRequires: pkgconfig
26 BuildRequires: postgresql-devel
27 BuildRequires: proj-devel
28 BuildRequires: python-devel
29 BuildRequires: python-pycairo-devel
30 BuildRequires: rpm-pythonprov
32 BuildRequires: sqlite3-devel
33 BuildRequires: zlib-devel
34 Suggests: fonts-TTF-DejaVu
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Mapnik is a Free Toolkit for developing mapping applications. It's
39 written in C++ and there are Python bindings to facilitate fast-paced
40 agile development. It can comfortably be used for both desktop and web
41 development, which was something I wanted from the beginning.
43 Mapnik is about making beautiful maps. It uses the AGG library and
44 offers world class anti-aliasing rendering with subpixel accuracy for
45 geographic data. It is written from scratch in modern C++ and doesn't
46 suffer from design decisions made a decade ago.
48 %package -n python-%{name}
49 Summary: Python bindings for Mapnik
50 Group: Libraries/Python
51 Requires: %{name} = %{version}-%{release}
53 %description -n python-%{name}
54 Python binding for Mapnik, the toolkit for developing GIS (Geographic
55 Information Systems) applications.
58 Summary: Header files for Mapnik
59 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Mapnik
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Header files for Mapnik.
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe biblioteki Mapnik.
70 Summary: Static Mapnik library
71 Summary(pl.UTF-8): Statyczna biblioteka Mapnik
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{version}-%{release}
76 Static Mapnik library.
78 %description static -l pl.UTF-8
79 Statyczna biblioteka Mapnik.
90 INPUT_PLUGINS='raster,sqlite,osm,gdal,kismet,shape,postgis,ogr' \
91 SYSTEM_FONTS=%{_datadir}/fonts/TTF
94 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT \
99 SYSTEM_FONTS=%{_datadir}/fonts/TTF
101 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
102 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
105 ## DejaVu fonts are available in a separate package
106 #rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
115 %defattr(644,root,root,755)
116 %doc AUTHORS CHANGELOG INSTALL README
117 %attr(755,root,root) %{_bindir}/*
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
119 %dir %{_libdir}/%{name}
120 %dir %{_libdir}/%{name}/input
121 %attr(755,root,root) %{_libdir}/%{name}/input/*.input
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*.so
128 %files -n python-%{name}
129 %defattr(644,root,root,755)
130 %dir %{py_sitedir}/%{name}
131 %{py_sitedir}/%{name}/*.py[co]
132 %attr(755,root,root) %{py_sitedir}/%{name}/*.so
133 %dir %{py_sitedir}/%{name}/ogcserver
134 %{py_sitedir}/%{name}/ogcserver/*.py[co]