]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | Summary: Toolkit for developing GIS (Geographic Information Systems) applications | |
3 | Name: mapnik | |
4 | Version: 2.2.0 | |
5 | Release: 7 | |
6 | License: LGPL v2.1 | |
7 | Group: Applications | |
8 | Source0: https://github.com/mapnik/mapnik/archive/v%{version}.tar.gz | |
9 | # Source0-md5: b837931c7f1a4dc630d8550d3e635036 | |
10 | Patch0: %{name}-boost_lib_names.patch | |
11 | Patch1: mapnik-boost-megadiff.diff | |
12 | Patch2: %{name}-build.patch | |
13 | URL: http://mapnik.org/ | |
14 | BuildRequires: boost-devel | |
15 | BuildRequires: boost-python-devel | |
16 | BuildRequires: cairomm-devel | |
17 | BuildRequires: curl-devel | |
18 | BuildRequires: freetype-devel | |
19 | BuildRequires: gdal-devel | |
20 | BuildRequires: libicu-devel | |
21 | BuildRequires: libjpeg-devel | |
22 | BuildRequires: libltdl-devel | |
23 | BuildRequires: libpng-devel | |
24 | BuildRequires: librasterlite-devel | |
25 | BuildRequires: libtiff-devel | |
26 | BuildRequires: libxml2-devel | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: postgresql-devel | |
29 | BuildRequires: proj-devel | |
30 | BuildRequires: python-devel | |
31 | BuildRequires: python-pycairo-devel | |
32 | BuildRequires: rpm-pythonprov | |
33 | BuildRequires: scons | |
34 | BuildRequires: sqlite3-devel | |
35 | BuildRequires: zlib-devel | |
36 | Suggests: fonts-TTF-DejaVu | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
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. | |
44 | ||
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. | |
49 | ||
50 | %package -n python-%{name} | |
51 | Summary: Python bindings for Mapnik | |
52 | Group: Libraries/Python | |
53 | Requires: %{name} = %{version}-%{release} | |
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 | |
63 | Requires: %{name} = %{version}-%{release} | |
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 | |
72 | Summary: Static Mapnik library | |
73 | Summary(pl.UTF-8): Statyczna biblioteka Mapnik | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | Static Mapnik library. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Statyczna biblioteka Mapnik. | |
82 | ||
83 | %prep | |
84 | %setup -q | |
85 | %patch0 -p1 | |
86 | %patch1 -p1 | |
87 | %patch2 -p1 | |
88 | ||
89 | %build | |
90 | %scons \ | |
91 | PREFIX=%{_prefix} \ | |
92 | BOOST_TOOLKIT=gcc43 \ | |
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 | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %scons install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT \ | |
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 | |
109 | ||
110 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
111 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
112 | %py_postclean | |
113 | ||
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) | |
122 | %doc AUTHORS.md CHANGELOG.md INSTALL.md README.md | |
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 | |
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 | |
141 | ||
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libmapnik.so | |
145 | %{_includedir}/mapnik | |
146 | ||
147 | %files -n python-%{name} | |
148 | %defattr(644,root,root,755) | |
149 | %dir %{py_sitedir}/mapnik | |
150 | %{py_sitedir}/mapnik/*.py[co] | |
151 | %attr(755,root,root) %{py_sitedir}/mapnik/_mapnik.so | |
152 | %dir %{py_sitedir}/mapnik2 | |
153 | %{py_sitedir}/mapnik2/*.py[co] |