summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran├žois Andriot <albator78@libertysurf.fr>2014-09-29 22:00:43 +0200
committerFran├žois Andriot <albator78@libertysurf.fr>2014-09-29 22:00:43 +0200
commitc7c930ea4d1e22683d0b76ffd122c79544dedbc7 (patch)
treecc5c2fcd93cfaebd2a9cdf1cf4d5c17fb6f2a138
parent9beb443007d868901b37e8131bc9020add2ee79d (diff)
downloadtde-packaging-c7c930ea4d1e22683d0b76ffd122c79544dedbc7.tar.gz
tde-packaging-c7c930ea4d1e22683d0b76ffd122c79544dedbc7.zip
RPM Packaging: fix FTBFS on CentOS 5
-rw-r--r--redhat/dependencies/tqt3/tqt3-14.0.0.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/redhat/dependencies/tqt3/tqt3-14.0.0.spec b/redhat/dependencies/tqt3/tqt3-14.0.0.spec
index c9a976bc8..d1a28437e 100644
--- a/redhat/dependencies/tqt3/tqt3-14.0.0.spec
+++ b/redhat/dependencies/tqt3/tqt3-14.0.0.spec
@@ -473,10 +473,14 @@ for the TQt 3 toolkit.
##########
-
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
+# Fix strange FTBFS on RHEL5
+%if 0%{?rhel} == 5
+%__sed -i src/kernel/ntqstyle.h -e "s|#ifdef ENABLE_TQSTYLECONTROLELEMENTDATA_SLOW_COPY|#if 1|"
+%endif
+
# fix variables in 'qmake.conf'
%__sed -i mkspecs/*/qmake.conf \
-e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/tqt3|" \