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