1 Summary: Geospatial Data Abstraction Library
2 Summary(pl): Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
8 Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz
9 # Source0-md5: 67ed02dcea21e93f5e123bb0d322898a
10 Patch0: %{name}-pgsql.patch
11 Patch1: %{name}-DESTDIR.patch
12 Patch2: %{name}-dods.patch
13 Patch3: %{name}-gcc4.patch
14 Patch4: %{name}-ac.patch
15 URL: http://www.gdal.org/
16 BuildRequires: autoconf
17 BuildRequires: cfitsio-devel
18 BuildRequires: doxygen
19 BuildRequires: geos-devel >= 2.0
20 BuildRequires: giflib-devel >= 4.0
21 BuildRequires: hdf-devel >= 4.0
22 BuildRequires: jasper-devel
23 BuildRequires: libcsf-devel
24 BuildRequires: libdap-devel >= 3.5
25 BuildRequires: libgeotiff-devel >= 1.2.1
26 BuildRequires: libjpeg-devel >= 6b
27 BuildRequires: libpng-devel >= 2:1.2.8
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtiff-devel >= 3.6.0
30 BuildRequires: netcdf-devel
31 BuildRequires: ogdi-devel >= 3.1
32 BuildRequires: postgresql-devel
33 BuildRequires: postgresql-backend-devel
34 BuildRequires: python-devel
35 BuildRequires: sqlite3-devel >= 3
36 BuildRequires: unixODBC-devel
37 BuildRequires: xerces-c-devel >= 2.2.0
38 BuildRequires: zlib-devel >= 1.1.4
40 Requires: libgeotiff >= 1.2.1
41 Requires: libpng >= 2:1.2.8
42 Requires: libtiff >= 3.6.0
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 GDAL is a translator library for raster geospatial data formats that
47 is released under an Open Source license. As a library, it presents a
48 single abstract data model to the calling application for all
49 supported formats. The related OGR library (which lives within the
50 GDAL source tree) provides a similar capability for simple features
54 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
55 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
56 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
57 do wszystkich obs³ugiwanych formatów. Powi±zana z ni± biblioteka OGR
58 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
59 mo¿liwo¶ci dla danych wektorowych.
62 Summary: GDAL library header files
63 Summary(pl): Pliki nag³ówkowe biblioteki GDAL
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: cfitsio-devel
67 Requires: geos-devel >= 2.0
68 Requires: giflib-devel
69 Requires: hdf-devel >= 4.0
70 Requires: jasper-devel
71 Requires: libcsf-devel
72 Requires: libdap-devel >= 3.5
73 Requires: libgeotiff-devel >= 1.2.1
74 Requires: libjpeg-devel
75 Requires: libpng-devel >= 2:1.2.8
76 Requires: libstdc++-devel
77 Requires: libtiff-devel >= 3.6.0
78 Requires: netcdf-devel
79 Requires: ogdi-devel >= 3.1
80 Requires: postgresql-devel
81 Requires: sqlite3-devel >= 3
82 Requires: unixODBC-devel
83 Requires: xerces-c-devel >= 2.2.0
86 GDAL library header files.
88 %description devel -l pl
89 Pliki nag³ówkowe biblioteki GDAL.
92 Summary: GDAL static libraries
93 Summary(pl): Statyczne biblioteki GDAL
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 GDAL static libraries.
100 %description static -l pl
101 Statyczne biblioteki GDAL.
103 %package -n python-gdal
104 Summary: GDAL Python module
105 Summary(pl): Modu³ Pythona GDAL
106 Group: Libraries/Python
107 Requires: %{name} = %{version}-%{release}
108 %pyrequires_eq python-libs
110 %description -n python-gdal
113 %description -n python-gdal -l pl
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 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
151 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
153 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
156 rm -rf $RPM_BUILD_ROOT
158 %post -p /sbin/ldconfig
159 %postun -p /sbin/ldconfig
162 %defattr(644,root,root,755)
163 %doc NEWS PROVENANCE.TXT
164 %attr(755,root,root) %{_bindir}/*
165 %exclude %{_bindir}/gdal-config
166 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
169 %exclude %{_mandir}/man1/gdal-config.1*
172 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/gdal-config
175 %attr(755,root,root) %{_libdir}/libgdal.so
176 %{_libdir}/libgdal.la
178 %{_mandir}/man1/gdal-config.1*
181 %defattr(644,root,root,755)
184 %files -n python-gdal
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so
187 %{py_sitedir}/*.py[co]