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