From 0455b64d44cd5c4828789deff570a252b0d409e6 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sat, 5 May 2012 11:06:25 +0200 Subject: RHEL/Fedora: fix gtk-qt-engine for GCC 4.7 --- .../gtk-qt-engine-3.5.13-fix_glib_include.patch | 11 +++++++++++ .../gtk-qt-engine/trinity-gtk-qt-engine.spec | 22 +++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 redhat/applications/gtk-qt-engine/gtk-qt-engine-3.5.13-fix_glib_include.patch (limited to 'redhat/applications/gtk-qt-engine') diff --git a/redhat/applications/gtk-qt-engine/gtk-qt-engine-3.5.13-fix_glib_include.patch b/redhat/applications/gtk-qt-engine/gtk-qt-engine-3.5.13-fix_glib_include.patch new file mode 100644 index 000000000..caf67e13b --- /dev/null +++ b/redhat/applications/gtk-qt-engine/gtk-qt-engine-3.5.13-fix_glib_include.patch @@ -0,0 +1,11 @@ +--- gtk-qt-engine/src/qt_theme_draw.c.ORI 2012-05-01 19:52:05.317334548 +0200 ++++ gtk-qt-engine/src/qt_theme_draw.c 2012-05-01 19:54:50.474099070 +0200 +@@ -3,7 +3,7 @@ + #include + #include + #include +-#include ++#include + + #ifdef HAVE_BONOBO + #include diff --git a/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec index ccdbaa156..2d84bc729 100644 --- a/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec +++ b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec @@ -1,7 +1,7 @@ # Default version for this component %define kdecomp gtk-qt-engine %define version 0.8 -%define release 1 +%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?_prefix}" != "/usr" @@ -33,6 +33,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz +# [gtk-qt-engine] Fix inclusion of 'glib.h' +Patch1: gtk-qt-engine-3.5.13-fix_glib_include.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-kdelibs-devel @@ -53,7 +55,7 @@ a way to configure it from within KControl. %prep %setup -q -n applications/%{kdecomp} - +%patch1 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! @@ -65,12 +67,9 @@ sed -i CMakeLists.txt \ unset QTDIR || : ; . /etc/profile.d/qt.sh export PATH="%{_bindir}:${PATH}" -export CXXFLAGS="-I${QTINC} ${CXXFLAGS}" - %__mkdir build cd build %cmake \ - -DKDE3PREFIX=%{_prefix} \ .. %__make %{?_smp_mflags} @@ -86,14 +85,6 @@ export PATH="%{_bindir}:${PATH}" %__rm -rf %{buildroot} -%post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : - -%postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : - %files %defattr(-,root,root,-) @@ -107,5 +98,10 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %Changelog +* Tue May 01 2012 Francois Andriot - 0.8-2 +- Rebuilt for Fedora 17 +- Fix FTBFS with newer glib +- Removes useless post and postun + * Sun Nov 20 2011 Francois Andriot - 0.8-1 - Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 -- cgit v1.2.3