From: Jacek Konieczny Date: Mon, 18 May 2009 18:23:03 +0000 (+0000) Subject: - python %install fix X-Git-Tag: auto/th/gdal-1_5_4-4~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgdal.git;a=commitdiff_plain;h=ac627b1d984c55cd1c86d20205ffdef11c9a6ad4 - python %install fix Changed files: gdal-python_install.patch -> 1.1 gdal.spec -> 1.61 --- diff --git a/gdal-python_install.patch b/gdal-python_install.patch new file mode 100644 index 0000000..88eac18 --- /dev/null +++ b/gdal-python_install.patch @@ -0,0 +1,16 @@ +--- gdal-1.5.4/swig/python/GNUmakefile.bak 2008-07-26 21:04:24.000000000 +0200 ++++ gdal-1.5.4/swig/python/GNUmakefile 2009-05-18 20:14:35.000000000 +0200 +@@ -53,12 +53,7 @@ + $(PYTHON) setup.py bdist_egg + + install: +- +-ifeq ($(PY_HAVE_SETUPTOOLS),1) +- $(PYTHON) setup.py install +-else +- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) +-endif ++ $(PYTHON) setup.py install --root=$(DESTDIR) + + for f in $(SCRIPTS) ; do $(INSTALL) ./scripts/$$f $(DESTDIR)$(INST_BIN) ; done + diff --git a/gdal.spec b/gdal.spec index 76665ae..94d1f28 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.5.4 -Release: 2 +Release: 3 License: BSD-like Group: Libraries Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz @@ -19,6 +19,7 @@ Patch1: %{name}-perl.patch Patch2: %{name}-ruby.patch Patch3: %{name}-asneeded.patch Patch4: %{name}-ogdi.patch +Patch5: %{name}-python_install.patch URL: http://www.gdal.org/ BuildRequires: autoconf >= 2.52 BuildRequires: automake @@ -228,7 +229,9 @@ cp -a ogr/html _html/ogr %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OGR.dox %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/OSR.dox +%if %{with ruby} %{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/gdal/*.la +%endif %clean rm -rf $RPM_BUILD_ROOT