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