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 # Source0-md5: 7882b50cfe4c991d0ab9f89542a1767d
15 Patch0: %{name}-pgsql.patch
16 Patch1: %{name}-DESTDIR.patch
17 URL: http://www.remotesensing.org/gdal/
18 BuildRequires: autoconf
19 BuildRequires: cfitsio-devel
20 BuildRequires: doxygen
21 BuildRequires: hdf-devel >= 4.0
22 BuildRequires: jasper-devel
23 BuildRequires: libgeotiff-devel
24 BuildRequires: libjpeg-devel >= 6b
25 BuildRequires: libpng-devel >= 1.0.6
26 BuildRequires: libtiff-devel >= 3.6.0
27 BuildRequires: libungif-devel >= 4.0
28 BuildRequires: ogdi-devel >= 3.1
29 BuildRequires: postgresql-devel
30 BuildRequires: postgresql-backend-devel
31 BuildRequires: python-devel
32 BuildRequires: rpm-pythonprov
33 BuildRequires: xerces-c-devel >= 2.2.0
34 BuildRequires: zlib-devel >= 1.1.4
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 GDAL is a translator library for raster geospatial data formats that
39 is released under an Open Source license. As a library, it presents a
40 single abstract data model to the calling application for all
41 supported formats. The related OGR library (which lives within the
42 GDAL source tree) provides a similar capability for simple features
46 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
47 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
48 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
49 do wszystkich obs³ugiwanych formatów. Powi±zana z nia biblioteka OGR
50 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
51 mo¿liwo¶ci dla danych wektorowych.
54 Summary: GDAL library header files
55 Summary(pl): Pliki nag³ówkowe biblioteki GDAL
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 GDAL library header files.
62 %description devel -l pl
63 Pliki nag³ówkowe biblioteki GDAL.
66 Summary: GDAL static libraries
67 Summary(pl): Statyczne biblioteki GDAL
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
72 GDAL static libraries.
74 %description static -l pl
75 Statyczne biblioteki GDAL.
77 %package -n python-gdal
78 Summary: GDAL Python module
79 Summary(pl): Modu³ Pythona GDAL
80 Group: Libraries/Python
81 Requires: %{name} = %{version}-%{release}
83 %description -n python-gdal
86 %description -n python-gdal -l pl
94 %{__perl} -pi -e "s@lib/python@%{_lib}/python@" aclocal.m4
99 --datadir=%{_datadir}/gdal \
100 --with-pymoddir=%{py_sitedir} \
102 --with-xerces-inc=/usr/include/xercesc \
103 --with-xerces-lib="-lxerces-c" \
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 mv -f ogr/html html/org
118 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
127 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_bindir}/*
130 %exclude %{_bindir}/gdal-config
131 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
134 %exclude %{_mandir}/man1/gdal-config.1*
137 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/gdal-config
140 %attr(755,root,root) %{_libdir}/libgdal.so
141 %{_libdir}/libgdal.la
143 %{_mandir}/man1/gdal-config.1*
146 %defattr(644,root,root,755)
149 %files -n python-gdal
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so