]>
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 | |
8b0b3421 | 34 | Obsoletes: python-mapnik < 3.0.9-1 |
2ba66713 JK |
35 | Suggests: fonts-TTF-DejaVu |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
8c3c9023 CM |
39 | Mapnik is a Free Toolkit for developing mapping applications. It's |
40 | written in C++ and there are Python bindings to facilitate fast-paced | |
41 | agile development. It can comfortably be used for both desktop and web | |
42 | development, which was something I wanted from the beginning. | |
2ba66713 | 43 | |
8c3c9023 CM |
44 | Mapnik is about making beautiful maps. It uses the AGG library and |
45 | offers world class anti-aliasing rendering with subpixel accuracy for | |
46 | geographic data. It is written from scratch in modern C++ and doesn't | |
47 | suffer from design decisions made a decade ago. | |
2ba66713 | 48 | |
2ba66713 JK |
49 | %package devel |
50 | Summary: Header files for Mapnik | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Mapnik | |
52 | Group: Development/Libraries | |
07510613 | 53 | Requires: %{name} = %{version}-%{release} |
2ba66713 JK |
54 | |
55 | %description devel | |
56 | Header files for Mapnik. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki Mapnik. | |
60 | ||
61 | %package static | |
6d969f8e | 62 | Summary: Static Mapnik library |
63 | Summary(pl.UTF-8): Statyczna biblioteka Mapnik | |
2ba66713 JK |
64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
6d969f8e | 68 | Static Mapnik library. |
2ba66713 JK |
69 | |
70 | %description static -l pl.UTF-8 | |
6d969f8e | 71 | Statyczna biblioteka Mapnik. |
2ba66713 JK |
72 | |
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
98859610 | 78 | %scons configure \ |
8b0b3421 JR |
79 | CUSTOM_CXXFLAGS="%{rpmcxxflags}" \ |
80 | CUSTOM_CFLAGS="%{rpmcflags}" \ | |
81 | CUSTOM_LDFLAGS="%{rpmldflags}" \ | |
98859610 | 82 | DESTDIR=$RPM_BUILD_ROOT \ |
2ba66713 | 83 | PREFIX=%{_prefix} \ |
64058117 | 84 | BOOST_TOOLKIT=gcc43 \ |
eac0ac85 | 85 | INPUT_PLUGINS='csv,gdal,geojson,ogr,pgraster,postgis,raster,shape,sqlite,topojson' \ |
eaba878b AM |
86 | SYSTEM_FONTS=%{_datadir}/fonts/TTF \ |
87 | LIBDIR_SCHEMA=%{_lib} \ | |
88 | SVG2PNG=True | |
2ba66713 | 89 | |
ff958729 | 90 | %{__make} -j1 |
98859610 | 91 | |
2ba66713 JK |
92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
8b0b3421 | 95 | %{__make} install |
2ba66713 JK |
96 | |
97 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
98 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
99 | %py_postclean | |
100 | ||
2ba66713 JK |
101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
eaba878b | 109 | %doc AUTHORS.md CHANGELOG.md INSTALL.md README.md |
79c2f233 | 110 | %attr(755,root,root) %{_bindir}/mapnik-config |
8b0b3421 JR |
111 | %attr(755,root,root) %{_bindir}/mapnik-index |
112 | %attr(755,root,root) %{_bindir}/mapnik-render | |
79c2f233 | 113 | %attr(755,root,root) %{_bindir}/shapeindex |
eaba878b | 114 | %attr(755,root,root) %{_libdir}/libmapnik.so.*.*.* |
8b0b3421 | 115 | %attr(755,root,root) %ghost %{_libdir}/libmapnik.so.3.0 |
eaba878b AM |
116 | %dir %{_libdir}/mapnik |
117 | %dir %{_libdir}/mapnik/input | |
118 | %attr(755,root,root) %{_libdir}/mapnik/input/csv.input | |
119 | %attr(755,root,root) %{_libdir}/mapnik/input/gdal.input | |
120 | %attr(755,root,root) %{_libdir}/mapnik/input/geojson.input | |
121 | %attr(755,root,root) %{_libdir}/mapnik/input/ogr.input | |
8b0b3421 | 122 | %attr(755,root,root) %{_libdir}/mapnik/input/pgraster.input |
eaba878b AM |
123 | %attr(755,root,root) %{_libdir}/mapnik/input/postgis.input |
124 | %attr(755,root,root) %{_libdir}/mapnik/input/raster.input | |
eaba878b AM |
125 | %attr(755,root,root) %{_libdir}/mapnik/input/shape.input |
126 | %attr(755,root,root) %{_libdir}/mapnik/input/sqlite.input | |
8b0b3421 | 127 | %attr(755,root,root) %{_libdir}/mapnik/input/topojson.input |
2ba66713 JK |
128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
eaba878b | 131 | %attr(755,root,root) %{_libdir}/libmapnik.so |
79c2f233 | 132 | %{_includedir}/mapnik |
8b0b3421 JR |
133 | %{_libdir}/libmapnik-json.a |
134 | %{_libdir}/libmapnik-wkt.a |