From 9082c64290b302a7ab956fb0975ac7a86d2bdc9e6eef2d2fdb31b863a312e209 Mon Sep 17 00:00:00 2001 From: Otto Dassau Date: Mon, 26 Apr 2010 15:30:03 +0000 Subject: [PATCH] added fix for rpath problem for >0 1110 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=105 --- qgis.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qgis.spec b/qgis.spec index 4186c30..f6e8431 100644 --- a/qgis.spec +++ b/qgis.spec @@ -46,7 +46,7 @@ BuildRequires: gsl >= 1.6 gsl-devel BuildRequires: cmake >= 2.4 BuildRequires: flex bison BuildRequires: update-desktop-files -BuildRequires: -post-build-checks +BuildRequires: -post-build-checks chrpath BuildRoot: %{_tmppath}/%{name}-%{version}-build Obsoletes: qgis10 @@ -127,6 +127,14 @@ ln -s ../%{name}/images/icons/qgis-icon.png \ # Do not update .desktop files %suse_update_desktop_file -n %{name} +# ERROR: RPATH "/" on /var/tmp/qgis-1.4.0-build/ ... is not allowed +%if 0%{?suse_version} >= 1110 +%__chmod 644 %{buildroot}%{_bindir}/qgis +%__chmod 644 %{buildroot}%{_bindir}/qgis_help +chrpath --delete %{buildroot}%{_bindir}/qgis +chrpath --delete %{buildroot}%{_bindir}/qgis_help +%endif + %clean rm -rf %{buildroot}