SHA256
1
0
forked from pool/qgis

added fix for rpath problem for >0 1110

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=105
This commit is contained in:
Otto Dassau 2010-04-26 15:30:03 +00:00 committed by Git OBS Bridge
parent 61be200727
commit 9082c64290

View File

@ -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}