Name: gdal Summary: GIS file format library Version: 1.3.2 Release: min.1.fc6 License: MIT URL: http://gdal.maptools.org Source: %{name}-%{version}.tar.gz Prefix: /usr Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: /sbin/ldconfig #Requires: ogdi libpng libungif libjpeg postgresql-libs proj Requires: libpng libungif libjpeg postgresql-libs proj sqlite Requires: python >= 2.4 #BuildRequires: netcdf ogdi-devel postgresql-devel geos-devel #BuildRequires: postgresql-devel geos-devel BuildRequires: libpng-devel libungif-devel libjpeg-devel proj-devel sqlite-devel BuildRequires: python-devel >= 2.4 #define globally Python version: %define pyversion python2.4 %description The GDAL library provides support for reading and writing multiple GIS file formats. %package devel Summary: Development Libraries for the GDAL file format library Group: Development/Libraries Requires: gdal = %{version} %description devel The GDAL library provides support for reading and writing multiple GIS file formats. %prep %setup %build %configure \ --prefix=%{_prefix} \ --with-libtiff=internal \ --with-geotiff=internal \ --without-libz \ --without-cfitsio \ --without-pcraster \ --without-ogdi \ --without-hdf4 \ --without-hdf5 \ --without-netcdf \ --without-geos \ --without-jasper \ --without-xerces \ --without-grass \ --without-libgrass \ --without-perl \ --with-png \ --with-gif \ --with-jpeg \ --with-python \ --with-sqlite \ --enable-shared make %install rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}%{_prefix} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_datadir}/gdal make \ INST_BIN=%{buildroot}%{_bindir}\ INST_LIB=%{buildroot}%{_libdir} \ INST_INCLUDE=%{buildroot}%{_includedir} \ INST_DATA=%{buildroot}%{_datadir}/gdal \ INST_MAN=%{buildroot}%{_mandir} \ INST_PYMOD=%{buildroot}%{_libdir}/%{pyversion}/site-packages \ install /bin/rm -f %{buildroot}%{_libdir}/*.la /bin/mv -f %{buildroot}%{_bindir}/*.py %{buildroot}%{_datadir}/gdal /bin/cp -f pymod/samples/*.py %{buildroot}%{_datadir}/gdal %clean rm -r $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.so.* %{_bindir}/gdaladdo %{_bindir}/gdalinfo %{_bindir}/gdal_translate %{_bindir}/gdal_rasterize %{_bindir}/gdalwarp %{_bindir}/gdal_contour %{_bindir}/gdaltindex %{_bindir}/ogr2ogr %{_bindir}/ogrinfo %{_bindir}/ogrtindex %dir %{_datadir}/gdal %{_datadir}/gdal/* %{_libdir}/%{pyversion}/site-packages/* %doc %{_mandir}/* %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.a %{_bindir}/gdal-config