3 # - consider using GRASS (or GDAL in GRASS? build trap possible)
5 %include /usr/lib/rpm/macros.python
6 Summary: Geospatial Data Abstraction Library
7 Summary(pl): Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
13 Source0: ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz
14 Patch0: %{name}-acfix.patch
15 Patch1: %{name}-pgsql.patch
16 Patch2: %{name}-DESTDIR.patch
17 Patch3: %{name}-soname.patch
18 Patch4: %{name}-xerces.patch
19 URL: http://www.remotesensing.org/gdal/
20 BuildRequires: autoconf
21 BuildRequires: cfitsio-devel
22 BuildRequires: hdf-devel >= 4.0
23 BuildRequires: jasper-devel
24 BuildRequires: libgeotiff-devel
25 BuildRequires: libjpeg-devel >= 6b
26 BuildRequires: libpng-devel >= 1.0.6
27 BuildRequires: libtiff-devel >= 3.6.0
28 BuildRequires: libungif-devel >= 4.0
29 BuildRequires: ogdi-devel >= 3.1
30 BuildRequires: postgresql-devel
31 BuildRequires: postgresql-backend-devel
32 BuildRequires: python-devel
33 BuildRequires: rpm-pythonprov
34 BuildRequires: xerces-c-devel = 1.7.0
35 BuildRequires: zlib-devel >= 1.1.4
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 GDAL is a translator library for raster geospatial data formats that
40 is released under an Open Source license. As a library, it presents a
41 single abstract data model to the calling application for all
42 supported formats. The related OGR library (which lives within the
43 GDAL source tree) provides a similar capability for simple features
47 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
48 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
49 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
50 do wszystkich obs³ugiwanych formatów. Powi±zana z nia biblioteka OGR
51 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
52 mo¿liwo¶ci dla danych wektorowych.
55 Summary: GDAL library header files
56 Summary(pl): Pliki nag³ówkowe biblioteki GDAL
57 Group: Development/Libraries
58 Requires: %{name} = %{version}
61 GDAL library header files.
63 %description devel -l pl
64 Pliki nag³ówkowe biblioteki GDAL.
67 Summary: GDAL static libraries
68 Summary(pl): Statyczne biblioteki GDAL
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}
73 GDAL static libraries.
75 %description static -l pl
76 Statyczne biblioteki GDAL.
78 %package -n python-gdal
79 Summary: GDAL Python module
80 Summary(pl): Modu³ Pythona GDAL
81 Group: Libraries/Python
82 Requires: %{name} = %{version}
84 %description -n python-gdal
87 %description -n python-gdal -l pl
102 --with-xerces-inc=/usr/include/xercesc \
103 --with-xerces-lib="-lxerces-c1_7_0" \
109 rm -rf $RPM_BUILD_ROOT
111 %{__make} install DESTDIR=$RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc ChangeLog NEWS html/*.{html,gif,png,css}
122 %attr(755,root,root) %{_bindir}/*
123 %attr(755,root,root) %{_libdir}/libgdal.*.so
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libgdal.so
132 %defattr(644,root,root,755)
135 %files -n python-gdal
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so