- rel. 1
[packages/gdal.git] / gdal.spec
CommitLineData
655672e5 1#
2# Conditional build:
3%bcond_without odbc # disable odbc support
4%bcond_without xerces # disable xerces support
5#
faf5649c 6Summary: Geospatial Data Abstraction Library
a28c1bee 7Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi
faf5649c 8Name: gdal
037543d7 9Version: 1.4.1
cf539d54 10Release: 1
faf5649c
JB
11License: BSD-like
12Group: Libraries
aa54a029 13#Source0: http://download.osgeo.org/gdal/%{name}-%{version}.tar.gz
6aa09140 14Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz
037543d7 15# Source0-md5: 688cf651c6f6efc2851b12f2e9c2e0d1
da4f9a6c
JB
16Patch0: %{name}-dods.patch
17Patch1: %{name}-ac.patch
a0ffd9c4
JB
18Patch2: %{name}-perl.patch
19Patch3: %{name}-ruby.patch
9b5c0fd4 20URL: http://www.gdal.org/
faf5649c 21BuildRequires: autoconf
6b59fa88 22BuildRequires: cfitsio-devel
3a591acf 23BuildRequires: doxygen
d44ae2ef 24BuildRequires: geos-devel >= 2.0
b459f4d7 25BuildRequires: giflib-devel >= 4.0
6b59fa88
JB
26BuildRequires: hdf-devel >= 4.0
27BuildRequires: jasper-devel
d4d7a2c6
JB
28BuildRequires: libcsf-devel
29BuildRequires: libdap-devel >= 3.5
b3cbf6a3 30BuildRequires: libgeotiff-devel >= 1.2.1
6b59fa88 31BuildRequires: libjpeg-devel >= 6b
e354fe40 32BuildRequires: libpng-devel >= 2:1.2.8
b3cbf6a3 33BuildRequires: libstdc++-devel
6b59fa88 34BuildRequires: libtiff-devel >= 3.6.0
b3cbf6a3 35BuildRequires: netcdf-devel
6b59fa88 36BuildRequires: ogdi-devel >= 3.1
a0ffd9c4 37BuildRequires: perl-devel
faf5649c
JB
38BuildRequires: postgresql-devel
39BuildRequires: postgresql-backend-devel
a0ffd9c4 40BuildRequires: python-Numeric-devel
faf5649c 41BuildRequires: python-devel
a0ffd9c4 42BuildRequires: ruby-devel
d4d7a2c6 43BuildRequires: sqlite3-devel >= 3
a0ffd9c4 44BuildRequires: swig-ruby
655672e5 45%{?with_odbc:BuildRequires: unixODBC-devel}
46%{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0}
faf5649c 47BuildRequires: zlib-devel >= 1.1.4
d44ae2ef 48Requires: geos >= 2.0
b3cbf6a3 49Requires: libgeotiff >= 1.2.1
e354fe40 50Requires: libpng >= 2:1.2.8
b3cbf6a3 51Requires: libtiff >= 3.6.0
faf5649c
JB
52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54%description
55GDAL is a translator library for raster geospatial data formats that
56is released under an Open Source license. As a library, it presents a
57single abstract data model to the calling application for all
58supported formats. The related OGR library (which lives within the
59GDAL source tree) provides a similar capability for simple features
60vector data.
f05c79e8 61
d34f2ec8
JR
62%description -l pl.UTF-8
63GDAL to biblioteka konwertująca między formatami rastrowych danych
64dotyczących powierzchni Ziemi, udostępniona na licencji Open Source.
65Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych
66do wszystkich obsługiwanych formatów. Powiązana z nią biblioteka OGR
67(której źródła są dołączone do drzewa źródeł GDAL) daje podobne
68możliwości dla danych wektorowych.
faf5649c 69
6b59fa88
JB
70%package devel
71Summary: GDAL library header files
a28c1bee 72Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL
6b59fa88 73Group: Development/Libraries
1673a634 74Requires: %{name} = %{version}-%{release}
b3cbf6a3 75Requires: cfitsio-devel
d44ae2ef 76Requires: geos-devel >= 2.0
b459f4d7 77Requires: giflib-devel
b3cbf6a3
JB
78Requires: hdf-devel >= 4.0
79Requires: jasper-devel
d4d7a2c6
JB
80Requires: libcsf-devel
81Requires: libdap-devel >= 3.5
b3cbf6a3
JB
82Requires: libgeotiff-devel >= 1.2.1
83Requires: libjpeg-devel
e354fe40 84Requires: libpng-devel >= 2:1.2.8
b3cbf6a3
JB
85Requires: libstdc++-devel
86Requires: libtiff-devel >= 3.6.0
b3cbf6a3
JB
87Requires: netcdf-devel
88Requires: ogdi-devel >= 3.1
89Requires: postgresql-devel
d4d7a2c6 90Requires: sqlite3-devel >= 3
655672e5 91%{?with_odbc:Requires: unixODBC-devel}
92%{?with_xerces:Requires: xerces-c-devel >= 2.2.0}
6b59fa88
JB
93
94%description devel
95GDAL library header files.
96
d34f2ec8
JR
97%description devel -l pl.UTF-8
98Pliki nagłówkowe biblioteki GDAL.
6b59fa88
JB
99
100%package static
101Summary: GDAL static libraries
a28c1bee 102Summary(pl.UTF-8): Statyczne biblioteki GDAL
6b59fa88 103Group: Development/Libraries
1673a634 104Requires: %{name}-devel = %{version}-%{release}
6b59fa88
JB
105
106%description static
107GDAL static libraries.
108
d34f2ec8 109%description static -l pl.UTF-8
6b59fa88
JB
110Statyczne biblioteki GDAL.
111
a0ffd9c4
JB
112%package -n perl-gdal
113Summary: Perl bindings for GDAL
114Summary(pl.UTF-8): Wiązania Perla do pakietu GDAL
115Group: Development/Languages/Perl
116Requires: %{name} = %{version}-%{release}
117
118%description -n perl-gdal
119Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules.
120
121%description -n perl-gdal -l pl.UTF-8
122Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR,
123Geo::OSR.
124
6b59fa88
JB
125%package -n python-gdal
126Summary: GDAL Python module
a28c1bee 127Summary(pl.UTF-8): Moduł Pythona GDAL
6b59fa88 128Group: Libraries/Python
1673a634 129Requires: %{name} = %{version}-%{release}
faf2b39a 130%pyrequires_eq python-libs
6b59fa88
JB
131
132%description -n python-gdal
133GDAL Python module.
134
d34f2ec8
JR
135%description -n python-gdal -l pl.UTF-8
136Moduł Pythona GDAL.
6b59fa88 137
a0ffd9c4
JB
138%package -n ruby-gdal
139Summary: Ruby bindings for GDAL
140Summary(pl.UTF-8): Wiązania języka Ruby do pakietu GDAL
141Group: Development/Languages
142Requires: %{name} = %{version}-%{release}
143%{?ruby_mod_ver_requires_eq}
144
145%description -n ruby-gdal
146Ruby bindings for GDAL - gdal, gdalconst, ogr and osr modules.
147
148%description -n ruby-gdal -l pl.UTF-8
149Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr
150i osr.
151
faf5649c
JB
152%prep
153%setup -q
154%patch0 -p1
155%patch1 -p1
a0ffd9c4
JB
156%patch2 -p1
157%patch3 -p1
4ed54fac 158
faf5649c 159%build
a3027d62 160# disable grass/libgrass here, it can be built from separate gdal-grass package
faf5649c 161%{__autoconf}
6b59fa88 162%configure \
5014b82a 163 --datadir=%{_datadir}/gdal \
d4d7a2c6 164 --with-dods-root=/usr \
a0ffd9c4 165 --with-perl \
1673a634 166 --with-pymoddir=%{py_sitedir} \
a0ffd9c4 167 --with-ruby \
d4d7a2c6 168 --with-sqlite \
655672e5 169 %{?with_xerces:--with-xerces} \
6b59fa88 170 --with-xerces-inc=/usr/include/xercesc \
80faacbe 171 --with-xerces-lib="-lxerces-c" \
a3027d62
JB
172 --without-grass \
173 --without-libgrass
a0ffd9c4
JB
174# --with-ngpython disables traditional python binding
175# --with-php needs Zend API update
faf5649c
JB
176%{__make}
177
a0ffd9c4
JB
178%{__make} -C swig build \
179 OPTIMIZE="%{rpmcflags}"
180
3a591acf
JB
181%{__make} docs
182
faf5649c
JB
183%install
184rm -rf $RPM_BUILD_ROOT
faf5649c 185
3a591acf
JB
186%{__make} install \
187 DESTDIR=$RPM_BUILD_ROOT
188
189mv -f ogr/html html/org
faf5649c 190
374370d5
JB
191%py_comp $RPM_BUILD_ROOT%{py_sitedir}
192%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
193%py_postclean
5014b82a
JB
194rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
195
faf5649c
JB
196%clean
197rm -rf $RPM_BUILD_ROOT
198
6b59fa88
JB
199%post -p /sbin/ldconfig
200%postun -p /sbin/ldconfig
201
faf5649c
JB
202%files
203%defattr(644,root,root,755)
c0a384ef 204%doc NEWS PROVENANCE.TXT
faf5649c 205%attr(755,root,root) %{_bindir}/*
5014b82a
JB
206%exclude %{_bindir}/gdal-config
207%attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
6b59fa88 208%{_datadir}/gdal
5014b82a
JB
209%{_mandir}/man1/*
210%exclude %{_mandir}/man1/gdal-config.1*
6b59fa88
JB
211
212%files devel
213%defattr(644,root,root,755)
3a591acf 214%doc html/*
5014b82a 215%attr(755,root,root) %{_bindir}/gdal-config
6b59fa88 216%attr(755,root,root) %{_libdir}/libgdal.so
5014b82a 217%{_libdir}/libgdal.la
faf5649c 218%{_includedir}/*.h
5014b82a 219%{_mandir}/man1/gdal-config.1*
6b59fa88
JB
220
221%files static
222%defattr(644,root,root,755)
9b5c0fd4 223%{_libdir}/libgdal.a
6b59fa88 224
a0ffd9c4
JB
225%files -n perl-gdal
226%defattr(644,root,root,755)
227%dir %{perl_vendorarch}/Geo
228%{perl_vendorarch}/Geo/GDAL.pm
229%dir %{perl_vendorarch}/Geo/GDAL
230%{perl_vendorarch}/Geo/GDAL/Const.pm
231%{perl_vendorarch}/Geo/OGR.pm
232%{perl_vendorarch}/Geo/OSR.pm
233%dir %{perl_vendorarch}/auto/Geo
234%dir %{perl_vendorarch}/auto/Geo/GDAL
235%{perl_vendorarch}/auto/Geo/GDAL/GDAL.bs
236%attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/GDAL.so
237%dir %{perl_vendorarch}/auto/Geo/GDAL/Const
238%{perl_vendorarch}/auto/Geo/GDAL/Const/Const.bs
239%attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.so
240%dir %{perl_vendorarch}/auto/Geo/OGR
241%{perl_vendorarch}/auto/Geo/OGR/OGR.bs
242%attr(755,root,root) %{perl_vendorarch}/auto/Geo/OGR/OGR.so
243%dir %{perl_vendorarch}/auto/Geo/OSR
244%{perl_vendorarch}/auto/Geo/OSR/OSR.bs
245%attr(755,root,root) %{perl_vendorarch}/auto/Geo/OSR/OSR.so
246
6b59fa88
JB
247%files -n python-gdal
248%defattr(644,root,root,755)
faf5649c 249%attr(755,root,root) %{py_sitedir}/_gdalmodule.so
374370d5 250%{py_sitedir}/*.py[co]
a0ffd9c4
JB
251
252%files -n ruby-gdal
253%defattr(644,root,root,755)
254%dir %{ruby_sitearchdir}/gdal
255%attr(755,root,root) %{ruby_sitearchdir}/gdal/gdal.so
256%attr(755,root,root) %{ruby_sitearchdir}/gdal/gdalconst.so
257%attr(755,root,root) %{ruby_sitearchdir}/gdal/ogr.so
258%attr(755,root,root) %{ruby_sitearchdir}/gdal/osr.so
This page took 0.134347 seconds and 4 git commands to generate.