]>
Commit | Line | Data |
---|---|---|
38ab22e0 JB |
1 | Summary: Library supporting rasters on DBMS |
2 | Summary(pl.UTF-8): Biblioteka wspierająca przechowywanie rastrów w bazach danych | |
3 | Name: librasterlite2 | |
4 | Version: 1.0.0 | |
5 | %define subver rc0 | |
afa5571a | 6 | Release: 0.%{subver}.2 |
38ab22e0 JB |
7 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
8 | Group: Libraries | |
9 | Source0: http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/%{name}-%{version}-%{subver}.tar.gz | |
10 | # Source0-md5: 2c0c9d41eb29f6e7bee62519eb8ac014 | |
11 | URL: https://www.gaia-gis.it/fossil/librasterlite2 | |
afa5571a JB |
12 | BuildRequires: autoconf >= 2.61 |
13 | BuildRequires: automake | |
38ab22e0 JB |
14 | BuildRequires: cairo-devel |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: giflib-devel | |
17 | BuildRequires: libgeotiff-devel >= 1.2.5 | |
18 | BuildRequires: libjpeg-devel | |
19 | BuildRequires: libpng-devel | |
20 | BuildRequires: libspatialite-devel | |
21 | BuildRequires: libtiff-devel | |
afa5571a | 22 | BuildRequires: libtool |
38ab22e0 JB |
23 | BuildRequires: libwebp-devel |
24 | BuildRequires: libxml2-devel >= 2.0 | |
25 | BuildRequires: pkgconfig | |
26 | BuildRequires: sqlite3-devel >= 3 | |
27 | BuildRequires: xz-devel | |
28 | BuildRequires: zlib-devel | |
29 | Requires: libgeotiff >= 1.2.5 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | librasterlite2 is an open source library that stores and retrieves | |
34 | huge raster coverages using a SpatiaLite DBMS. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | librasterlite2 to mająca otwarte źródła biblioteka przechowująca i | |
38 | odtwarzająca duże pokrycia rastrowe przy użyciu silnika baz danych | |
39 | SpatiaLite. | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for rasterlite2 library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rasterlite2 | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: libspatialite-devel | |
47 | Requires: sqlite3-devel >= 3 | |
48 | ||
49 | %description devel | |
50 | Header files for rasterlite2 library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki rasterlite2. | |
54 | ||
55 | %package static | |
56 | Summary: Static rasterlite2 library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka rasterlite2 | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static rasterlite2 library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka rasterlite2. | |
66 | ||
67 | %prep | |
68 | %setup -q -n %{name}-%{version}-%{subver} | |
69 | ||
70 | %build | |
afa5571a JB |
71 | %{__libtoolize} |
72 | %{__aclocal} -I m4 | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
38ab22e0 JB |
76 | %configure |
77 | ||
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # obsoleted by pkg-config | |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/librasterlite2.la | |
88 | # sqlite3 module | |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mod_rasterlite2.la | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc AUTHORS README | |
100 | %attr(755,root,root) %{_bindir}/rl2tool | |
101 | %attr(755,root,root) %{_bindir}/wmslite | |
102 | %attr(755,root,root) %{_libdir}/librasterlite2.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/librasterlite2.so.1 | |
104 | %attr(755,root,root) %{_libdir}/mod_rasterlite2.so* | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/librasterlite2.so | |
109 | %{_includedir}/rasterlite2 | |
110 | %{_pkgconfigdir}/rasterlite2.pc | |
111 | ||
112 | %files static | |
113 | %defattr(644,root,root,755) | |
114 | %{_libdir}/librasterlite2.a |