1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
Summary: Spatial SQL database engine based on SQLite
Summary(pl.UTF-8): Silnik przestrzennej bazy danych SQL oparty na SQLite
Name: librasterlite
Version: 1.1g
Release: 8
License: MPL v1.1 or GPL v2+ or LGPL v2.1+
Group: Libraries
Source0: http://www.gaia-gis.it/gaia-sins/librasterlite-sources/%{name}-%{version}.tar.gz
# Source0-md5: 6c6e8f83ac8a06c78f3fdcee63dc5e3e
Patch0: link.patch
URL: https://www.gaia-gis.it/fossil/librasterlite
BuildRequires: libgeotiff-devel >= 1.2.5
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libspatialite-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig
BuildRequires: proj-devel
BuildRequires: sqlite3-devel
BuildRequires: zlib-devel
Requires: libgeotiff >= 1.2.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Spatial SQL database engine based on SQLite.
%description -l pl.UTF-8
Silnik przestrzennej bazy danych SQL oparty na SQLite.
%package devel
Summary: Header files for rasterlite library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rasterlite
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libgeotiff-devel >= 1.2.5
Requires: libjpeg-devel
Requires: libpng-devel
Requires: libspatialite-devel
Requires: libtiff-devel
Requires: proj-devel
Requires: sqlite3-devel
Requires: zlib-devel
%description devel
Header files for rasterlite library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki rasterlite.
%package static
Summary: Static rasterlite library
Summary(pl.UTF-8): Statyczna biblioteka rasterlite
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static rasterlite library.
%description static -l pl.UTF-8
Statyczna biblioteka rasterlite.
%prep
%setup -q
%patch0 -p1
%build
%{__aclocal}
%{__automake}
%{__autoconf}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/librasterlite.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog
%attr(755,root,root) %{_bindir}/rasterlite_*
%attr(755,root,root) %{_libdir}/librasterlite.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/librasterlite.so.2
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/librasterlite.so
%{_includedir}/rasterlite.h
%{_pkgconfigdir}/rasterlite.pc
%files static
%defattr(644,root,root,755)
%{_libdir}/librasterlite.a
|