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