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