]>
Commit | Line | Data |
---|---|---|
be087411 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
15cb0eaf | 4 | |
be087411 JB |
5 | Summary: Simple library for extracting the contents from OpenStreetMap files |
6 | Summary(pl.UTF-8): Prosta biblioteka do wyciągania danych z plików OpenStreetMap | |
7 | Name: readosm | |
825a5d0c AG |
8 | Version: 1.1.0 |
9 | Release: 1 | |
be087411 JB |
10 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
11 | Group: Libraries | |
12 | Source0: http://www.gaia-gis.it/gaia-sins/readosm-sources/%{name}-%{version}.tar.gz | |
825a5d0c | 13 | # Source0-md5: 9abada9b0cf7a58b9db0e24e97a490d4 |
be087411 JB |
14 | URL: https://www.gaia-gis.it/fossil/readosm |
15 | %{?with_apidocs:BuildRequires: doxygen >= 1.7.3} | |
16 | BuildRequires: expat-devel >= 1.95 | |
17 | BuildRequires: zlib-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | ReadOSM is a simple library intended for extracting the contents from | |
22 | OpenStreetMap files: both input formats (.osm XML based and .osm.pbf | |
23 | based on Google's Protocol Buffer serialization) are indifferenctly | |
24 | supported. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | ReadOSM to prosta biblioteka do wydobywania danych z plików | |
28 | OpenStreetMap. Oba formaty wejściowy (.osm oparty na XML oraz .osm.pbf | |
29 | oparty na serializacji Google Protocol Buffer) są obsługiwane w sposób | |
30 | przezroczysty. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for ReadOSM library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ReadOSM | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: expat-devel >= 1.95 | |
38 | Requires: zlib-devel | |
39 | ||
40 | %description devel | |
41 | Header files for ReadOSM library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki ReadOSM. | |
45 | ||
46 | %package static | |
47 | Summary: Static ReadOSM library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka ReadOSM | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static ReadOSM library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka ReadOSM. | |
57 | ||
58 | %package apidocs | |
59 | Summary: ReadOSM API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API biblioteki ReadOSM | |
61 | Group: Documentation | |
15cb0eaf | 62 | BuildArch: noarch |
be087411 JB |
63 | |
64 | %description apidocs | |
65 | API and internal documentation for ReadOSM library. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API biblioteki ReadOSM. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | ||
73 | %build | |
74 | %configure | |
be087411 JB |
75 | %{__make} |
76 | # libreadosm_la_LIBADD="-lm" | |
77 | ||
78 | %{?with_apidocs:doxygen} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
be087411 JB |
82 | %{__make} install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | # obsoleted by pkg-config | |
86 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libreadosm.la | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS README | |
97 | %attr(755,root,root) %{_libdir}/libreadosm.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libreadosm.so.1 | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libreadosm.so | |
103 | %{_includedir}/readosm.h | |
104 | %{_pkgconfigdir}/readosm.pc | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libreadosm.a | |
109 | ||
110 | %if %{with apidocs} | |
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
113 | %doc html/* | |
114 | %endif |