]>
Commit | Line | Data |
---|---|---|
2ba66713 | 1 | # |
8c3c9023 | 2 | Summary: Toolkit for developing GIS (Geographic Information Systems) applications |
2ba66713 | 3 | Name: mapnik |
eac0ac85 JR |
4 | Version: 3.0.9 |
5 | Release: 1 | |
2ba66713 JK |
6 | License: LGPL v2.1 |
7 | Group: Applications | |
eac0ac85 JR |
8 | Source0: https://github.com/mapnik/mapnik/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 89907d70b84e45680ee31b27d464fa56 | |
10 | Patch0: mapnik-boost_lib_names.patch | |
5c90d523 | 11 | URL: http://mapnik.org/ |
2ba66713 JK |
12 | BuildRequires: boost-devel |
13 | BuildRequires: boost-python-devel | |
14 | BuildRequires: cairomm-devel | |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: freetype-devel | |
6d8ada53 | 17 | BuildRequires: gdal-devel |
2ba66713 JK |
18 | BuildRequires: libicu-devel |
19 | BuildRequires: libjpeg-devel | |
6d969f8e | 20 | BuildRequires: libltdl-devel |
2ba66713 | 21 | BuildRequires: libpng-devel |
eaba878b | 22 | BuildRequires: librasterlite-devel |
2ba66713 JK |
23 | BuildRequires: libtiff-devel |
24 | BuildRequires: libxml2-devel | |
6d969f8e | 25 | BuildRequires: pkgconfig |
2ba66713 JK |
26 | BuildRequires: postgresql-devel |
27 | BuildRequires: proj-devel | |
28 | BuildRequires: python-devel | |
29 | BuildRequires: python-pycairo-devel | |
6d969f8e | 30 | BuildRequires: rpm-pythonprov |
2ba66713 JK |
31 | BuildRequires: scons |
32 | BuildRequires: sqlite3-devel | |
33 | BuildRequires: zlib-devel | |
2ba66713 JK |
34 | Suggests: fonts-TTF-DejaVu |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
8c3c9023 CM |
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. | |
2ba66713 | 42 | |
8c3c9023 CM |
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. | |
2ba66713 JK |
47 | |
48 | %package -n python-%{name} | |
49 | Summary: Python bindings for Mapnik | |
50 | Group: Libraries/Python | |
07510613 | 51 | Requires: %{name} = %{version}-%{release} |
2ba66713 JK |
52 | |
53 | %description -n python-%{name} | |
54 | Python binding for Mapnik, the toolkit for developing GIS (Geographic | |
55 | Information Systems) applications. | |
56 | ||
57 | %package devel | |
58 | Summary: Header files for Mapnik | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Mapnik | |
60 | Group: Development/Libraries | |
07510613 | 61 | Requires: %{name} = %{version}-%{release} |
2ba66713 JK |
62 | |
63 | %description devel | |
64 | Header files for Mapnik. | |
65 | ||
66 | %description devel -l pl.UTF-8 | |
67 | Pliki nagłówkowe biblioteki Mapnik. | |
68 | ||
69 | %package static | |
6d969f8e | 70 | Summary: Static Mapnik library |
71 | Summary(pl.UTF-8): Statyczna biblioteka Mapnik | |
2ba66713 JK |
72 | Group: Development/Libraries |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
6d969f8e | 76 | Static Mapnik library. |
2ba66713 JK |
77 | |
78 | %description static -l pl.UTF-8 | |
6d969f8e | 79 | Statyczna biblioteka Mapnik. |
2ba66713 JK |
80 | |
81 | %prep | |
82 | %setup -q | |
83 | %patch0 -p1 | |
84 | ||
85 | %build | |
86 | %scons \ | |
87 | PREFIX=%{_prefix} \ | |
64058117 | 88 | BOOST_TOOLKIT=gcc43 \ |
eac0ac85 | 89 | INPUT_PLUGINS='csv,gdal,geojson,ogr,pgraster,postgis,raster,shape,sqlite,topojson' \ |
eaba878b AM |
90 | SYSTEM_FONTS=%{_datadir}/fonts/TTF \ |
91 | LIBDIR_SCHEMA=%{_lib} \ | |
92 | SVG2PNG=True | |
2ba66713 JK |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %scons install \ | |
64058117 | 98 | DESTDIR=$RPM_BUILD_ROOT \ |
eaba878b AM |
99 | PREFIX=%{_prefix} \ |
100 | BOOST_TOOLKIT=gcc43 \ | |
eac0ac85 | 101 | INPUT_PLUGINS='csv,gdal,geojson,ogr,pgraster,postgis,raster,shape,sqlite,topojson' \ |
eaba878b AM |
102 | SYSTEM_FONTS=%{_datadir}/fonts/TTF \ |
103 | LIBDIR_SCHEMA=%{_lib} \ | |
104 | SVG2PNG=True | |
2ba66713 JK |
105 | |
106 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
107 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
108 | %py_postclean | |
109 | ||
2ba66713 JK |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
eaba878b | 118 | %doc AUTHORS.md CHANGELOG.md INSTALL.md README.md |
79c2f233 AF |
119 | %attr(755,root,root) %{_bindir}/mapnik-config |
120 | %attr(755,root,root) %{_bindir}/mapnik-speed-check | |
121 | %attr(755,root,root) %{_bindir}/shapeindex | |
122 | %attr(755,root,root) %{_bindir}/upgrade_map_xml.py | |
eaba878b AM |
123 | %attr(755,root,root) %{_libdir}/libmapnik.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libmapnik.so.2.2 | |
125 | %dir %{_libdir}/mapnik | |
126 | %dir %{_libdir}/mapnik/input | |
127 | %attr(755,root,root) %{_libdir}/mapnik/input/csv.input | |
128 | %attr(755,root,root) %{_libdir}/mapnik/input/gdal.input | |
129 | %attr(755,root,root) %{_libdir}/mapnik/input/geojson.input | |
130 | %attr(755,root,root) %{_libdir}/mapnik/input/ogr.input | |
131 | %attr(755,root,root) %{_libdir}/mapnik/input/osm.input | |
132 | %attr(755,root,root) %{_libdir}/mapnik/input/postgis.input | |
133 | %attr(755,root,root) %{_libdir}/mapnik/input/raster.input | |
134 | %attr(755,root,root) %{_libdir}/mapnik/input/rasterlite.input | |
135 | %attr(755,root,root) %{_libdir}/mapnik/input/shape.input | |
136 | %attr(755,root,root) %{_libdir}/mapnik/input/sqlite.input | |
2ba66713 JK |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
eaba878b | 140 | %attr(755,root,root) %{_libdir}/libmapnik.so |
79c2f233 | 141 | %{_includedir}/mapnik |
2ba66713 JK |
142 | |
143 | %files -n python-%{name} | |
144 | %defattr(644,root,root,755) | |
eaba878b AM |
145 | %dir %{py_sitedir}/mapnik |
146 | %{py_sitedir}/mapnik/*.py[co] | |
147 | %attr(755,root,root) %{py_sitedir}/mapnik/_mapnik.so | |
79c2f233 AF |
148 | %dir %{py_sitedir}/mapnik2 |
149 | %{py_sitedir}/mapnik2/*.py[co] |