summaryrefslogtreecommitdiffstats
path: root/redhat/applications
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-05-05 11:06:25 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-05-05 11:06:25 +0200
commit0455b64d44cd5c4828789deff570a252b0d409e6 (patch)
treee25f0927c840299691600d532695c1db540b67bf /redhat/applications
parent52d511ca193d9c9b67e5499c1c4045ccb518eff1 (diff)
downloadtde-packaging-0455b64d44cd5c4828789deff570a252b0d409e6.tar.gz
tde-packaging-0455b64d44cd5c4828789deff570a252b0d409e6.zip
RHEL/Fedora: fix gtk-qt-engine for GCC 4.7
Diffstat (limited to 'redhat/applications')
-rw-r--r--redhat/applications/gtk-qt-engine/gtk-qt-engine-3.5.13-fix_glib_include.patch11
-rw-r--r--redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec22
2 files changed, 20 insertions, 13 deletions
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 <gtk/gtkprogressbar.h>
+ #include <gdk/gdk.h>
+ #include <gtk/gtk.h>
+-#include <glib/glist.h>
++#include <glib.h>
+
+ #ifdef HAVE_BONOBO
+ #include <libbonobo.h>
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 <francois.andriot@free.fr> - 0.8-2
+- Rebuilt for Fedora 17
+- Fix FTBFS with newer glib
+- Removes useless post and postun
+
* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.8-1
- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16