]> git.pld-linux.org Git - packages/gdal.git/blame - gdal.spec
- release 5
[packages/gdal.git] / gdal.spec
CommitLineData
f5a12c65 1# TODO: csharp, java, mysql
4058fbc3 2# use external pcidsk (http://home.gdal.org/projects/pcidsk/)?
655672e5 3#
4# Conditional build:
5%bcond_without odbc # disable odbc support
6%bcond_without xerces # disable xerces support
4aafe7c0 7%bcond_without ruby # disable ruby support
655672e5 8#
faf5649c 9Summary: Geospatial Data Abstraction Library
a28c1bee 10Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi
faf5649c 11Name: gdal
f5a12c65 12Version: 1.7.2
4e2b8041 13Release: 5
faf5649c
JB
14License: BSD-like
15Group: Libraries
c82ea5ef 16Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz
f5a12c65
JK
17# Source0-md5: 05351f8cb61761ae579667e24a297fe6
18Patch0: %{name}-perl.patch
19Patch1: %{name}-ruby.patch
20Patch2: %{name}-asneeded.patch
21Patch3: %{name}-python_install.patch
4058fbc3 22Patch4: %{name}-libdap.patch
9b5c0fd4 23URL: http://www.gdal.org/
69051332
JB
24BuildRequires: autoconf >= 2.52
25BuildRequires: automake
6b59fa88 26BuildRequires: cfitsio-devel
3a591acf 27BuildRequires: doxygen
69051332 28BuildRequires: expat-devel >= 1.95.0
4058fbc3 29BuildRequires: geos-devel >= 2.2
b459f4d7 30BuildRequires: giflib-devel >= 4.0
6b59fa88 31BuildRequires: hdf-devel >= 4.0
69051332 32BuildRequires: hdf5-devel
6b59fa88 33BuildRequires: jasper-devel
d4d7a2c6 34BuildRequires: libcsf-devel
4058fbc3 35BuildRequires: libdap-devel >= 3.10
b3cbf6a3 36BuildRequires: libgeotiff-devel >= 1.2.1
6b59fa88 37BuildRequires: libjpeg-devel >= 6b
e354fe40 38BuildRequires: libpng-devel >= 2:1.2.8
b3cbf6a3 39BuildRequires: libstdc++-devel
6b59fa88 40BuildRequires: libtiff-devel >= 3.6.0
69051332 41BuildRequires: libtool
b3cbf6a3 42BuildRequires: netcdf-devel
6b59fa88 43BuildRequires: ogdi-devel >= 3.1
a0ffd9c4 44BuildRequires: perl-devel
faf5649c 45BuildRequires: postgresql-backend-devel
017b03bb 46BuildRequires: postgresql-devel
d05dc9bc 47BuildRequires: proj-devel
9a2dbbce 48BuildRequires: python-devel >= 1:2.5
017b03bb 49BuildRequires: python-numpy-devel >= 1:1.0.0
479cb83c 50BuildRequires: rpm-pythonprov
4aafe7c0 51%{?with_ruby:BuildRequires: ruby-devel}
d4d7a2c6 52BuildRequires: sqlite3-devel >= 3
479cb83c 53BuildRequires: swig-perl
9a2dbbce 54BuildRequires: swig-python >= 1.3
017b03bb 55%{?with_ruby:BuildRequires: swig-ruby}
db38e4ab 56%if "%{pld_release}" == "ti"
57BuildRequires: tetex-format-latex
58BuildRequires: tetex-dvips
59%else
479cb83c 60BuildRequires: texlive-dvips
61BuildRequires: texlive-latex
db38e4ab 62%endif
655672e5 63%{?with_odbc:BuildRequires: unixODBC-devel}
64%{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0}
faf5649c 65BuildRequires: zlib-devel >= 1.1.4
4058fbc3 66Requires: geos >= 2.2
b3cbf6a3 67Requires: libgeotiff >= 1.2.1
e354fe40 68Requires: libpng >= 2:1.2.8
b3cbf6a3 69Requires: libtiff >= 3.6.0
faf5649c
JB
70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72%description
73GDAL is a translator library for raster geospatial data formats that
74is released under an Open Source license. As a library, it presents a
75single abstract data model to the calling application for all
76supported formats. The related OGR library (which lives within the
77GDAL source tree) provides a similar capability for simple features
78vector data.
f05c79e8 79
d34f2ec8
JR
80%description -l pl.UTF-8
81GDAL to biblioteka konwertująca między formatami rastrowych danych
82dotyczących powierzchni Ziemi, udostępniona na licencji Open Source.
83Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych
84do wszystkich obsługiwanych formatów. Powiązana z nią biblioteka OGR
85(której źródła są dołączone do drzewa źródeł GDAL) daje podobne
86możliwości dla danych wektorowych.
faf5649c 87
6b59fa88
JB
88%package devel
89Summary: GDAL library header files
a28c1bee 90Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL
6b59fa88 91Group: Development/Libraries
1673a634 92Requires: %{name} = %{version}-%{release}
b3cbf6a3 93Requires: cfitsio-devel
69051332 94Requires: expat-devel >= 1.95.0
4058fbc3 95Requires: geos-devel >= 2.2
b459f4d7 96Requires: giflib-devel
b3cbf6a3 97Requires: hdf-devel >= 4.0
69051332 98Requires: hdf5-devel
b3cbf6a3 99Requires: jasper-devel
d4d7a2c6 100Requires: libcsf-devel
4058fbc3 101Requires: libdap-devel >= 3.10
b3cbf6a3
JB
102Requires: libgeotiff-devel >= 1.2.1
103Requires: libjpeg-devel
e354fe40 104Requires: libpng-devel >= 2:1.2.8
b3cbf6a3
JB
105Requires: libstdc++-devel
106Requires: libtiff-devel >= 3.6.0
b3cbf6a3
JB
107Requires: netcdf-devel
108Requires: ogdi-devel >= 3.1
109Requires: postgresql-devel
d4d7a2c6 110Requires: sqlite3-devel >= 3
655672e5 111%{?with_odbc:Requires: unixODBC-devel}
69051332 112%{?with_xerces:Requires: xerces-c-devel >= 2.7.0}
6b59fa88
JB
113
114%description devel
115GDAL library header files.
116
d34f2ec8
JR
117%description devel -l pl.UTF-8
118Pliki nagłówkowe biblioteki GDAL.
6b59fa88
JB
119
120%package static
121Summary: GDAL static libraries
a28c1bee 122Summary(pl.UTF-8): Statyczne biblioteki GDAL
6b59fa88 123Group: Development/Libraries
1673a634 124Requires: %{name}-devel = %{version}-%{release}
6b59fa88
JB
125
126%description static
127GDAL static libraries.
128
d34f2ec8 129%description static -l pl.UTF-8
6b59fa88
JB
130Statyczne biblioteki GDAL.
131
a0ffd9c4
JB
132%package -n perl-gdal
133Summary: Perl bindings for GDAL
134Summary(pl.UTF-8): Wiązania Perla do pakietu GDAL
135Group: Development/Languages/Perl
136Requires: %{name} = %{version}-%{release}
137
138%description -n perl-gdal
139Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules.
140
141%description -n perl-gdal -l pl.UTF-8
017b03bb 142Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR, Geo::OSR.
a0ffd9c4 143
6b59fa88
JB
144%package -n python-gdal
145Summary: GDAL Python module
a28c1bee 146Summary(pl.UTF-8): Moduł Pythona GDAL
6b59fa88 147Group: Libraries/Python
1673a634 148Requires: %{name} = %{version}-%{release}
faf2b39a 149%pyrequires_eq python-libs
6b59fa88
JB
150
151%description -n python-gdal
152GDAL Python module.
153
d34f2ec8
JR
154%description -n python-gdal -l pl.UTF-8
155Moduł Pythona GDAL.
6b59fa88 156
a0ffd9c4
JB
157%package -n ruby-gdal
158Summary: Ruby bindings for GDAL
159Summary(pl.UTF-8): Wiązania języka Ruby do pakietu GDAL
160Group: Development/Languages
161Requires: %{name} = %{version}-%{release}
162%{?ruby_mod_ver_requires_eq}
163
164%description -n ruby-gdal
165Ruby bindings for GDAL - gdal, gdalconst, ogr and osr modules.
166
167%description -n ruby-gdal -l pl.UTF-8
017b03bb
ER
168Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr i
169osr.
a0ffd9c4 170
faf5649c
JB
171%prep
172%setup -q
173%patch0 -p1
174%patch1 -p1
a0ffd9c4 175%patch2 -p1
69051332 176%patch3 -p1
4058fbc3 177%patch4 -p1
69051332
JB
178
179# need to regenerate (old ones don't support perl 5.10)
4058fbc3 180%{__rm} swig/perl/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}
f5a12c65 181# includes updated for Ruby 1.9
4058fbc3 182%{__rm} swig/ruby/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}
f5a12c65 183
4058fbc3 184%{__rm} -r man
4ed54fac 185
faf5649c 186%build
69051332 187# $PYTHON_INCLUDES is set only with --with-ogpython, but we have --with-python,
017b03bb
ER
188# and $PYTHON_INCLUDES is needed to detect numpy properly
189export PYTHON_INCLUDES=-I%{py_incdir}
190
69051332
JB
191%{__libtoolize}
192cp -f /usr/share/automake/config.* .
193%{__aclocal} -I m4
faf5649c 194%{__autoconf}
69051332 195# disable grass/libgrass here, it can be built from separate gdal-grass package
6b59fa88 196%configure \
5014b82a 197 --datadir=%{_datadir}/gdal \
d4d7a2c6 198 --with-dods-root=/usr \
69051332 199 --with-hide-internal-symbols \
a0ffd9c4 200 --with-perl \
69051332 201 --with-python \
4aafe7c0 202 %{?with_ruby:--with-ruby} \
69051332 203 --with-sqlite3 \
655672e5 204 %{?with_xerces:--with-xerces} \
6b59fa88 205 --with-xerces-inc=/usr/include/xercesc \
80faacbe 206 --with-xerces-lib="-lxerces-c" \
a3027d62 207 --without-grass \
69051332 208 --without-libgrass
a0ffd9c4 209# --with-php needs Zend API update
69051332
JB
210# java broken, no configure option
211# csharp builds, but has no configure option
faf5649c 212
69051332 213# regenerate where needed
825dc3dc 214%{__make} -j1 -C swig/perl generate
961f0000 215%{?with_ruby:%{__make} -j1 -C swig/ruby generate}
69051332 216
825dc3dc 217%{__make} -j1
a0ffd9c4 218
825dc3dc 219%{__make} -j1 docs
3a591acf 220
f5a12c65
JK
221%{__make} -j1 man
222
faf5649c
JB
223%install
224rm -rf $RPM_BUILD_ROOT
faf5649c 225
825dc3dc 226%{__make} -j1 install install-man \
3a591acf
JB
227 DESTDIR=$RPM_BUILD_ROOT
228
388b39cb
ER
229rm -rf _html
230cp -a html _html
231cp -a ogr/html _html/ogr
faf5649c 232
374370d5
JB
233%py_comp $RPM_BUILD_ROOT%{py_sitedir}
234%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
235%py_postclean
5014b82a 236
017b03bb
ER
237%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
238%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/.packlist
239%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/Const/.packlist
240%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OGR/.packlist
241%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OSR/.packlist
242
243# some doxygen trash
244%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/GDAL.dox
245%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/GDAL/Const.dox
246%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OGR.dox
247%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OSR.dox
248
ac627b1d 249%if %{with ruby}
69051332 250%{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/gdal/*.la
ac627b1d 251%endif
69051332 252
faf5649c
JB
253%clean
254rm -rf $RPM_BUILD_ROOT
255
6b59fa88
JB
256%post -p /sbin/ldconfig
257%postun -p /sbin/ldconfig
258
faf5649c
JB
259%files
260%defattr(644,root,root,755)
c0a384ef 261%doc NEWS PROVENANCE.TXT
4058fbc3
JB
262%attr(755,root,root) %{_bindir}/epsg_tr.py
263%attr(755,root,root) %{_bindir}/esri2wkt.py
264%attr(755,root,root) %{_bindir}/gcps2vec.py
265%attr(755,root,root) %{_bindir}/gcps2wld.py
266%attr(755,root,root) %{_bindir}/gdal2tiles.py
267%attr(755,root,root) %{_bindir}/gdal2xyz.py
268%attr(755,root,root) %{_bindir}/gdal_contour
269%attr(755,root,root) %{_bindir}/gdal_fillnodata.py
270%attr(755,root,root) %{_bindir}/gdal_grid
271%attr(755,root,root) %{_bindir}/gdal_merge.py
272%attr(755,root,root) %{_bindir}/gdal_polygonize.py
273%attr(755,root,root) %{_bindir}/gdal_proximity.py
274%attr(755,root,root) %{_bindir}/gdal_rasterize
275%attr(755,root,root) %{_bindir}/gdal_retile.py
276%attr(755,root,root) %{_bindir}/gdal_sieve.py
277%attr(755,root,root) %{_bindir}/gdal_translate
278%attr(755,root,root) %{_bindir}/gdaladdo
279%attr(755,root,root) %{_bindir}/gdalbuildvrt
280%attr(755,root,root) %{_bindir}/gdalchksum.py
281%attr(755,root,root) %{_bindir}/gdaldem
282%attr(755,root,root) %{_bindir}/gdalenhance
283%attr(755,root,root) %{_bindir}/gdalident.py
284%attr(755,root,root) %{_bindir}/gdalimport.py
285%attr(755,root,root) %{_bindir}/gdalinfo
286%attr(755,root,root) %{_bindir}/gdalmanage
287%attr(755,root,root) %{_bindir}/gdaltindex
288%attr(755,root,root) %{_bindir}/gdaltransform
289%attr(755,root,root) %{_bindir}/gdalwarp
290%attr(755,root,root) %{_bindir}/mkgraticule.py
291%attr(755,root,root) %{_bindir}/nearblack
292%attr(755,root,root) %{_bindir}/ogr2ogr
293%attr(755,root,root) %{_bindir}/ogrinfo
294%attr(755,root,root) %{_bindir}/ogrtindex
295%attr(755,root,root) %{_bindir}/pct2rgb.py
296%attr(755,root,root) %{_bindir}/rgb2pct.py
297%attr(755,root,root) %{_bindir}/testepsg
5014b82a 298%attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
017b03bb 299%attr(755,root,root) %ghost %{_libdir}/libgdal.so.1
6b59fa88 300%{_datadir}/gdal
4058fbc3
JB
301%{_mandir}/man1/gdal2tiles.1*
302%{_mandir}/man1/gdal_contour.1*
303%{_mandir}/man1/gdal_fillnodata.1*
304%{_mandir}/man1/gdal_grid.1*
305%{_mandir}/man1/gdal_merge.1*
306%{_mandir}/man1/gdal_rasterize.1*
307%{_mandir}/man1/gdal_retile.1*
308%{_mandir}/man1/gdal_sieve.1*
309%{_mandir}/man1/gdal_translate.1*
310%{_mandir}/man1/gdal_utilities.1*
311%{_mandir}/man1/gdaladdo.1*
312%{_mandir}/man1/gdalbuildvrt.1*
313%{_mandir}/man1/gdaldem.1*
314%{_mandir}/man1/gdalinfo.1*
315%{_mandir}/man1/gdaltindex.1*
316%{_mandir}/man1/gdaltransform.1*
317%{_mandir}/man1/gdalwarp.1*
318%{_mandir}/man1/nearblack.1*
319%{_mandir}/man1/ogr2ogr.1*
320%{_mandir}/man1/ogr_utilities.1*
321%{_mandir}/man1/ogrinfo.1*
322%{_mandir}/man1/ogrtindex.1*
323%{_mandir}/man1/pct2rgb.1*
324%{_mandir}/man1/rgb2pct.1*
6b59fa88
JB
325
326%files devel
327%defattr(644,root,root,755)
388b39cb 328%doc _html/*
5014b82a 329%attr(755,root,root) %{_bindir}/gdal-config
6b59fa88 330%attr(755,root,root) %{_libdir}/libgdal.so
5014b82a 331%{_libdir}/libgdal.la
4058fbc3
JB
332%{_includedir}/cpl_*.h
333%{_includedir}/cplkeywordparser.h
334%{_includedir}/gdal*.h
335%{_includedir}/gvgcpfit.h
336%{_includedir}/memdataset.h
337%{_includedir}/ogr_*.h
338%{_includedir}/ogrsf_frmts.h
339%{_includedir}/rawdataset.h
340%{_includedir}/thinplatespline.h
341%{_includedir}/vrtdataset.h
5014b82a 342%{_mandir}/man1/gdal-config.1*
6b59fa88
JB
343
344%files static
345%defattr(644,root,root,755)
9b5c0fd4 346%{_libdir}/libgdal.a
6b59fa88 347
a0ffd9c4
JB
348%files -n perl-gdal
349%defattr(644,root,root,755)
350%dir %{perl_vendorarch}/Geo
351%{perl_vendorarch}/Geo/GDAL.pm
352%dir %{perl_vendorarch}/Geo/GDAL
353%{perl_vendorarch}/Geo/GDAL/Const.pm
354%{perl_vendorarch}/Geo/OGR.pm
355%{perl_vendorarch}/Geo/OSR.pm
356%dir %{perl_vendorarch}/auto/Geo
357%dir %{perl_vendorarch}/auto/Geo/GDAL
358%{perl_vendorarch}/auto/Geo/GDAL/GDAL.bs
359%attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/GDAL.so
360%dir %{perl_vendorarch}/auto/Geo/GDAL/Const
361%{perl_vendorarch}/auto/Geo/GDAL/Const/Const.bs
362%attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.so
363%dir %{perl_vendorarch}/auto/Geo/OGR
364%{perl_vendorarch}/auto/Geo/OGR/OGR.bs
365%attr(755,root,root) %{perl_vendorarch}/auto/Geo/OGR/OGR.so
366%dir %{perl_vendorarch}/auto/Geo/OSR
367%{perl_vendorarch}/auto/Geo/OSR/OSR.bs
368%attr(755,root,root) %{perl_vendorarch}/auto/Geo/OSR/OSR.so
369
6b59fa88
JB
370%files -n python-gdal
371%defattr(644,root,root,755)
9a2dbbce
JB
372%{py_sitedir}/gdal.py[co]
373%{py_sitedir}/gdalconst.py[co]
374%{py_sitedir}/gdalnumeric.py[co]
9a2dbbce
JB
375%{py_sitedir}/ogr.py[co]
376%{py_sitedir}/osr.py[co]
69051332
JB
377%{py_sitedir}/GDAL-*.egg-info
378%dir %{py_sitedir}/osgeo
379%attr(755,root,root) %{py_sitedir}/osgeo/_gdal.so
380%attr(755,root,root) %{py_sitedir}/osgeo/_gdal_array.so
381%attr(755,root,root) %{py_sitedir}/osgeo/_gdalconst.so
382%attr(755,root,root) %{py_sitedir}/osgeo/_ogr.so
383%attr(755,root,root) %{py_sitedir}/osgeo/_osr.so
384%{py_sitedir}/osgeo/*.py[co]
a0ffd9c4 385
4aafe7c0 386%if %{with ruby}
a0ffd9c4
JB
387%files -n ruby-gdal
388%defattr(644,root,root,755)
389%dir %{ruby_sitearchdir}/gdal
390%attr(755,root,root) %{ruby_sitearchdir}/gdal/gdal.so
391%attr(755,root,root) %{ruby_sitearchdir}/gdal/gdalconst.so
392%attr(755,root,root) %{ruby_sitearchdir}/gdal/ogr.so
393%attr(755,root,root) %{ruby_sitearchdir}/gdal/osr.so
4aafe7c0 394%endif
This page took 0.085947 seconds and 4 git commands to generate.