summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqt3
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/dependencies/tqt3')
-rw-r--r--redhat/dependencies/tqt3/tqt3-14.0.0.spec17
1 files changed, 14 insertions, 3 deletions
diff --git a/redhat/dependencies/tqt3/tqt3-14.0.0.spec b/redhat/dependencies/tqt3/tqt3-14.0.0.spec
index 5462cff69..edaed58d1 100644
--- a/redhat/dependencies/tqt3/tqt3-14.0.0.spec
+++ b/redhat/dependencies/tqt3/tqt3-14.0.0.spec
@@ -46,6 +46,8 @@ Source3: linguist-tqt3.desktop
Source4: tqt3config.desktop
Source5: build-examples.sh
+Patch15: tqt3-14.0.0-add_tqt_home_dir_variable.patch
+
BuildRequires: desktop-file-utils
BuildRequires: libmng-devel
BuildRequires: glibc-devel
@@ -67,7 +69,7 @@ BuildRequires: cups-devel
# GLIB2 support
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} || 0%{?rhel} >= 6
-%define with_glibmainloop 1
+hdefine with_glibmainloop 1
BuildRequires: glib2-devel
%endif
@@ -1126,6 +1128,10 @@ things that are possible with TQt3.
%__sed -i src/kernel/ntqstyle.h -e "s|#ifdef ENABLE_TQSTYLECONTROLELEMENTDATA_SLOW_COPY|#if 1|"
%endif
+%patch15 -p1 -b .tqthomedir
+
+%__ln_s ../src/sql/drivers/sqlite3/qsql_sqlite3.h include/qsql_sqlite3.h
+
# fix variables in 'qmake.conf'
%__sed -i mkspecs/*/qmake.conf \
-e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/tqt3|" \
@@ -1146,10 +1152,14 @@ things that are possible with TQt3.
%build
unset QTDIR QTINC QTLIB
export QTDIR=$(pwd)
-export PATH=${QTDIR}/bin:$PATH
-export MANPATH=${QTDIR}/doc/man:$MANPATH
+export PATH=${QTDIR}/bin:${PATH}
+export MANPATH=${QTDIR}/doc/man:${MANPATH}
export LD_LIBRARY_PATH="${QTDIR}/lib"
+%if 0%{?rhel} == 5
+%__sed -i src/kernel/ntqstyle.h -e "s|#ifdef ENABLE_TQSTYLECONTROLELEMENTDATA_SLOW_COPY|#if 1|"
+%endif
+
# Checks for supplementary include dir
INCDIRS=""
for d in \
@@ -1228,6 +1238,7 @@ echo yes | ./configure \
-dlopen-opengl \
\
-qt-gif \
+ -qt-imgfmt-mng \
-qt-imgfmt-png \
-qt-imgfmt-jpeg \
-plugin-imgfmt-mng \