]>
Commit | Line | Data |
---|---|---|
40938716 JB |
1 | Summary: GRASS 6 drivers for GDAL and OGR |
2 | Summary(pl): Sterowniki GRASS 6 dla bibliotek GDAL i OGR | |
3 | Name: gdal-grass | |
4 | Version: 1.3.1 | |
5 | Release: 1 | |
6 | License: BSD-like | |
7 | Group: Libraries | |
8 | Source0: ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 4297d174ecd23ad2aa919e89e5759b66 | |
10 | Patch0: %{name}-DESTDIR.patch | |
11 | URL: http://www.remotesensing.org/gdal/ | |
12 | BuildRequires: gdal-devel | |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: grass-devel >= 5.7 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | GRASS 6 drivers for GDAL and OGR. | |
19 | ||
20 | %description -l pl | |
21 | Sterowniki GRASS 6 dla bibliotek GDAL i OGR. | |
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | %patch0 -p1 | |
26 | ||
27 | rm -rf autom4te.cache | |
28 | ||
29 | %build | |
30 | %configure \ | |
31 | CPPFLAGS="-I/usr/include/grass60" \ | |
32 | --with-grass=`echo /usr/%{_lib}/grass-*` | |
33 | ||
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} install \ | |
40 | DESTDIR=$RPM_BUILD_ROOT | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README | |
48 | # XXX: this dir could be owned by gdal | |
49 | %dir %{_libdir}/gdalplugins | |
50 | %attr(755,root,root) %{_libdir}/gdalplugins/gdal_GRASS.so | |
51 | %attr(755,root,root) %{_libdir}/gdalplugins/ogr_GRASS.so | |
52 | %{_datadir}/gdal/grass |