From: Elan Ruusamäe Date: Tue, 11 Mar 2008 20:56:46 +0000 (+0000) Subject: - adapter, check-files cleanup X-Git-Tag: auto/th/gdal-1_4_3-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgdal.git;a=commitdiff_plain;h=017b03bbc379c53fc82a7a5855f303b51c70b6a8 - adapter, check-files cleanup - remove doxygen trash (*.dox); rel 3 Changed files: gdal.spec -> 1.53 --- diff --git a/gdal.spec b/gdal.spec index 2af6cdd..f19a7c7 100644 --- a/gdal.spec +++ b/gdal.spec @@ -9,7 +9,7 @@ Summary: Geospatial Data Abstraction Library Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi Name: gdal Version: 1.4.3 -Release: 1 +Release: 3 License: BSD-like Group: Libraries Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz @@ -35,14 +35,14 @@ BuildRequires: libtiff-devel >= 3.6.0 BuildRequires: netcdf-devel BuildRequires: ogdi-devel >= 3.1 BuildRequires: perl-devel -BuildRequires: postgresql-devel BuildRequires: postgresql-backend-devel -BuildRequires: python-numpy-devel >= 1:1.0.0 +BuildRequires: postgresql-devel BuildRequires: python-devel >= 1:2.5 +BuildRequires: python-numpy-devel >= 1:1.0.0 %{?with_ruby:BuildRequires: ruby-devel} BuildRequires: sqlite3-devel >= 3 -%{?with_ruby:BuildRequires: swig-ruby} BuildRequires: swig-python >= 1.3 +%{?with_ruby:BuildRequires: swig-ruby} %{?with_odbc:BuildRequires: unixODBC-devel} %{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0} BuildRequires: zlib-devel >= 1.1.4 @@ -120,8 +120,7 @@ Requires: %{name} = %{version}-%{release} Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules. %description -n perl-gdal -l pl.UTF-8 -Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR, -Geo::OSR. +Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR, Geo::OSR. %package -n python-gdal Summary: GDAL Python module @@ -147,8 +146,8 @@ Requires: %{name} = %{version}-%{release} Ruby bindings for GDAL - gdal, gdalconst, ogr and osr modules. %description -n ruby-gdal -l pl.UTF-8 -Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr -i osr. +Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr i +osr. %prep %setup -q @@ -157,6 +156,10 @@ i osr. %patch2 -p1 %build +# $PYTHON_INCLUDES is set only with --with-python, but we have --with-ngpython, +# and $PYTHON_INCLUDES is needed to detect numpy properly +export PYTHON_INCLUDES=-I%{py_incdir} + # disable grass/libgrass here, it can be built from separate gdal-grass package %{__autoconf} %configure \ @@ -196,6 +199,18 @@ cp -a ogr/html _html/ogr %py_postclean rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} +%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/.packlist +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/GDAL/Const/.packlist +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OGR/.packlist +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Geo/OSR/.packlist + +# some doxygen trash +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/GDAL.dox +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/GDAL/Const.dox +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OGR.dox +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OSR.dox + %clean rm -rf $RPM_BUILD_ROOT @@ -208,6 +223,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/* %exclude %{_bindir}/gdal-config %attr(755,root,root) %{_libdir}/libgdal.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libgdal.so.1 %{_datadir}/gdal %{_mandir}/man1/* %exclude %{_mandir}/man1/gdal-config.1*