]>
Commit | Line | Data |
---|---|---|
954ec354 | 1 | # TODO: |
8b360036 | 2 | # - be reasonable about devel dependencies - you do not need all of them to |
cfcb08ee | 3 | # use gdal (probably a gdal module or driver shall not imply devel |
4 | # dependency) | |
9b4989ae | 5 | # - rasdaman (--with-rasdaman; http://rasdaman.eecs.jacobs-university.de/trac/rasdaman/wiki/Download) |
d3d190a4 | 6 | # - libjpeg12 (needs patching to use system one, --with-jpeg12 is not sufficient as of 1.9.2) |
9b4989ae | 7 | # - libkml (1.3.0 needed, not released yet) |
954ec354 | 8 | # - wait for newer pcidsk, switch to external again |
d3d190a4 | 9 | # - csharp, java |
9b4989ae JB |
10 | # - additional, proprietary(?) formats support: |
11 | # - FMEObjects (http://www.safe.com/support/support-resources/fme-downloads/) | |
12 | # - ESRI FileGDBAPI (http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-api) | |
13 | # - ECW (http://www.erdas.com/products/ecw/ERDASECWJPEG2000SDK/Details.aspx) | |
14 | # - Kakadu/JPEG2000 (http://www.kakadusoftware.com/) | |
15 | # - MrSID (http://www.lizardtech.com/developer/) | |
16 | # - MSG/EUMETSAT (http://www.eumetsat.int/Home/Main/DataAccess/SupportSoftwareTools/index.htm) | |
17 | # - Oracle/OCI >= 10.0.1 (for georaster); Oracle/OCI >= 8.1.7 (as DB) | |
18 | # - Ingres (--with-ingres=/path) | |
19 | # - Informix DB | |
20 | # - DWGdirect (members only? http://www.opendwg.org/) | |
21 | # - ESRI SDE (http://www.esri.com/software/arcgis/arcsde/index.html) | |
655672e5 | 22 | # |
23 | # Conditional build: | |
d3d190a4 | 24 | %bcond_without armadillo # Armadillo support for faster TPS transform |
4537079d JB |
25 | %bcond_without epsilon # EPSILON wavelet compression support |
26 | %bcond_without gta # GTA format support | |
d3d190a4 JB |
27 | %bcond_without mysql # MySQL DB support |
28 | %bcond_without odbc # ODBC DB support | |
29 | %bcond_without opencl # OpenCL (GPU) support | |
c9c08280 | 30 | %bcond_without openjpeg # OpenJPEG 2 (JPEG2000) support |
4537079d JB |
31 | %bcond_with podofo # PDF support via podofo instead of poppler |
32 | %bcond_without poppler # PDF support via poppler | |
33 | %bcond_without spatialite # SpatiaLite support | |
d3d190a4 JB |
34 | %bcond_without xerces # Xerces support |
35 | %bcond_without java # Java and MDB support | |
36 | %bcond_without php # PHP binding | |
37 | %bcond_without ruby # ruby binding | |
655672e5 | 38 | # |
fac7da6f JB |
39 | %if %{with podofo} |
40 | %undefine with_poppler | |
41 | %endif | |
faf5649c | 42 | Summary: Geospatial Data Abstraction Library |
a28c1bee | 43 | Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi |
faf5649c | 44 | Name: gdal |
f1b5abea | 45 | Version: 1.9.2 |
dc391061 | 46 | Release: 8 |
faf5649c JB |
47 | License: BSD-like |
48 | Group: Libraries | |
c82ea5ef | 49 | Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz |
f1b5abea | 50 | # Source0-md5: 3f39db89f4710269b3a8bf94178e07aa |
f5a12c65 | 51 | Patch0: %{name}-perl.patch |
9b4989ae | 52 | Patch1: %{name}-python_install.patch |
f1b5abea JB |
53 | Patch2: %{name}-php.patch |
54 | Patch3: %{name}-fpic.patch | |
75b2e515 | 55 | Patch4: %{name}-format-security.patch |
c9c08280 JB |
56 | Patch5: %{name}-openjpeg2.patch |
57 | Patch6: %{name}-hdf4-eos.patch | |
9b5c0fd4 | 58 | URL: http://www.gdal.org/ |
d3d190a4 JB |
59 | %{?with_opencl:BuildRequires: OpenCL-devel >= 1.0} |
60 | %{?with_armadillo:BuildRequires: armadillo-devel} | |
69051332 JB |
61 | BuildRequires: autoconf >= 2.52 |
62 | BuildRequires: automake | |
6b59fa88 | 63 | BuildRequires: cfitsio-devel |
9b4989ae | 64 | BuildRequires: curl-devel |
9d161bc4 | 65 | BuildRequires: doxygen >= 1.4.2 |
209aac6b | 66 | %{?with_epsilon:BuildRequires: epsilon-compressor-devel} |
69051332 | 67 | BuildRequires: expat-devel >= 1.95.0 |
4537079d | 68 | BuildRequires: freexl-devel >= 1.0 |
9b4989ae | 69 | BuildRequires: geos-devel >= 2.2.0 |
b459f4d7 | 70 | BuildRequires: giflib-devel >= 4.0 |
6b59fa88 | 71 | BuildRequires: hdf-devel >= 4.0 |
69051332 | 72 | BuildRequires: hdf5-devel |
6b59fa88 | 73 | BuildRequires: jasper-devel |
9b4989ae JB |
74 | %{?with_java:BuildRequires: jdk} |
75 | %{?with_java:BuildRequires: jpackage-utils} | |
d4d7a2c6 | 76 | BuildRequires: libcsf-devel |
4058fbc3 | 77 | BuildRequires: libdap-devel >= 3.10 |
b3cbf6a3 | 78 | BuildRequires: libgeotiff-devel >= 1.2.1 |
b88bb9ef | 79 | %{?with_gta:BuildRequires: libgta-devel} |
6b59fa88 | 80 | BuildRequires: libjpeg-devel >= 6b |
9b4989ae | 81 | #BuildRequires: libkml-devel >= 1.3.0 |
e354fe40 | 82 | BuildRequires: libpng-devel >= 2:1.2.8 |
4537079d | 83 | %{?with_spatialite:BuildRequires: libspatialite-devel} |
b3cbf6a3 | 84 | BuildRequires: libstdc++-devel |
954ec354 | 85 | BuildRequires: libtiff-devel >= 4.0 |
69051332 | 86 | BuildRequires: libtool |
e2b089e1 | 87 | BuildRequires: libuuid-devel |
9b4989ae | 88 | BuildRequires: libwebp-devel |
e2b089e1 | 89 | BuildRequires: libxml2-devel |
d3d190a4 | 90 | %{?with_mysql:BuildRequires: mysql-devel} |
80114ba8 | 91 | BuildRequires: netcdf-devel >= 4.1 |
6b59fa88 | 92 | BuildRequires: ogdi-devel >= 3.1 |
c9c08280 | 93 | %{?with_openjpeg:BuildRequires: openjpeg2-devel >= 2.0.0-2} |
954ec354 | 94 | #BuildRequires: pcidsk-devel > 0.3 |
a0ffd9c4 | 95 | BuildRequires: perl-devel |
9b4989ae | 96 | %{?with_php:BuildRequires: php-devel} |
fac7da6f JB |
97 | %{?with_podofo:BuildRequires: podofo-devel} |
98 | %{?with_poppler:BuildRequires: poppler-devel} | |
9b4989ae JB |
99 | # ensure it's compiled with PQescapeStringConn support |
100 | BuildRequires: postgresql-backend-devel >= 8.1.4 | |
101 | BuildRequires: postgresql-devel >= 8.1.4 | |
102 | BuildRequires: proj-devel >= 4 | |
9a2dbbce | 103 | BuildRequires: python-devel >= 1:2.5 |
017b03bb | 104 | BuildRequires: python-numpy-devel >= 1:1.0.0 |
9b4989ae | 105 | BuildRequires: python-setuptools |
479cb83c | 106 | BuildRequires: rpm-pythonprov |
9b4989ae | 107 | BuildRequires: rpmbuild(macros) >= 1.344 |
4aafe7c0 | 108 | %{?with_ruby:BuildRequires: ruby-devel} |
b88bb9ef | 109 | BuildRequires: sed >= 4.0 |
9b4989ae | 110 | BuildRequires: sqlite3-devel >= 3.0.0 |
479cb83c | 111 | BuildRequires: swig-perl |
9a2dbbce | 112 | BuildRequires: swig-python >= 1.3 |
017b03bb | 113 | %{?with_ruby:BuildRequires: swig-ruby} |
479cb83c | 114 | BuildRequires: texlive-dvips |
115 | BuildRequires: texlive-latex | |
9831286f | 116 | %{?with_odbc:BuildRequires: unixODBC-devel >= 2.2.15} |
9b4989ae JB |
117 | %{?with_xerces:BuildRequires: xerces-c-devel >= 2.7.0} |
118 | BuildRequires: xz-devel | |
faf5649c | 119 | BuildRequires: zlib-devel >= 1.1.4 |
4537079d | 120 | Requires: freexl >= 1.0 |
9b4989ae | 121 | Requires: geos >= 2.2.0 |
b3cbf6a3 | 122 | Requires: libgeotiff >= 1.2.1 |
e354fe40 | 123 | Requires: libpng >= 2:1.2.8 |
954ec354 | 124 | Requires: libtiff >= 4.0 |
faf5649c JB |
125 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
126 | ||
127 | %description | |
128 | GDAL is a translator library for raster geospatial data formats that | |
129 | is released under an Open Source license. As a library, it presents a | |
130 | single abstract data model to the calling application for all | |
131 | supported formats. The related OGR library (which lives within the | |
132 | GDAL source tree) provides a similar capability for simple features | |
133 | vector data. | |
f05c79e8 | 134 | |
d34f2ec8 JR |
135 | %description -l pl.UTF-8 |
136 | GDAL to biblioteka konwertująca między formatami rastrowych danych | |
137 | dotyczących powierzchni Ziemi, udostępniona na licencji Open Source. | |
138 | Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych | |
139 | do wszystkich obsługiwanych formatów. Powiązana z nią biblioteka OGR | |
140 | (której źródła są dołączone do drzewa źródeł GDAL) daje podobne | |
141 | możliwości dla danych wektorowych. | |
faf5649c | 142 | |
6b59fa88 JB |
143 | %package devel |
144 | Summary: GDAL library header files | |
a28c1bee | 145 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL |
6b59fa88 | 146 | Group: Development/Libraries |
1673a634 | 147 | Requires: %{name} = %{version}-%{release} |
d3d190a4 JB |
148 | %{?with_opencl:Requires: OpenCL-devel >= 1.0} |
149 | %{?with_armadillo:Requires: armadillo-devel} | |
b3cbf6a3 | 150 | Requires: cfitsio-devel |
209aac6b JB |
151 | Requires: curl-devel |
152 | %{?with_epsilon:Requires: epsilon-compressor-devel} | |
69051332 | 153 | Requires: expat-devel >= 1.95.0 |
4537079d | 154 | Requires: freexl-devel >= 1.0 |
9b4989ae | 155 | Requires: geos-devel >= 2.2.0 |
209aac6b | 156 | Requires: giflib-devel >= 4.0 |
b3cbf6a3 | 157 | Requires: hdf-devel >= 4.0 |
69051332 | 158 | Requires: hdf5-devel |
b3cbf6a3 | 159 | Requires: jasper-devel |
d4d7a2c6 | 160 | Requires: libcsf-devel |
4058fbc3 | 161 | Requires: libdap-devel >= 3.10 |
b3cbf6a3 | 162 | Requires: libgeotiff-devel >= 1.2.1 |
209aac6b JB |
163 | %{?with_gta:Requires: libgta-devel} |
164 | Requires: libjpeg-devel >= 6b | |
e354fe40 | 165 | Requires: libpng-devel >= 2:1.2.8 |
4537079d | 166 | %{?with_spatialite:Requires: libspatialite-devel} |
b3cbf6a3 | 167 | Requires: libstdc++-devel |
954ec354 | 168 | Requires: libtiff-devel >= 4.0 |
209aac6b JB |
169 | Requires: libuuid-devel |
170 | Requires: libwebp-devel | |
171 | Requires: libxml2-devel | |
d3d190a4 | 172 | %{?with_mysql:Requires: mysql-devel} |
9b4989ae | 173 | Requires: netcdf-devel >= 4 |
b3cbf6a3 | 174 | Requires: ogdi-devel >= 3.1 |
c9c08280 | 175 | %{?with_openjpeg:Requires: openjpeg2-devel >= 2.0.0-2} |
954ec354 | 176 | #Requires: pcidsk-devel > 0.3 |
209aac6b JB |
177 | %{?with_podofo:Requires: podofo-devel} |
178 | %{?with_poppler:Requires: poppler-devel} | |
b3cbf6a3 | 179 | Requires: postgresql-devel |
209aac6b | 180 | Requires: proj-devel >= 4 |
9b4989ae | 181 | Requires: sqlite3-devel >= 3.0.0 |
655672e5 | 182 | %{?with_odbc:Requires: unixODBC-devel} |
69051332 | 183 | %{?with_xerces:Requires: xerces-c-devel >= 2.7.0} |
209aac6b JB |
184 | Requires: xz-devel |
185 | Requires: zlib-devel >= 1.1.4 | |
6b59fa88 JB |
186 | |
187 | %description devel | |
188 | GDAL library header files. | |
189 | ||
d34f2ec8 JR |
190 | %description devel -l pl.UTF-8 |
191 | Pliki nagłówkowe biblioteki GDAL. | |
6b59fa88 JB |
192 | |
193 | %package static | |
194 | Summary: GDAL static libraries | |
a28c1bee | 195 | Summary(pl.UTF-8): Statyczne biblioteki GDAL |
6b59fa88 | 196 | Group: Development/Libraries |
1673a634 | 197 | Requires: %{name}-devel = %{version}-%{release} |
6b59fa88 JB |
198 | |
199 | %description static | |
200 | GDAL static libraries. | |
201 | ||
d34f2ec8 | 202 | %description static -l pl.UTF-8 |
6b59fa88 JB |
203 | Statyczne biblioteki GDAL. |
204 | ||
a0ffd9c4 JB |
205 | %package -n perl-gdal |
206 | Summary: Perl bindings for GDAL | |
207 | Summary(pl.UTF-8): Wiązania Perla do pakietu GDAL | |
208 | Group: Development/Languages/Perl | |
209 | Requires: %{name} = %{version}-%{release} | |
210 | ||
211 | %description -n perl-gdal | |
212 | Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules. | |
213 | ||
214 | %description -n perl-gdal -l pl.UTF-8 | |
017b03bb | 215 | Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR, Geo::OSR. |
a0ffd9c4 | 216 | |
9b4989ae JB |
217 | %package -n php-gdal |
218 | Summary: PHP bindings for GDAL library | |
219 | Summary(pl.UTF-8): Wiązania PHP do biblioteki GDAL | |
220 | Group: Development/Languages/PHP | |
221 | Requires: %{name} = %{version}-%{release} | |
222 | %{?requires_php_extension} | |
223 | ||
224 | %description -n php-gdal | |
225 | PHP bindings for GDAL library | |
226 | ||
227 | %description -n php-gdal -l pl.UTF-8 | |
228 | Wiązania PHP do biblioteki GDAL. | |
229 | ||
6b59fa88 JB |
230 | %package -n python-gdal |
231 | Summary: GDAL Python module | |
a28c1bee | 232 | Summary(pl.UTF-8): Moduł Pythona GDAL |
6b59fa88 | 233 | Group: Libraries/Python |
1673a634 | 234 | Requires: %{name} = %{version}-%{release} |
faf2b39a | 235 | %pyrequires_eq python-libs |
6b59fa88 JB |
236 | |
237 | %description -n python-gdal | |
238 | GDAL Python module. | |
239 | ||
d34f2ec8 JR |
240 | %description -n python-gdal -l pl.UTF-8 |
241 | Moduł Pythona GDAL. | |
6b59fa88 | 242 | |
a0ffd9c4 JB |
243 | %package -n ruby-gdal |
244 | Summary: Ruby bindings for GDAL | |
245 | Summary(pl.UTF-8): Wiązania języka Ruby do pakietu GDAL | |
246 | Group: Development/Languages | |
247 | Requires: %{name} = %{version}-%{release} | |
248 | %{?ruby_mod_ver_requires_eq} | |
249 | ||
250 | %description -n ruby-gdal | |
251 | Ruby bindings for GDAL - gdal, gdalconst, ogr and osr modules. | |
252 | ||
253 | %description -n ruby-gdal -l pl.UTF-8 | |
017b03bb ER |
254 | Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr i |
255 | osr. | |
a0ffd9c4 | 256 | |
faf5649c JB |
257 | %prep |
258 | %setup -q | |
259 | %patch0 -p1 | |
260 | %patch1 -p1 | |
f1b5abea JB |
261 | %patch2 -p1 |
262 | %patch3 -p1 | |
c9c08280 JB |
263 | %patch4 -p1 |
264 | %patch5 -p1 | |
265 | %patch6 -p1 | |
69051332 JB |
266 | |
267 | # need to regenerate (old ones don't support perl 5.10) | |
4058fbc3 | 268 | %{__rm} swig/perl/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp} |
f5a12c65 | 269 | |
4058fbc3 | 270 | %{__rm} -r man |
4ed54fac | 271 | |
b88bb9ef JB |
272 | %{__sed} -i -e 's,DODS_INC="-I.*,DODS_INC="$(pkg-config --cflags libdap)",' configure.in |
273 | ||
faf5649c | 274 | %build |
69051332 | 275 | %{__libtoolize} |
69051332 | 276 | %{__aclocal} -I m4 |
faf5649c | 277 | %{__autoconf} |
69051332 | 278 | # disable grass/libgrass here, it can be built from separate gdal-grass package |
6b59fa88 | 279 | %configure \ |
5014b82a | 280 | --datadir=%{_datadir}/gdal \ |
d4d7a2c6 | 281 | --with-dods-root=/usr \ |
d3d190a4 | 282 | %{?with_armadillo:--with-armadillo} \ |
209aac6b | 283 | %{?with_epsilon:--with-epsilon} \ |
b88bb9ef | 284 | %{!?with_gta:--without-gta} \ |
69051332 | 285 | --with-hide-internal-symbols \ |
9b4989ae JB |
286 | %{?with_java:--with-java=%{java_home}} \ |
287 | --with-liblzma \ | |
209aac6b | 288 | %{?with_java:--with-mdb --with-jvm-lib-add-rpath} \ |
d3d190a4 JB |
289 | %{?with_mysql:--with-mysql} \ |
290 | %{?with_opencl:--with-opencl} \ | |
a0ffd9c4 | 291 | --with-perl \ |
9b4989ae | 292 | %{?with_php:--with-php} \ |
fac7da6f JB |
293 | %{?with_podofo:--with-podofo} \ |
294 | %{?with_poppler:--with-poppler} \ | |
69051332 | 295 | --with-python \ |
4aafe7c0 | 296 | %{?with_ruby:--with-ruby} \ |
4537079d | 297 | %{?with_spatialite:--with-spatialite} \ |
69051332 | 298 | --with-sqlite3 \ |
9b4989ae | 299 | --with-webp \ |
655672e5 | 300 | %{?with_xerces:--with-xerces} \ |
6b59fa88 | 301 | --with-xerces-inc=/usr/include/xercesc \ |
80faacbe | 302 | --with-xerces-lib="-lxerces-c" \ |
a3027d62 | 303 | --without-grass \ |
69051332 | 304 | --without-libgrass |
d3d190a4 | 305 | # --with-rasdaman |
954ec354 | 306 | # --with-pcidsk=/usr (needs > 0.3) |
69051332 | 307 | # csharp builds, but has no configure option |
faf5649c | 308 | |
69051332 | 309 | # regenerate where needed |
825dc3dc | 310 | %{__make} -j1 -C swig/perl generate |
3df9ed7f | 311 | %if %{with ruby} |
02b013b1 | 312 | %{__make} -j1 -C swig/ruby generate |
3df9ed7f | 313 | %endif |
69051332 | 314 | |
825dc3dc | 315 | %{__make} -j1 |
a0ffd9c4 | 316 | |
825dc3dc | 317 | %{__make} -j1 docs |
3a591acf | 318 | |
f5a12c65 JK |
319 | %{__make} -j1 man |
320 | ||
faf5649c JB |
321 | %install |
322 | rm -rf $RPM_BUILD_ROOT | |
faf5649c | 323 | |
825dc3dc | 324 | %{__make} -j1 install install-man \ |
3a591acf JB |
325 | DESTDIR=$RPM_BUILD_ROOT |
326 | ||
388b39cb ER |
327 | rm -rf _html |
328 | cp -a html _html | |
329 | cp -a ogr/html _html/ogr | |
faf5649c | 330 | |
9b4989ae JB |
331 | %if %{with php} |
332 | # missing in make install | |
333 | install -D swig/php/php_gdal.so $RPM_BUILD_ROOT%{php_extensiondir}/gdal.so | |
334 | install -D swig/php/php_gdalconst.so $RPM_BUILD_ROOT%{php_extensiondir}/gdalconst.so | |
335 | install -D swig/php/php_ogr.so $RPM_BUILD_ROOT%{php_extensiondir}/ogr.so | |
336 | install -D swig/php/php_osr.so $RPM_BUILD_ROOT%{php_extensiondir}/osr.so | |
337 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
338 | cat <<'EOF' >$RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/gdal.ini | |
339 | ; Enable gdal extension module | |
340 | extension=gdal.so | |
341 | extension=gdalconst.so | |
342 | extension=ogr.so | |
343 | extension=osr.so | |
344 | EOF | |
345 | %endif | |
346 | ||
374370d5 JB |
347 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
348 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
349 | %py_postclean | |
5014b82a | 350 | |
017b03bb ER |
351 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
352 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/.packlist | |
353 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/Const/.packlist | |
354 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OGR/.packlist | |
355 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OSR/.packlist | |
356 | ||
357 | # some doxygen trash | |
954ec354 | 358 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/{GDAL.dox,GDAL/Const.dox,OGR.dox,OSR.dox} |
9b4989ae | 359 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/check_dox.pl |
954ec354 | 360 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/gdal_{fillnodata,sieve}.dox |
017b03bb | 361 | |
faf5649c JB |
362 | %clean |
363 | rm -rf $RPM_BUILD_ROOT | |
364 | ||
6b59fa88 JB |
365 | %post -p /sbin/ldconfig |
366 | %postun -p /sbin/ldconfig | |
367 | ||
faf5649c JB |
368 | %files |
369 | %defattr(644,root,root,755) | |
c0a384ef | 370 | %doc NEWS PROVENANCE.TXT |
4058fbc3 JB |
371 | %attr(755,root,root) %{_bindir}/epsg_tr.py |
372 | %attr(755,root,root) %{_bindir}/esri2wkt.py | |
373 | %attr(755,root,root) %{_bindir}/gcps2vec.py | |
374 | %attr(755,root,root) %{_bindir}/gcps2wld.py | |
375 | %attr(755,root,root) %{_bindir}/gdal2tiles.py | |
376 | %attr(755,root,root) %{_bindir}/gdal2xyz.py | |
377 | %attr(755,root,root) %{_bindir}/gdal_contour | |
954ec354 | 378 | %attr(755,root,root) %{_bindir}/gdal_calc.py |
4058fbc3 JB |
379 | %attr(755,root,root) %{_bindir}/gdal_fillnodata.py |
380 | %attr(755,root,root) %{_bindir}/gdal_grid | |
381 | %attr(755,root,root) %{_bindir}/gdal_merge.py | |
382 | %attr(755,root,root) %{_bindir}/gdal_polygonize.py | |
383 | %attr(755,root,root) %{_bindir}/gdal_proximity.py | |
384 | %attr(755,root,root) %{_bindir}/gdal_rasterize | |
385 | %attr(755,root,root) %{_bindir}/gdal_retile.py | |
386 | %attr(755,root,root) %{_bindir}/gdal_sieve.py | |
387 | %attr(755,root,root) %{_bindir}/gdal_translate | |
388 | %attr(755,root,root) %{_bindir}/gdaladdo | |
389 | %attr(755,root,root) %{_bindir}/gdalbuildvrt | |
390 | %attr(755,root,root) %{_bindir}/gdalchksum.py | |
391 | %attr(755,root,root) %{_bindir}/gdaldem | |
392 | %attr(755,root,root) %{_bindir}/gdalenhance | |
393 | %attr(755,root,root) %{_bindir}/gdalident.py | |
394 | %attr(755,root,root) %{_bindir}/gdalimport.py | |
395 | %attr(755,root,root) %{_bindir}/gdalinfo | |
954ec354 | 396 | %attr(755,root,root) %{_bindir}/gdallocationinfo |
4058fbc3 | 397 | %attr(755,root,root) %{_bindir}/gdalmanage |
9b4989ae | 398 | %attr(755,root,root) %{_bindir}/gdalsrsinfo |
4058fbc3 JB |
399 | %attr(755,root,root) %{_bindir}/gdaltindex |
400 | %attr(755,root,root) %{_bindir}/gdaltransform | |
401 | %attr(755,root,root) %{_bindir}/gdalwarp | |
402 | %attr(755,root,root) %{_bindir}/mkgraticule.py | |
403 | %attr(755,root,root) %{_bindir}/nearblack | |
404 | %attr(755,root,root) %{_bindir}/ogr2ogr | |
405 | %attr(755,root,root) %{_bindir}/ogrinfo | |
406 | %attr(755,root,root) %{_bindir}/ogrtindex | |
407 | %attr(755,root,root) %{_bindir}/pct2rgb.py | |
408 | %attr(755,root,root) %{_bindir}/rgb2pct.py | |
409 | %attr(755,root,root) %{_bindir}/testepsg | |
5014b82a | 410 | %attr(755,root,root) %{_libdir}/libgdal.so.*.*.* |
017b03bb | 411 | %attr(755,root,root) %ghost %{_libdir}/libgdal.so.1 |
6b59fa88 | 412 | %{_datadir}/gdal |
4058fbc3 JB |
413 | %{_mandir}/man1/gdal2tiles.1* |
414 | %{_mandir}/man1/gdal_contour.1* | |
415 | %{_mandir}/man1/gdal_fillnodata.1* | |
416 | %{_mandir}/man1/gdal_grid.1* | |
417 | %{_mandir}/man1/gdal_merge.1* | |
418 | %{_mandir}/man1/gdal_rasterize.1* | |
419 | %{_mandir}/man1/gdal_retile.1* | |
420 | %{_mandir}/man1/gdal_sieve.1* | |
421 | %{_mandir}/man1/gdal_translate.1* | |
422 | %{_mandir}/man1/gdal_utilities.1* | |
423 | %{_mandir}/man1/gdaladdo.1* | |
424 | %{_mandir}/man1/gdalbuildvrt.1* | |
425 | %{_mandir}/man1/gdaldem.1* | |
426 | %{_mandir}/man1/gdalinfo.1* | |
954ec354 | 427 | %{_mandir}/man1/gdallocationinfo.1* |
9b4989ae | 428 | %{_mandir}/man1/gdalsrsinfo.1* |
4058fbc3 JB |
429 | %{_mandir}/man1/gdaltindex.1* |
430 | %{_mandir}/man1/gdaltransform.1* | |
431 | %{_mandir}/man1/gdalwarp.1* | |
432 | %{_mandir}/man1/nearblack.1* | |
433 | %{_mandir}/man1/ogr2ogr.1* | |
434 | %{_mandir}/man1/ogr_utilities.1* | |
435 | %{_mandir}/man1/ogrinfo.1* | |
436 | %{_mandir}/man1/ogrtindex.1* | |
437 | %{_mandir}/man1/pct2rgb.1* | |
438 | %{_mandir}/man1/rgb2pct.1* | |
6b59fa88 JB |
439 | |
440 | %files devel | |
441 | %defattr(644,root,root,755) | |
388b39cb | 442 | %doc _html/* |
5014b82a | 443 | %attr(755,root,root) %{_bindir}/gdal-config |
6b59fa88 | 444 | %attr(755,root,root) %{_libdir}/libgdal.so |
5014b82a | 445 | %{_libdir}/libgdal.la |
4058fbc3 JB |
446 | %{_includedir}/cpl_*.h |
447 | %{_includedir}/cplkeywordparser.h | |
448 | %{_includedir}/gdal*.h | |
449 | %{_includedir}/gvgcpfit.h | |
450 | %{_includedir}/memdataset.h | |
451 | %{_includedir}/ogr_*.h | |
452 | %{_includedir}/ogrsf_frmts.h | |
453 | %{_includedir}/rawdataset.h | |
454 | %{_includedir}/thinplatespline.h | |
455 | %{_includedir}/vrtdataset.h | |
5014b82a | 456 | %{_mandir}/man1/gdal-config.1* |
6b59fa88 JB |
457 | |
458 | %files static | |
459 | %defattr(644,root,root,755) | |
9b5c0fd4 | 460 | %{_libdir}/libgdal.a |
6b59fa88 | 461 | |
a0ffd9c4 JB |
462 | %files -n perl-gdal |
463 | %defattr(644,root,root,755) | |
464 | %dir %{perl_vendorarch}/Geo | |
465 | %{perl_vendorarch}/Geo/GDAL.pm | |
466 | %dir %{perl_vendorarch}/Geo/GDAL | |
467 | %{perl_vendorarch}/Geo/GDAL/Const.pm | |
468 | %{perl_vendorarch}/Geo/OGR.pm | |
469 | %{perl_vendorarch}/Geo/OSR.pm | |
470 | %dir %{perl_vendorarch}/auto/Geo | |
471 | %dir %{perl_vendorarch}/auto/Geo/GDAL | |
472 | %{perl_vendorarch}/auto/Geo/GDAL/GDAL.bs | |
473 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/GDAL.so | |
474 | %dir %{perl_vendorarch}/auto/Geo/GDAL/Const | |
475 | %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.bs | |
476 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.so | |
477 | %dir %{perl_vendorarch}/auto/Geo/OGR | |
478 | %{perl_vendorarch}/auto/Geo/OGR/OGR.bs | |
479 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/OGR/OGR.so | |
480 | %dir %{perl_vendorarch}/auto/Geo/OSR | |
481 | %{perl_vendorarch}/auto/Geo/OSR/OSR.bs | |
482 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/OSR/OSR.so | |
483 | ||
9b4989ae JB |
484 | %if %{with php} |
485 | %files -n php-gdal | |
486 | %defattr(644,root,root,755) | |
487 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/gdal.ini | |
488 | %attr(755,root,root) %{php_extensiondir}/gdal.so | |
489 | %attr(755,root,root) %{php_extensiondir}/gdalconst.so | |
490 | %attr(755,root,root) %{php_extensiondir}/ogr.so | |
491 | %attr(755,root,root) %{php_extensiondir}/osr.so | |
492 | %endif | |
493 | ||
6b59fa88 JB |
494 | %files -n python-gdal |
495 | %defattr(644,root,root,755) | |
9a2dbbce JB |
496 | %{py_sitedir}/gdal.py[co] |
497 | %{py_sitedir}/gdalconst.py[co] | |
498 | %{py_sitedir}/gdalnumeric.py[co] | |
9a2dbbce JB |
499 | %{py_sitedir}/ogr.py[co] |
500 | %{py_sitedir}/osr.py[co] | |
69051332 JB |
501 | %{py_sitedir}/GDAL-*.egg-info |
502 | %dir %{py_sitedir}/osgeo | |
503 | %attr(755,root,root) %{py_sitedir}/osgeo/_gdal.so | |
504 | %attr(755,root,root) %{py_sitedir}/osgeo/_gdal_array.so | |
505 | %attr(755,root,root) %{py_sitedir}/osgeo/_gdalconst.so | |
506 | %attr(755,root,root) %{py_sitedir}/osgeo/_ogr.so | |
507 | %attr(755,root,root) %{py_sitedir}/osgeo/_osr.so | |
508 | %{py_sitedir}/osgeo/*.py[co] | |
a0ffd9c4 | 509 | |
4aafe7c0 | 510 | %if %{with ruby} |
a0ffd9c4 JB |
511 | %files -n ruby-gdal |
512 | %defattr(644,root,root,755) | |
513 | %dir %{ruby_sitearchdir}/gdal | |
514 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/gdal.so | |
515 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/gdalconst.so | |
516 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/ogr.so | |
517 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/osr.so | |
4aafe7c0 | 518 | %endif |