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 URL: http://www.remotesensing.org/gdal/
14 BuildRequires: autoconf
15 BuildRequires: cfitsio-devel
16 BuildRequires: doxygen
17 BuildRequires: geos-devel >= 2.0
18 BuildRequires: hdf-devel >= 4.0
19 BuildRequires: jasper-devel
20 BuildRequires: libcsf-devel
21 BuildRequires: libdap-devel >= 3.5
22 BuildRequires: libgeotiff-devel >= 1.2.1
23 BuildRequires: libjpeg-devel >= 6b
24 BuildRequires: libpng-devel >= 2:1.2.8
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtiff-devel >= 3.6.0
27 BuildRequires: libungif-devel >= 4.0
28 BuildRequires: netcdf-devel
29 BuildRequires: ogdi-devel >= 3.1
30 BuildRequires: postgresql-devel
31 BuildRequires: postgresql-backend-devel
32 BuildRequires: python-devel
33 BuildRequires: sqlite3-devel >= 3
34 BuildRequires: unixODBC-devel
35 BuildRequires: xerces-c-devel >= 2.2.0
36 BuildRequires: zlib-devel >= 1.1.4
38 Requires: libgeotiff >= 1.2.1
39 Requires: libpng >= 2:1.2.8
40 Requires: libtiff >= 3.6.0
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 GDAL is a translator library for raster geospatial data formats that
45 is released under an Open Source license. As a library, it presents a
46 single abstract data model to the calling application for all
47 supported formats. The related OGR library (which lives within the
48 GDAL source tree) provides a similar capability for simple features
52 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
53 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
54 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
55 do wszystkich obs³ugiwanych formatów. Powi±zana z ni± biblioteka OGR
56 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
57 mo¿liwo¶ci dla danych wektorowych.
60 Summary: GDAL library header files
61 Summary(pl): Pliki nag³ówkowe biblioteki GDAL
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64 Requires: cfitsio-devel
65 Requires: geos-devel >= 2.0
66 Requires: hdf-devel >= 4.0
67 Requires: jasper-devel
68 Requires: libcsf-devel
69 Requires: libdap-devel >= 3.5
70 Requires: libgeotiff-devel >= 1.2.1
71 Requires: libjpeg-devel
72 Requires: libpng-devel >= 2:1.2.8
73 Requires: libstdc++-devel
74 Requires: libtiff-devel >= 3.6.0
75 Requires: libungif-devel
76 Requires: netcdf-devel
77 Requires: ogdi-devel >= 3.1
78 Requires: postgresql-devel
79 Requires: sqlite3-devel >= 3
80 Requires: unixODBC-devel
81 Requires: xerces-c-devel >= 2.2.0
84 GDAL library header files.
86 %description devel -l pl
87 Pliki nag³ówkowe biblioteki GDAL.
90 Summary: GDAL static libraries
91 Summary(pl): Statyczne biblioteki GDAL
92 Group: Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
96 GDAL static libraries.
98 %description static -l pl
99 Statyczne biblioteki GDAL.
101 %package -n python-gdal
102 Summary: GDAL Python module
103 Summary(pl): Modu³ Pythona GDAL
104 Group: Libraries/Python
105 Requires: %{name} = %{version}-%{release}
106 %pyrequires_eq python-libs
108 %description -n python-gdal
111 %description -n python-gdal -l pl
120 %{__perl} -pi -e "s@lib/python@%{_lib}/python@" aclocal.m4
123 # disable grass/libgrass here, it can be built from separate gdal-grass package
126 --datadir=%{_datadir}/gdal \
127 --with-dods-root=/usr \
128 --with-pymoddir=%{py_sitedir} \
131 --with-xerces-inc=/usr/include/xercesc \
132 --with-xerces-lib="-lxerces-c" \
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT
146 mv -f ogr/html html/org
148 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
151 rm -rf $RPM_BUILD_ROOT
153 %post -p /sbin/ldconfig
154 %postun -p /sbin/ldconfig
157 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_bindir}/*
160 %exclude %{_bindir}/gdal-config
161 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
164 %exclude %{_mandir}/man1/gdal-config.1*
167 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/gdal-config
170 %attr(755,root,root) %{_libdir}/libgdal.so
171 %{_libdir}/libgdal.la
173 %{_mandir}/man1/gdal-config.1*
176 %defattr(644,root,root,755)
179 %files -n python-gdal
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so