1 Summary: Geospatial Data Abstraction Library
2 Summary(pl): Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
8 Source0: ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz
9 # Source0-md5: 7ff1ceff745ee011793e1f860c02c172
10 Patch0: %{name}-pgsql.patch
11 Patch1: %{name}-DESTDIR.patch
12 Patch2: %{name}-dods.patch
13 Patch3: %{name}-gcc4.patch
14 URL: http://www.remotesensing.org/gdal/
15 BuildRequires: autoconf
16 BuildRequires: cfitsio-devel
17 BuildRequires: doxygen
18 BuildRequires: geos-devel >= 2.0
19 BuildRequires: hdf-devel >= 4.0
20 BuildRequires: jasper-devel
21 BuildRequires: libcsf-devel
22 BuildRequires: libdap-devel >= 3.5
23 BuildRequires: libgeotiff-devel >= 1.2.1
24 BuildRequires: libjpeg-devel >= 6b
25 BuildRequires: libpng-devel >= 2:1.2.8
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtiff-devel >= 3.6.0
28 BuildRequires: libungif-devel >= 4.0
29 BuildRequires: netcdf-devel
30 BuildRequires: ogdi-devel >= 3.1
31 BuildRequires: postgresql-devel
32 BuildRequires: postgresql-backend-devel
33 BuildRequires: python-devel
34 BuildRequires: sqlite3-devel >= 3
35 BuildRequires: unixODBC-devel
36 BuildRequires: xerces-c-devel >= 2.2.0
37 BuildRequires: zlib-devel >= 1.1.4
39 Requires: libgeotiff >= 1.2.1
40 Requires: libpng >= 2:1.2.8
41 Requires: libtiff >= 3.6.0
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 GDAL is a translator library for raster geospatial data formats that
46 is released under an Open Source license. As a library, it presents a
47 single abstract data model to the calling application for all
48 supported formats. The related OGR library (which lives within the
49 GDAL source tree) provides a similar capability for simple features
53 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
54 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
55 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
56 do wszystkich obs³ugiwanych formatów. Powi±zana z ni± biblioteka OGR
57 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
58 mo¿liwo¶ci dla danych wektorowych.
61 Summary: GDAL library header files
62 Summary(pl): Pliki nag³ówkowe biblioteki GDAL
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
65 Requires: cfitsio-devel
66 Requires: geos-devel >= 2.0
67 Requires: hdf-devel >= 4.0
68 Requires: jasper-devel
69 Requires: libcsf-devel
70 Requires: libdap-devel >= 3.5
71 Requires: libgeotiff-devel >= 1.2.1
72 Requires: libjpeg-devel
73 Requires: libpng-devel >= 2:1.2.8
74 Requires: libstdc++-devel
75 Requires: libtiff-devel >= 3.6.0
76 Requires: libungif-devel
77 Requires: netcdf-devel
78 Requires: ogdi-devel >= 3.1
79 Requires: postgresql-devel
80 Requires: sqlite3-devel >= 3
81 Requires: unixODBC-devel
82 Requires: xerces-c-devel >= 2.2.0
85 GDAL library header files.
87 %description devel -l pl
88 Pliki nag³ówkowe biblioteki GDAL.
91 Summary: GDAL static libraries
92 Summary(pl): Statyczne biblioteki GDAL
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
97 GDAL static libraries.
99 %description static -l pl
100 Statyczne biblioteki GDAL.
102 %package -n python-gdal
103 Summary: GDAL Python module
104 Summary(pl): Modu³ Pythona GDAL
105 Group: Libraries/Python
106 Requires: %{name} = %{version}-%{release}
107 %pyrequires_eq python-libs
109 %description -n python-gdal
112 %description -n python-gdal -l pl
122 %{__perl} -pi -e "s/PYLIB=lib/PYLIB=%{_lib}/" aclocal.m4
125 # disable grass/libgrass here, it can be built from separate gdal-grass package
128 --datadir=%{_datadir}/gdal \
129 --with-dods-root=/usr \
130 --with-pymoddir=%{py_sitedir} \
133 --with-xerces-inc=/usr/include/xercesc \
134 --with-xerces-lib="-lxerces-c" \
143 rm -rf $RPM_BUILD_ROOT
146 DESTDIR=$RPM_BUILD_ROOT
148 mv -f ogr/html html/org
150 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
153 rm -rf $RPM_BUILD_ROOT
155 %post -p /sbin/ldconfig
156 %postun -p /sbin/ldconfig
159 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/*
162 %exclude %{_bindir}/gdal-config
163 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
166 %exclude %{_mandir}/man1/gdal-config.1*
169 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_bindir}/gdal-config
172 %attr(755,root,root) %{_libdir}/libgdal.so
173 %{_libdir}/libgdal.la
175 %{_mandir}/man1/gdal-config.1*
178 %defattr(644,root,root,755)
181 %files -n python-gdal
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so