From 9750a057f2f36c5b88a5bc53c0a051b605dac061 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Mon, 7 May 2012 01:06:08 +0200 Subject: RHEL/Fedora: massive updates for Fedora 17 (TDE 3.5.13 entire build) --- .../tellico-3.5.13-fix_gcc47_compilation.patch | 10 ++++++++ redhat/applications/tellico/trinity-tellico.spec | 29 +++++++++++++--------- 2 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 redhat/applications/tellico/tellico-3.5.13-fix_gcc47_compilation.patch (limited to 'redhat/applications/tellico') diff --git a/redhat/applications/tellico/tellico-3.5.13-fix_gcc47_compilation.patch b/redhat/applications/tellico/tellico-3.5.13-fix_gcc47_compilation.patch new file mode 100644 index 000000000..2e8d3f9a3 --- /dev/null +++ b/redhat/applications/tellico/tellico-3.5.13-fix_gcc47_compilation.patch @@ -0,0 +1,10 @@ +--- tellico/src/mainwindow.cpp.ORI 2012-05-06 12:54:09.395765577 +0200 ++++ tellico/src/mainwindow.cpp 2012-05-06 12:54:30.626306963 +0200 +@@ -53,6 +53,7 @@ + #include "core/drophandler.h" + #include "latin1literal.h" + ++#include + #include + #include + #include diff --git a/redhat/applications/tellico/trinity-tellico.spec b/redhat/applications/tellico/trinity-tellico.spec index b08853722..5eec6996b 100644 --- a/redhat/applications/tellico/trinity-tellico.spec +++ b/redhat/applications/tellico/trinity-tellico.spec @@ -1,12 +1,12 @@ # Default version for this component %define kdecomp tellico %define version 1.3.2.1 -%define release 2 +%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc +%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables @@ -32,7 +32,10 @@ Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz -Source1: tellico.xpm + + +# [tellico] Fix compilation with GCC 4.7 [Bug #958] +Patch1: tellico-3.5.13-fix_gcc47_compilation.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-kdelibs-devel @@ -44,7 +47,7 @@ Requires: %{name}-data = %{version}-%{release} Requires: %{name}-scripts = %{version}-%{release} %description -Tellico is a collection manager for KDE. It includes default collections for +Tellico is a collection manager for TDE. It includes default collections for books, bibliographies, comic books, videos, music, coins, stamps, trading cards, and wines, and also allows custom collections; with unlimited user-defined fields allowed. Automatically formatted names, sorting by any @@ -63,7 +66,7 @@ Group: Applications/Utilities Summary: collection manager for books, videos, music [data] [Trinity] %description data -Tellico is a collection manager for KDE. It includes default collections for +Tellico is a collection manager for TDE. It includes default collections for books, bibliographies, comic books, videos, music, coins, stamps, trading cards, and wines, and also allows custom collections; with unlimited user-defined fields allowed. Automatically formatted names, sorting by any @@ -84,7 +87,7 @@ Group: Applications/Utilities Summary: collection manager for books, videos, music [scripts] [Trinity] %description scripts -Tellico is a collection manager for KDE. It includes default collections for +Tellico is a collection manager for TDE. It includes default collections for books, bibliographies, comic books, videos, music, coins, stamps, trading cards, and wines, and also allows custom collections; with unlimited user-defined fields allowed. Automatically formatted names, sorting by any @@ -104,15 +107,16 @@ as a separate package which can be updated through debian-volatile. %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 ! %__sed -i admin/acinclude.m4.in \ - -e "s,/usr/include/tqt,%{_includedir}/tqt,g" \ - -e "s,kde_htmldir='.*',kde_htmldir='%{tde_docdir}/HTML',g" + -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" %__make -f "admin/Makefile.common" @@ -139,8 +143,6 @@ export PATH="%{_bindir}:${PATH}" # Remove dead symlink from French translation %__rm %{?buildroot}%{tde_docdir}/HTML/fr/tellico/common -%__install -D -c -p -m 644 -T %{SOURCE1} %{?buildroot}%{_datadir}/pixmaps/tellico.xpm - %find_lang %{kdecomp} @@ -161,7 +163,7 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) %{_bindir}/tellico -%{_datadir}/pixmaps +#%{_datadir}/pixmaps %{_datadir}/applications %{_datadir}/config/tellicorc @@ -195,6 +197,9 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %Changelog +* Sat Dec 03 2011 Francois Andriot - 1.3.2.1-3 +- Fix compilation with GCC 4.7 [Bug #958] + * Fri Nov 25 2011 Francois Andriot - 1.3.2.1-2 - Fix HTML directory location -- cgit v1.2.3