]>
Commit | Line | Data |
---|---|---|
fbaa7440 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: Spatial SQL database engine based on SQLite | |
6 | Summary(pl.UTF-8): Silnik przestrzennej bazy danych SQL oparty na SQLite | |
7 | Name: libspatialite | |
8 | Version: 3.0.1 | |
04b386fc | 9 | Release: 2 |
fbaa7440 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/libspatialite-sources/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 450d1a0d9da1bd9f770b7db3f2509f69 | |
14 | URL: https://www.gaia-gis.it/fossil/libspatialite | |
15 | %{?with_apidocs:BuildRequires: doxygen >= 1.7.3} | |
16 | BuildRequires: freexl-devel >= 0.0.4 | |
17 | BuildRequires: geos-devel >= 3.3.0 | |
18 | BuildRequires: proj-devel >= 4 | |
19 | BuildRequires: sqlite3-devel >= 3.7.3 | |
20 | Requires: freexl >= 0.0.4 | |
21 | Requires: geos >= 3.3.0 | |
22 | Requires: proj >= 4 | |
23 | Requires: sqlite3 >= 3.7.3 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Spatial SQL database engine based on SQLite. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Silnik przestrzennej bazy danych SQL oparty na SQLite. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for spatialite library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki spatialite | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: freexl-devel >= 0.0.4 | |
38 | Requires: geos-devel >= 3.3.0 | |
39 | Requires: proj-devel >= 4 | |
40 | Requires: sqlite3-devel >= 3.7.3 | |
41 | ||
42 | %description devel | |
43 | Header files for spatialite library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki spatialite. | |
47 | ||
48 | %package static | |
49 | Summary: Static spatialite library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka spatialite | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static spatialite library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka spatialite. | |
59 | ||
60 | %package apidocs | |
61 | Summary: spatialite API documentation | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki spatialite | |
63 | Group: Documentation | |
64 | ||
65 | %description apidocs | |
66 | API and internal documentation for spatialite library. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API biblioteki spatialite. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %configure | |
76 | ||
77 | %{__make} | |
78 | ||
79 | %{?with_apidocs:doxygen} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | # obsoleted by pkg-config | |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libspatialite.la | |
89 | ||
90 | %clean | |
91 | rm -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 | |
99 | %attr(755,root,root) %{_libdir}/libspatialite.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libspatialite.so.2 | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libspatialite.so | |
105 | %{_includedir}/spatialite | |
106 | %{_includedir}/spatialite.h | |
107 | %{_pkgconfigdir}/spatialite.pc | |
108 | ||
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libspatialite.a | |
112 | ||
113 | %if %{with apidocs} | |
114 | %files apidocs | |
115 | %defattr(644,root,root,755) | |
116 | %doc html/* | |
117 | %endif |