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