3 # - consider using GRASS (or GDAL in GRASS? build trap possible)
5 Summary: Geospatial Data Abstraction Library
6 Summary(pl): Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
12 Source0: ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz
13 # Source0-md5: 2e3e651be6b4f42486e99ef39c17ffb1
14 Patch0: %{name}-pgsql.patch
15 Patch1: %{name}-DESTDIR.patch
16 Patch2: %{name}-sh.patch
17 URL: http://www.remotesensing.org/gdal/
18 BuildRequires: autoconf
19 BuildRequires: cfitsio-devel
20 BuildRequires: doxygen
21 BuildRequires: geos-devel >= 2.0
22 BuildRequires: hdf-devel >= 4.0
23 BuildRequires: jasper-devel
24 BuildRequires: libgeotiff-devel >= 1.2.1
25 BuildRequires: libjpeg-devel >= 6b
26 BuildRequires: libpng-devel >= 1.0.6
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtiff-devel >= 3.6.0
29 BuildRequires: libungif-devel >= 4.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: rpm-pythonprov
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: 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: libgeotiff-devel >= 1.2.1
70 Requires: libjpeg-devel
71 Requires: libpng-devel >= 1.0.6
72 Requires: libstdc++-devel
73 Requires: libtiff-devel >= 3.6.0
74 Requires: libungif-devel
75 Requires: netcdf-devel
76 Requires: ogdi-devel >= 3.1
77 Requires: postgresql-devel
78 Requires: unixODBC-devel
79 Requires: xerces-c-devel >= 2.2.0
82 GDAL library header files.
84 %description devel -l pl
85 Pliki nag³ówkowe biblioteki GDAL.
88 Summary: GDAL static libraries
89 Summary(pl): Statyczne biblioteki GDAL
90 Group: Development/Libraries
91 Requires: %{name}-devel = %{version}-%{release}
94 GDAL static libraries.
96 %description static -l pl
97 Statyczne biblioteki GDAL.
99 %package -n python-gdal
100 Summary: GDAL Python module
101 Summary(pl): Modu³ Pythona GDAL
102 Group: Libraries/Python
103 Requires: %{name} = %{version}-%{release}
104 %pyrequires_eq python-libs
106 %description -n python-gdal
109 %description -n python-gdal -l pl
118 %{__perl} -pi -e "s@lib/python@%{_lib}/python@" aclocal.m4
123 --datadir=%{_datadir}/gdal \
124 --with-pymoddir=%{py_sitedir} \
126 --with-xerces-inc=/usr/include/xercesc \
127 --with-xerces-lib="-lxerces-c" \
135 rm -rf $RPM_BUILD_ROOT
138 DESTDIR=$RPM_BUILD_ROOT
140 mv -f ogr/html html/org
142 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
145 rm -rf $RPM_BUILD_ROOT
147 %post -p /sbin/ldconfig
148 %postun -p /sbin/ldconfig
151 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_bindir}/*
154 %exclude %{_bindir}/gdal-config
155 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
158 %exclude %{_mandir}/man1/gdal-config.1*
161 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_bindir}/gdal-config
164 %attr(755,root,root) %{_libdir}/libgdal.so
165 %{_libdir}/libgdal.la
167 %{_mandir}/man1/gdal-config.1*
170 %defattr(644,root,root,755)
173 %files -n python-gdal
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so