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