]>
Commit | Line | Data |
---|---|---|
2ba66713 | 1 | # |
8c3c9023 | 2 | Summary: Toolkit for developing GIS (Geographic Information Systems) applications |
2ba66713 | 3 | Name: mapnik |
eaba878b | 4 | Version: 2.2.0 |
60fea8de | 5 | Release: 7 |
2ba66713 JK |
6 | License: LGPL v2.1 |
7 | Group: Applications | |
eaba878b AM |
8 | Source0: https://github.com/mapnik/mapnik/archive/v%{version}.tar.gz |
9 | # Source0-md5: b837931c7f1a4dc630d8550d3e635036 | |
2ba66713 | 10 | Patch0: %{name}-boost_lib_names.patch |
eaba878b AM |
11 | Patch1: mapnik-boost-megadiff.diff |
12 | Patch2: %{name}-build.patch | |
5c90d523 | 13 | URL: http://mapnik.org/ |
2ba66713 JK |
14 | BuildRequires: boost-devel |
15 | BuildRequires: boost-python-devel | |
16 | BuildRequires: cairomm-devel | |
17 | BuildRequires: curl-devel | |
18 | BuildRequires: freetype-devel | |
6d8ada53 | 19 | BuildRequires: gdal-devel |
2ba66713 JK |
20 | BuildRequires: libicu-devel |
21 | BuildRequires: libjpeg-devel | |
6d969f8e | 22 | BuildRequires: libltdl-devel |
2ba66713 | 23 | BuildRequires: libpng-devel |
eaba878b | 24 | BuildRequires: librasterlite-devel |
2ba66713 JK |
25 | BuildRequires: libtiff-devel |
26 | BuildRequires: libxml2-devel | |
6d969f8e | 27 | BuildRequires: pkgconfig |
2ba66713 JK |
28 | BuildRequires: postgresql-devel |
29 | BuildRequires: proj-devel | |
30 | BuildRequires: python-devel | |
31 | BuildRequires: python-pycairo-devel | |
6d969f8e | 32 | BuildRequires: rpm-pythonprov |
2ba66713 JK |
33 | BuildRequires: scons |
34 | BuildRequires: sqlite3-devel | |
35 | BuildRequires: zlib-devel | |
2ba66713 JK |
36 | Suggests: fonts-TTF-DejaVu |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
8c3c9023 CM |
40 | Mapnik is a Free Toolkit for developing mapping applications. It's |
41 | written in C++ and there are Python bindings to facilitate fast-paced | |
42 | agile development. It can comfortably be used for both desktop and web | |
43 | development, which was something I wanted from the beginning. | |
2ba66713 | 44 | |
8c3c9023 CM |
45 | Mapnik is about making beautiful maps. It uses the AGG library and |
46 | offers world class anti-aliasing rendering with subpixel accuracy for | |
47 | geographic data. It is written from scratch in modern C++ and doesn't | |
48 | suffer from design decisions made a decade ago. | |
2ba66713 JK |
49 | |
50 | %package -n python-%{name} | |
51 | Summary: Python bindings for Mapnik | |
52 | Group: Libraries/Python | |
07510613 | 53 | Requires: %{name} = %{version}-%{release} |
2ba66713 JK |
54 | |
55 | %description -n python-%{name} | |
56 | Python binding for Mapnik, the toolkit for developing GIS (Geographic | |
57 | Information Systems) applications. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for Mapnik | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Mapnik | |
62 | Group: Development/Libraries | |
07510613 | 63 | Requires: %{name} = %{version}-%{release} |
2ba66713 JK |
64 | |
65 | %description devel | |
66 | Header files for Mapnik. | |
67 | ||
68 | %description devel -l pl.UTF-8 | |
69 | Pliki nagłówkowe biblioteki Mapnik. | |
70 | ||
71 | %package static | |
6d969f8e | 72 | Summary: Static Mapnik library |
73 | Summary(pl.UTF-8): Statyczna biblioteka Mapnik | |
2ba66713 JK |
74 | Group: Development/Libraries |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
6d969f8e | 78 | Static Mapnik library. |
2ba66713 JK |
79 | |
80 | %description static -l pl.UTF-8 | |
6d969f8e | 81 | Statyczna biblioteka Mapnik. |
2ba66713 JK |
82 | |
83 | %prep | |
84 | %setup -q | |
85 | %patch0 -p1 | |
eaba878b AM |
86 | %patch1 -p1 |
87 | %patch2 -p1 | |
2ba66713 JK |
88 | |
89 | %build | |
90 | %scons \ | |
91 | PREFIX=%{_prefix} \ | |
64058117 | 92 | BOOST_TOOLKIT=gcc43 \ |
eaba878b AM |
93 | INPUT_PLUGINS='raster,rasterlite,sqlite,osm,gdal,shape,postgis,ogr,occi,csv,geojson' \ |
94 | SYSTEM_FONTS=%{_datadir}/fonts/TTF \ | |
95 | LIBDIR_SCHEMA=%{_lib} \ | |
96 | SVG2PNG=True | |
2ba66713 JK |
97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %scons install \ | |
64058117 | 102 | DESTDIR=$RPM_BUILD_ROOT \ |
eaba878b AM |
103 | PREFIX=%{_prefix} \ |
104 | BOOST_TOOLKIT=gcc43 \ | |
105 | INPUT_PLUGINS='raster,rasterlite,sqlite,osm,gdal,shape,postgis,ogr,occi,csv,geojson' \ | |
106 | SYSTEM_FONTS=%{_datadir}/fonts/TTF \ | |
107 | LIBDIR_SCHEMA=%{_lib} \ | |
108 | SVG2PNG=True | |
2ba66713 JK |
109 | |
110 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
111 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
112 | %py_postclean | |
113 | ||
2ba66713 JK |
114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
eaba878b | 122 | %doc AUTHORS.md CHANGELOG.md INSTALL.md README.md |
79c2f233 AF |
123 | %attr(755,root,root) %{_bindir}/mapnik-config |
124 | %attr(755,root,root) %{_bindir}/mapnik-speed-check | |
125 | %attr(755,root,root) %{_bindir}/shapeindex | |
126 | %attr(755,root,root) %{_bindir}/upgrade_map_xml.py | |
eaba878b AM |
127 | %attr(755,root,root) %{_libdir}/libmapnik.so.*.*.* |
128 | %attr(755,root,root) %ghost %{_libdir}/libmapnik.so.2.2 | |
129 | %dir %{_libdir}/mapnik | |
130 | %dir %{_libdir}/mapnik/input | |
131 | %attr(755,root,root) %{_libdir}/mapnik/input/csv.input | |
132 | %attr(755,root,root) %{_libdir}/mapnik/input/gdal.input | |
133 | %attr(755,root,root) %{_libdir}/mapnik/input/geojson.input | |
134 | %attr(755,root,root) %{_libdir}/mapnik/input/ogr.input | |
135 | %attr(755,root,root) %{_libdir}/mapnik/input/osm.input | |
136 | %attr(755,root,root) %{_libdir}/mapnik/input/postgis.input | |
137 | %attr(755,root,root) %{_libdir}/mapnik/input/raster.input | |
138 | %attr(755,root,root) %{_libdir}/mapnik/input/rasterlite.input | |
139 | %attr(755,root,root) %{_libdir}/mapnik/input/shape.input | |
140 | %attr(755,root,root) %{_libdir}/mapnik/input/sqlite.input | |
2ba66713 JK |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
eaba878b | 144 | %attr(755,root,root) %{_libdir}/libmapnik.so |
79c2f233 | 145 | %{_includedir}/mapnik |
2ba66713 JK |
146 | |
147 | %files -n python-%{name} | |
148 | %defattr(644,root,root,755) | |
eaba878b AM |
149 | %dir %{py_sitedir}/mapnik |
150 | %{py_sitedir}/mapnik/*.py[co] | |
151 | %attr(755,root,root) %{py_sitedir}/mapnik/_mapnik.so | |
79c2f233 AF |
152 | %dir %{py_sitedir}/mapnik2 |
153 | %{py_sitedir}/mapnik2/*.py[co] |