summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqca/tqca-14.0.0.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/dependencies/tqca/tqca-14.0.0.spec')
-rw-r--r--redhat/dependencies/tqca/tqca-14.0.0.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/redhat/dependencies/tqca/tqca-14.0.0.spec b/redhat/dependencies/tqca/tqca-14.0.0.spec
index 23bee37b8..127761a45 100644
--- a/redhat/dependencies/tqca/tqca-14.0.0.spec
+++ b/redhat/dependencies/tqca/tqca-14.0.0.spec
@@ -150,12 +150,18 @@ unset QTDIR QTINC QTLIB
--qtdir=/usr \
--debug
+
+# Workaround strange tqmake behaviour in RHEL5
+%if 0%{?rhel} == 5
+%__sed -i "Makefile" -e "s|..\/..\/..\/..|%{_prefix}|g"
+%endif
+
%__make %{?_smp_mflags}
%install
%__rm -rf $RPM_BUILD_ROOT
-%__make install INSTALL_ROOT=$RPM_BUILD_ROOT
+%__make install INSTALL_ROOT="${RPM_BUILD_ROOT}/"
%clean