summaryrefslogtreecommitdiffstats
path: root/redhat/kdelibs
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/kdelibs')
-rw-r--r--redhat/kdelibs/kdelibs-3.5.12-fixx11h.patch21
-rw-r--r--redhat/kdelibs/kdelibs-3.5.12-kstandarddirs_trinity.patch29
-rw-r--r--redhat/kdelibs/kdelibs-3.5.13-add_inotify_support.patch67
-rw-r--r--redhat/kdelibs/kdelibs-3.5.13-enable_fam_gamin.patch79
-rw-r--r--redhat/kdelibs/kdelibs-3.5.13-enable_pcre.patch67
-rw-r--r--redhat/kdelibs/kdelibs-3.5.13-kate_syntax.patch.gzbin0 -> 195241 bytes
-rw-r--r--redhat/kdelibs/kdelibs-3.5.13-maxlinelength.patch40
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.12.spec76
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec66
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec~264
10 files changed, 424 insertions, 285 deletions
diff --git a/redhat/kdelibs/kdelibs-3.5.12-fixx11h.patch b/redhat/kdelibs/kdelibs-3.5.12-fixx11h.patch
new file mode 100644
index 000000000..64fc9b841
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.12-fixx11h.patch
@@ -0,0 +1,21 @@
+--- branches/trinity/kdelibs/kdecore/fixx11h.h 2011/01/03 05:50:03 1211108
++++ branches/trinity/kdelibs/kdecore/fixx11h.h 2011/01/12 22:19:14 1214091
+@@ -57,15 +57,18 @@
+
+ // template --->
+ // Affects: Should be without side effects.
++#ifndef _XTYPEDEF_BOOL
+ #ifdef Bool
+ #ifndef FIXX11H_Bool
+ #define FIXX11H_Bool
+ typedef Bool XBool;
+ #undef Bool
++#define _XTYPEDEF_BOOL
+ typedef XBool Bool;
+ #endif
+ #undef Bool
+ #endif
++#endif // _XTYPEDEF_BOOL
+ // template <---
+
+ // Affects: Should be without side effects.
diff --git a/redhat/kdelibs/kdelibs-3.5.12-kstandarddirs_trinity.patch b/redhat/kdelibs/kdelibs-3.5.12-kstandarddirs_trinity.patch
new file mode 100644
index 000000000..e19aa739f
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.12-kstandarddirs_trinity.patch
@@ -0,0 +1,29 @@
+--- kdelibs/kdecore/kstandarddirs.cpp.ORI 2011-12-09 23:13:50.089238165 +0100
++++ kdelibs/kdecore/kstandarddirs.cpp 2011-12-09 23:16:23.133210143 +0100
+@@ -839,7 +839,7 @@
+ }
+ // UGLY HACK - Chris CHeney
+ if (local && (!strcmp("config", type)))
+- candidates->append("/etc/kde3/");
++ candidates->append("/etc/trinity/");
+ //
+ local = false;
+ }
+@@ -1030,7 +1030,7 @@
+ if (!strcmp(type, "html-bundle"))
+ return "share/doc-bundle/HTML/";
+ if (!strcmp(type, "html"))
+- return "share/doc/kde/HTML/";
++ return "share/doc/HTML/";
+ if (!strcmp(type, "icon"))
+ return "share/icons/";
+ if (!strcmp(type, "config"))
+@@ -1336,7 +1336,7 @@
+ }
+ else
+ {
+- localKdeDir = TQDir::homeDirPath() + "/.kde3/";
++ localKdeDir = TQDir::homeDirPath() + "/.trinity/";
+ }
+
+ if (localKdeDir != QString("-/"))
diff --git a/redhat/kdelibs/kdelibs-3.5.13-add_inotify_support.patch b/redhat/kdelibs/kdelibs-3.5.13-add_inotify_support.patch
new file mode 100644
index 000000000..97afbc7a7
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.13-add_inotify_support.patch
@@ -0,0 +1,67 @@
+commit 24f144faf98249012e7b1657a5dfe93750f0dfde
+Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+Date: 1326095653 -0600
+
+ Add inotify CMake support to tdelibs
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e26c252..ede0a3a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -76,6 +76,7 @@
+ OPTION( WITH_UTEMPTER "Use utempter for utmp management" OFF )
+ OPTION( WITH_AVAHI "Enable AVAHI support" OFF )
+ OPTION( WITH_PCRE "Enable pcre regex support for kjs" ON )
++OPTION( WITH_INOTIFY "Enable inotify support for kio" ON )
+
+ OPTION( WITH_ASPELL "Enable aspell support" OFF )
+ OPTION( WITH_HSPELL "Enable hspell support" OFF )
+@@ -726,6 +727,26 @@ if( WITH_GCC_VISIBILITY )
+ set( HAVE_PCREPOSIX 1 )
+ endif( )
+
++##### check for inotify ###########################
++
++if( WITH_INOTIFY )
++ check_include_file( "inotify.h" INOTIFY_FOUND )
++ check_include_file( "sys/inotify.h" INOTIFY_SYS_FOUND )
++ if( NOT INOTIFY_FOUND )
++ if( NOT INOTIFY_SYS_FOUND )
++ message(FATAL_ERROR "\ninotify support was requested, but inotify was not found on your system" )
++ endif( NOT INOTIFY_SYS_FOUND )
++ endif( NOT INOTIFY_FOUND )
++ if( INOTIFY_FOUND )
++ set( HAVE_INOTIFY 1 )
++ endif( INOTIFY_FOUND )
++ if( INOTIFY_SYS_FOUND )
++ set( HAVE_INOTIFY 1 )
++ set( HAVE_SYS_INOTIFY 1 )
++ endif( INOTIFY_SYS_FOUND )
++endif( )
++
++
+ ##### check for aspell ##########################
+ # we need ASPELL_DATADIR too
+
+diff --git a/config.h.cmake b/config.h.cmake
+index 1893270..d9b0ef5 100644
+--- a/config.h.cmake
++++ b/config.h.cmake
+@@ -234,7 +234,7 @@
+ #cmakedefine HAVE_INITGROUPS_PROTO 1
+
+ /* Define if your system has Linux Inode Notification */
+-#undef HAVE_INOTIFY
++#cmakedefine HAVE_INOTIFY 1
+
+ /* Define to 1 if you have the <inttypes.h> header file. */
+ #cmakedefine HAVE_INTTYPES_H 1
+@@ -555,7 +555,7 @@
+ #cmakedefine HAVE_SYS_FILIO_H 1
+
+ /* Define if your system has glibc support for inotify */
+-#undef HAVE_SYS_INOTIFY
++#cmakedefine HAVE_SYS_INOTIFY 1
+
+ /* Define to 1 if you have the <sys/mman.h> header file. */
+ #cmakedefine HAVE_SYS_MMAN_H 1
diff --git a/redhat/kdelibs/kdelibs-3.5.13-enable_fam_gamin.patch b/redhat/kdelibs/kdelibs-3.5.13-enable_fam_gamin.patch
new file mode 100644
index 000000000..42e1993d3
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.13-enable_fam_gamin.patch
@@ -0,0 +1,79 @@
+commit 2b035349c31fe64c31d2c050892b117a3a807179
+Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+Date: 1326668093 -0600
+
+ Add fam/gamin support to tdelibs CMake
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ce186b..a1a6429 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -77,6 +77,7 @@ OPTION( WITH_ELFICON "Enable ELF embedded icon support" ${WITH_ALL_OPTIONS} )
+ OPTION( WITH_AVAHI "Enable AVAHI support" OFF )
+ OPTION( WITH_PCRE "Enable pcre regex support for kjs" ON )
+ OPTION( WITH_INOTIFY "Enable inotify support for kio" ON )
++OPTION( WITH_GAMIN "Enable FAM/GAMIN support" OFF )
+
+ OPTION( WITH_ASPELL "Enable aspell support" OFF )
+ OPTION( WITH_HSPELL "Enable hspell support" OFF )
+@@ -786,6 +787,23 @@ if( WITH_INOTIFY )
+ endif( )
+
+
++##### check for FAM/GAMIN ##########################
++
++if( WITH_GAMIN )
++ check_include_file( "fam.h" HAVE_FAM_H )
++ if( HAVE_FAM_H )
++ pkg_search_module( GAMIN gamin )
++ if( GAMIN_FOUND )
++ set( HAVE_FAM 1 )
++ else( GAMIN_FOUND )
++ message(FATAL_ERROR "\nfam/gamin support was requested, but gamin was not found on your system" )
++ endif( GAMIN_FOUND )
++ else( HAVE_FAM_H )
++ message(FATAL_ERROR "\nfam/gamin support was requested, but fam was not found on your system" )
++ endif( HAVE_FAM_H )
++endif( WITH_GAMIN )
++
++
+ ##### check for aspell ##########################
+ # we need ASPELL_DATADIR too
+
+diff --git a/config.h.cmake b/config.h.cmake
+index d9b0ef5..4e4bd18 100644
+--- a/config.h.cmake
++++ b/config.h.cmake
+@@ -120,7 +120,7 @@
+ #undef HAVE_FADVISE
+
+ /* Define if your system has libfam */
+-#undef HAVE_FAM
++#cmakedefine HAVE_FAM 1
+
+ /* Define to 1 if you have the <float.h> header file. */
+ #cmakedefine HAVE_FLOAT_H 1
+diff --git a/kio/kio/CMakeLists.txt b/kio/kio/CMakeLists.txt
+index 9d8790f..25d4fad 100644
+--- a/kio/kio/CMakeLists.txt
++++ b/kio/kio/CMakeLists.txt
+@@ -25,8 +25,12 @@ include_directories(
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kssl
+ ${CMAKE_SOURCE_DIR}/interfaces
++ ${GAMIN_INCLUDEDIR}
+ )
+
++link_directories(
++ ${GAMIN_LIBDIR}
++)
+
+ ##### headers ###################################
+
+@@ -112,4 +116,5 @@
+
+ tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES ${${target}_SRCS}
++ LINK ${GAMIN_LIBRARIES}
+ )
+
diff --git a/redhat/kdelibs/kdelibs-3.5.13-enable_pcre.patch b/redhat/kdelibs/kdelibs-3.5.13-enable_pcre.patch
new file mode 100644
index 000000000..089570a75
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.13-enable_pcre.patch
@@ -0,0 +1,67 @@
+Index: kjs/CMakeLists.txt
+===================================================================
+--- kjs/CMakeLists.txt (revision 1261450)
++++ kjs/CMakeLists.txt (working copy)
+@@ -15,10 +15,12 @@
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kdecore
++ ${LIBPCRE_INCLUDEDIR}
+ )
+
+ link_directories(
+ ${TQT_LIBRARY_DIRS}
++ ${LIBPCRE_LIBDIR}
+ )
+
+
+@@ -59,6 +61,6 @@
+ tde_add_library( ${target} SHARED
+ SOURCES ${${target}_SRCS}
+ VERSION 1.2.0
+- LINK kdecore-shared
++ LINK kdecore-shared ${LIBPCRE_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+Index: CMakeLists.txt
+===================================================================
+--- CMakeLists.txt (revision 1261450)
++++ CMakeLists.txt (working copy)
+@@ -75,6 +75,7 @@
+ OPTION( WITH_OPENEXR "Enable openexr support" OFF )
+ OPTION( WITH_UTEMPTER "Use utempter for utmp management" OFF )
+ OPTION( WITH_AVAHI "Enable AVAHI support" OFF )
++OPTION( WITH_PCRE "Enable pcre regex support for kjs" ON )
+
+ OPTION( WITH_ASPELL "Enable aspell support" OFF )
+ OPTION( WITH_HSPELL "Enable hspell support" OFF )
+@@ -715,6 +716,16 @@
+ endif( WITH_QT3 )
+ endif( )
+
++##### check for pcre ###########################
++
++if( WITH_PCRE )
++ pkg_search_module( LIBPCRE libpcre )
++ if( NOT LIBPCRE_FOUND )
++ message(FATAL_ERROR "\npcre support are requested, but not found on your system" )
++ endif( NOT LIBPCRE_FOUND )
++ set( HAVE_PCREPOSIX 1 )
++endif( )
++
+ ##### check for aspell ##########################
+ # we need ASPELL_DATADIR too
+
+Index: config.h.cmake
+===================================================================
+--- config.h.cmake (revision 1261450)
++++ config.h.cmake (working copy)
+@@ -366,7 +366,7 @@
+ #cmakedefine HAVE_PATHS_H 1
+
+ /* Define if you have pcreposix libraries and header files. */
+-#undef HAVE_PCREPOSIX
++#cmakedefine HAVE_PCREPOSIX 1
+
+ /* Define to 1 if you have the `poll' function. */
+ #cmakedefine HAVE_POLL 1
diff --git a/redhat/kdelibs/kdelibs-3.5.13-kate_syntax.patch.gz b/redhat/kdelibs/kdelibs-3.5.13-kate_syntax.patch.gz
new file mode 100644
index 000000000..523bdfbfd
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.13-kate_syntax.patch.gz
Binary files differ
diff --git a/redhat/kdelibs/kdelibs-3.5.13-maxlinelength.patch b/redhat/kdelibs/kdelibs-3.5.13-maxlinelength.patch
new file mode 100644
index 000000000..ba009c708
--- /dev/null
+++ b/redhat/kdelibs/kdelibs-3.5.13-maxlinelength.patch
@@ -0,0 +1,40 @@
+diff -Naur kdelibs.orig/kio/kio/kmimemagic.cpp kdelibs/kio/kio/kmimemagic.cpp
+--- kdelibs.orig/kio/kio/kmimemagic.cpp 2011-08-11 04:30:08.000000000 +0200
++++ kdelibs/kio/kio/kmimemagic.cpp 2011-11-19 23:23:41.000000000 +0100
+@@ -1988,8 +1988,9 @@
+ return 1;
+ }
+
+-/* Maximal length of a line we consider "reasonable". */
+-#define TEXT_MAXLINELEN 300
++/* Code removed below: conf files with big lines ARE text files,
++ * there is no "reasonable" length
++ */
+
+ // This code is taken from the "file" command, where it is licensed
+ // in the "beer-ware license" :-)
+@@ -2007,23 +2008,6 @@
+ if ((*cp < 8) || (*cp>13 && *cp<32 && *cp!=27 ) || (*cp==0x7F))
+ return 0;
+
+- /* Now, look whether the file consists of lines of
+- * "reasonable" length. */
+-
+- for (i = 0; i < nbytes;) {
+- cp = (unsigned char *) memchr(buf, '\n', nbytes - i);
+- if (cp == NULL) {
+- /* Don't fail if we hit the end of buffer. */
+- if (i + TEXT_MAXLINELEN >= nbytes)
+- break;
+- else
+- return 0;
+- }
+- if (cp - buf > TEXT_MAXLINELEN)
+- return 0;
+- i += (cp - buf + 1);
+- buf = cp + 1;
+- }
+ conf->resultBuf = MIME_TEXT_PLAIN;
+ return 1;
+ }
+
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
index 6207fc5c1..7732731f0 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
@@ -2,7 +2,7 @@
%if "%{?version}" == ""
%define version 3.5.12
%endif
-%define release 8
+%define release 10
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
@@ -38,6 +38,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kdelibs-%{version}.tar.gz
+# TDE 3.5.12 patches for RHEL/Fedora build
+## [kdelibs/kio/kio] Removes the maximum line length detection
+Patch0: kdelibs-3.5.13-maxlinelength.patch
+## [kdecore] sets TDE 3.5.12 defaults directories
+Patch1: kdelibs-3.5.12-kstandarddirs_trinity.patch
+## [kdelibs/kdecore] fixed a conflict between fixx11h.h and Xdefs.h
+Patch2: kdelibs-3.5.12-fixx11h.patch
+
BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
@@ -52,6 +60,11 @@ BuildRequires: alsa-lib-devel
BuildRequires: libidn-devel
BuildRequires: qt%{?_qt_suffix}-devel
BuildRequires: avahi-qt3-devel
+BuildRequires: jasper-devel
+BuildRequires: libtiff-devel
+BuildRequires: OpenEXR-devel
+BuildRequires: libtool-ltdl-devel
+BuildRequires: glib2-devel
Requires: tqtinterface
Requires: trinity-arts
@@ -59,8 +72,10 @@ Requires: avahi
Requires: qt%{?_qt_suffix}
Requires: avahi-qt3
+
+#Provides: kdelibs%{?_qt_suffix} = %{version}
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}
+Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10
%endif
%description
@@ -75,8 +90,9 @@ kimgio (image manipulation).
Summary: %{name} - Development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Provides: kdelibs%{?_qt_suffix}-devel = %{version}
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}-devel
+Obsoletes: kdelibs%{?_qt_suffix}-devel <= 3.5.10
%endif
%description devel
@@ -87,19 +103,24 @@ applications for TDE.
Group: Development/Libraries
Summary: %{name} - API documentation
Requires: %{name} = %{version}-%{release}
+Provides: kdelibs%{?_qt_suffix}-apidocs = %{version}
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}-apidocs-devel
+Obsoletes: kdelibs%{?_qt_suffix}-apidocs <= 3.5.10
%endif
%description apidocs
This package includes the TDE API documentation in HTML
format for easy browsing
+
%prep
%setup -q -n kdelibs
+%patch0 -p1
+%patch1 -p1
+%patch2 -p3
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
@@ -111,7 +132,7 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
# On older RHEL, libXrandr is too old so krandr cannot be compiled.
# Kspell2 does not compile either.
-%if 0%{?rhel} && 0%{?rhel} < 6
+%if 0%{?rhel} && 0%{?rhel} <= 5
export DO_NOT_COMPILE="krandr"
%endif
@@ -147,13 +168,22 @@ export DO_NOT_COMPILE="krandr"
%__rm -rf %{?buildroot}
%__make install DESTDIR=%{?buildroot}
-%__mkdir_p %{?buildroot}%{_sysconfdir}/ld.so.conf.d
-cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
%if "%{?_prefix}" != "/usr"
+%__mkdir_p "%{?buildroot}%{_sysconfdir}/ld.so.conf.d"
+cat <<EOF >"%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf"
%{_libdir}
-%endif
-%{tde_libdir}
EOF
+%endif
+
+# Moves the XDG configuration files to TDE directory
+%if "%{_prefix}" != "/usr"
+%__install -p -D -m644 \
+ "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \
+ "%{?buildroot}%{_prefix}/etc/xdg/menus/kde-applications.menu"
+%__rm -rf "%{?buildroot}%{_sysconfdir}/xdg"
+%else
+%__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu"
+%endif
%clean
@@ -167,8 +197,7 @@ EOF
%files
%defattr(-,root,root,-)
-%doc README
-%doc COPYING.LIB
+%doc AUTHORS COPYING* README TODO
%{_bindir}/artsmessage
%{_bindir}/cupsdconf
%{_bindir}/cupsdoprint
@@ -266,10 +295,17 @@ EOF
%exclude %{_datadir}/locale/all_languages
%exclude %{tde_docdir}/HTML/en/common/*
%endif
+# ld.so.conf needed only if installed under '/opt/trinity'
+%if "%{?_prefix}" != "/usr"
%{_sysconfdir}/ld.so.conf.d/trinity.conf
+%endif
-# Provided by 'redhat-menus' package
-%exclude %{_sysconfdir}/xdg/menus/applications.menu
+# Avoid conflict with 'redhat-menus' package
+%if "%{_prefix}" == "/usr"
+%{_sysconfdir}/xdg/menus/kde-applications.menu
+%else
+%{_prefix}/etc/xdg/menus/kde-applications.menu
+%endif
%files devel
%defattr(-,root,root,-)
@@ -289,6 +325,17 @@ EOF
%changelog
+* Fri Dec 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-10
+- Fix conflict with distro-provided KDE
+- Fix HTML directory location
+- Change defaults TDE directory to '/etc/trinity' and '~/.trinity'
+- Removes 'ld.so.conf.d' when installed under '/usr'
+
+* Sun Nov 29 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-9
+- Moves XDG files in TDE prefix to avoid conflict with distro-provided KDE
+- Disable 'max line length' detection
+- Add missing BuildRequires
+
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8
- Add support for RHEL 5.
@@ -318,4 +365,3 @@ EOF
* Wed Dec 14 2010 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0
- Initial version
-
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
index 5c2652f17..21e80ffd8 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
@@ -2,7 +2,7 @@
%if "%{?version}" == ""
%define version 3.5.13
%endif
-%define release 2
+%define release 6
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
@@ -38,6 +38,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kdelibs-%{version}.tar.gz
+## [kdelibs/kio] Disable 'max line length' detection [Bug #656]
+Patch10: kdelibs-3.5.13-maxlinelength.patch
+## [kdelibs/kjs] Enable pcre support in kdelibs [Bug #569]
+Patch11: kdelibs-3.5.13-enable_pcre.patch
+## [kdelibs/kate] Updated syntax highlighting files [Bug #764]
+Patch12: kdelibs-3.5.13-kate_syntax.patch.gz
+## [kdelibs] Adds Inotify support (backport commit 24f144faf98249012e7b1657a5dfe93750f0dfde)
+Patch13: kdelibs-3.5.13-add_inotify_support.patch
+## [kdelibs] Add fam/gamin support to tdelibs CMake (backport commit 2b035349c31fe64c31d2c050892b117a3a807179)
+Patch14: kdelibs-3.5.13-enable_fam_gamin.patch
+
BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
@@ -57,6 +68,7 @@ BuildRequires: libtiff-devel
BuildRequires: OpenEXR-devel
BuildRequires: libtool-ltdl-devel
BuildRequires: glib2-devel
+BuildRequires: gamin-devel
Requires: tqtinterface
Requires: trinity-arts
@@ -64,8 +76,10 @@ Requires: avahi
Requires: qt%{?_qt_suffix}
Requires: avahi-qt3
+
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}
+Provides: kdelibs%{?_qt_suffix} = %{version}
+Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10
%endif
%description
@@ -81,7 +95,8 @@ Summary: %{name} - Development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}-devel
+Provides: kdelibs%{?_qt_suffix}-devel = %{version}
+Obsoletes: kdelibs%{?_qt_suffix}-devel <= 3.5.10
%endif
%description devel
@@ -93,7 +108,8 @@ Group: Development/Libraries
Summary: %{name} - API documentation
Requires: %{name} = %{version}-%{release}
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs%{?_qt_suffix}-apidocs-devel
+Provides: kdelibs%{?_qt_suffix}-apidocs = %{version}
+Obsoletes: kdelibs%{?_qt_suffix}-apidocs <= 3.5.10
%endif
%description apidocs
@@ -103,6 +119,12 @@ format for easy browsing
%prep
%setup -q -n kdelibs
+%patch10 -p1
+%patch11 -p0
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -128,6 +150,9 @@ cd build
-DWITH_AVAHI=ON \
-DWITH_ASPELL=OFF \
-DWITH_HSPELL=OFF \
+ -DWITH_PCRE=ON \
+ -DWITH_INOTIFY=ON \
+ -DWITH_GAMIN=ON \
..
%__make %{?_smp_mflags}
@@ -145,6 +170,16 @@ cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
%{tde_libdir}
EOF
+# Moves the XDG configuration files to TDE directory
+%if "%{_prefix}" != "/usr"
+%__install -p -D -m644 \
+ "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \
+ "%{?buildroot}%{_prefix}/etc/xdg/menus/kde-applications.menu"
+%__rm -rf "%{?buildroot}%{_sysconfdir}/xdg"
+%else
+%__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu"
+%endif
+
%clean
%__rm -rf %{?buildroot}
@@ -258,8 +293,12 @@ EOF
%endif
%{_sysconfdir}/ld.so.conf.d/trinity.conf
-# Provided by 'redhat-menus' package
-%exclude %{_sysconfdir}/xdg/menus/applications.menu
+# Avoid conflict with 'redhat-menus' package
+%if "%{_prefix}" == "/usr"
+%{_sysconfdir}/xdg/menus/kde-applications.menu
+%else
+%{_prefix}/etc/xdg/menus/kde-applications.menu
+%endif
# New in TDE 3.5.13
%{_bindir}/kdetcompmgr
@@ -285,6 +324,21 @@ EOF
%changelog
+* Mon Jan 16 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-6
+- Adds 'fam' and 'gamin' support
+
+* Sat Jan 14 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5
+- Adds 'inotify' support
+
+* Sat Dec 31 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-4
+- Enable pcre support in kdelibs [Bug #569]
+- Updated Kate syntax highlighting files [Bug #764]
+- Disable 'max line length' detection [Bug #656]
+- Add 'Provides: kdelibs3' to avoid installing distro-provided KDE3 libraries
+
+* Sat Nov 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3
+- Moves XDG files in TDE prefix to avoid conflict with distro-provided KDE
+
* Thu Nov 03 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-2
- Add missing BuildRequires
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec~ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec~
deleted file mode 100755
index 4b98b33f9..000000000
--- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec~
+++ /dev/null
@@ -1,264 +0,0 @@
-# Default version for this component
-%if "%{?version}" == ""
-%define version 3.5.13
-%endif
-%define release 0
-
-# 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
-%endif
-
-# TDE 3.5.13 specific variables
-BuildRequires: cmake >= 2.8
-%define tde_docdir %{_docdir}/kde
-%define tde_libdir %{_libdir}/trinity
-
-
-Name: trinity-kdelibs
-Version: %{version}
-Release: %{?release}%{?dist}%{?_variant}
-License: GPL
-Summary: Trinity KDE Libraries
-
-Vendor: Trinity Project
-Packager: Francois Andriot <francois.andriot@free.fr>
-URL: http://www.trinitydesktop.org/
-
-Source0: kdelibs-%{version}.tar.gz
-Prefix: %{_prefix}
-
-BuildRequires: libtool
-BuildRequires: tqtinterface-devel
-BuildRequires: trinity-arts-devel
-BuildRequires: qt3-devel
-BuildRequires: avahi-devel avahi-qt3-devel
-#BuildRequires: lua-devel
-BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel
-BuildRequires: libutempter-devel
-BuildRequires: bzip2-devel
-BuildRequires: openssl-devel
-
-Requires: tqtinterface
-Requires: trinity-arts
-Requires: qt3
-Requires: avahi avahi-qt3
-
-%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs3
-%endif
-
-%description
-Libraries for the Trinity K Desktop Environment
-
-%package devel
-Requires: %{name}
-Summary: %{name} - Development files
-%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs3-devel
-%endif
-
-%description devel
-Development files for %{name}
-
-%package apidocs
-Requires: %{name}
-Summary: %{name} - API documentation
-
-%description apidocs
-This package includes the KDE 3 API documentation in HTML
-format for easy browsing
-
-%prep
-%setup -q -n kdelibs
-
-# Gets the cmake modules in current build directory
-%__mkdir_p cmake/modules
-%__cp -f %{_datadir}/cmake/*.* cmake/modules
-
-
-%build
-unset QTDIR || : ; . /etc/profile.d/qt.sh
-export PATH="%{_bindir}:${PATH}"
-export LD_LIBRARY_PATH="%{_libdir}"
-export PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
-export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt"
-
-%__mkdir build
-cd build
-%cmake \
- -DWITH_ARTS=ON \
- -DWITH_ALSA=ON \
- -DWITH_LIBART=ON \
- -DWITH_LIBIDN=OFF \
- -DWITH_SSL=ON \
- -DWITH_CUPS=ON \
- -DWITH_LUA=OFF \
- -DWITH_TIFF=ON \
- -DWITH_JASPER=ON \
- -DWITH_OPENEXR=ON \
- -DWITH_UTEMPTER=ON \
- -DWITH_AVAHI=ON \
- -DWITH_ASPELL=OFF \
- -DWITH_HSPELL=OFF \
- ..
-
-%__make %{?_smp_mflags}
-
-
-%install
-%__rm -rf %{?buildroot}
-%__mkdir_p %{?buildroot}
-%make_install -C build
-
-%__mkdir_p %{?buildroot}%{_sysconfdir}/ld.so.conf.d
-cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
-%if "%{?_prefix}" != "/usr"
-%{_libdir}
-%endif
-%{_libdir}/trinity
-EOF
-
-%clean
-%__rm -rf %{?buildroot}
-
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-
-%files
-%defattr(-,root,root,-)
-%doc README
-%doc COPYING.LIB
-%{_bindir}/artsmessage
-%{_bindir}/cupsdconf
-%{_bindir}/cupsdoprint
-%{_bindir}/dcop
-%{_bindir}/dcopclient
-%{_bindir}/dcopfind
-%{_bindir}/dcopobject
-%{_bindir}/dcopquit
-%{_bindir}/dcopref
-%{_bindir}/dcopserver
-%{_bindir}/dcopserver_shutdown
-%{_bindir}/dcopstart
-%{_bindir}/filesharelist
-%{_bindir}/fileshareset
-%{_bindir}/imagetops
-%{_bindir}/kab2kabc
-%{_bindir}/kaddprinterwizard
-%{_bindir}/kbuildsycoca
-%{_bindir}/kcmshell
-%{_bindir}/kconf_update
-%{_bindir}/kcookiejar
-%{_bindir}/kde-config
-%{_bindir}/kde-menu
-%{_bindir}/kded
-%{_bindir}/kdeinit
-%{_bindir}/kdeinit_shutdown
-%{_bindir}/kdeinit_wrapper
-%{_bindir}/kdesu_stub
-%{_bindir}/kdontchangethehostname
-%{_bindir}/kdostartupconfig
-%{_bindir}/kfile
-%{_bindir}/kfmexec
-%{_bindir}/khotnewstuff
-%{_bindir}/kinstalltheme
-%{_bindir}/kio_http_cache_cleaner
-%{_bindir}/kio_uiserver
-%{_bindir}/kioexec
-%{_bindir}/kioslave
-%{_bindir}/klauncher
-%{_bindir}/kmailservice
-%{_bindir}/kmimelist
-%attr(4755,root,root) %{_bindir}/kpac_dhcp_helper
-%{_bindir}/ksendbugmail
-%{_bindir}/kshell
-%{_bindir}/kstartupconfig
-%{_bindir}/ktelnetservice
-%{_bindir}/ktradertest
-%{_bindir}/kwrapper
-%{_bindir}/lnusertemp
-%{_bindir}/make_driver_db_cups
-%{_bindir}/make_driver_db_lpr
-%{_bindir}/meinproc
-%{_bindir}/networkstatustestservice
-%{_bindir}/start_kdeinit
-%{_bindir}/start_kdeinit_wrapper
-%attr(4755,root,root) %{_bindir}/kgrantpty
-%{_libdir}/lib*.so.*
-%{_libdir}/libkdeinit_*.so
-%{_libdir}/lib*.la
-%{tde_libdir}/
-%{_datadir}/applications/kde/*.desktop
-%{_datadir}/autostart/kab2kabc.desktop
-%{_datadir}/applnk/kio_iso.desktop
-%{_datadir}/apps/*
-%exclude %{_datadir}/apps/ksgmltools2/
-%config(noreplace) %{_datadir}/config/*
-%{_datadir}/emoticons/*
-%{_datadir}/icons/default.kde
-%{_datadir}/mimelnk/magic
-%{_datadir}/mimelnk/*/*.desktop
-%{_datadir}/services/*
-%{_datadir}/servicetypes/*
-%{_datadir}/icons/crystalsvg/
-%{tde_docdir}/HTML/en/kspell
-# remove conflicts with kdelibs-4
-%if "%{?_prefix}" != "/usr"
-%{_bindir}/checkXML
-%{_bindir}/ksvgtopng
-%{_bindir}/kunittestmodrunner
-%{_bindir}/preparetips
-%{_datadir}/icons/hicolor/index.theme
-%{_datadir}/locale/all_languages
-%{tde_docdir}/HTML/en/common/*
-%else
-%exclude %{_bindir}/checkXML
-%exclude %{_bindir}/ksvgtopng
-%exclude %{_bindir}/kunittestmodrunner
-%exclude %{_bindir}/preparetips
-%exclude %{_datadir}/config/colors
-%exclude %{_datadir}/config/kdebug.areas
-%exclude %{_datadir}/config/kdebugrc
-%exclude %{_datadir}/config/ksslcalist
-%exclude %{_datadir}/config/ui/ui_standards.rc
-%exclude %{_datadir}/icons/hicolor/index.theme
-%exclude %{_datadir}/locale/all_languages
-%exclude %{tde_docdir}/HTML/en/common/*
-%endif
-%{_sysconfdir}/ld.so.conf.d/trinity.conf
-
-# Provided by 'redhat-menus' package
-%exclude %{_sysconfdir}/xdg/menus/applications.menu
-
-# New in TDE 3.5.13
-%{_bindir}/kdetcompmgr
-
-%files devel
-%defattr(-,root,root,-)
-%{_bindir}/dcopidl*
-%{_bindir}/kconfig_compiler
-%{_bindir}/makekdewidgets
-%{_datadir}/apps/ksgmltools2/
-%{_includedir}/
-%{_libdir}/lib*.so
-%{_libdir}/lib*.a
-%exclude %{_libdir}/libkdeinit_*.so
-
-# New in TDE 3.5.13
-%{_datadir}/cmake/kdelibs.cmake
-
-%files apidocs
-%defattr(-,root,root,-)
-%{_docdir}/%{name}-%{version}/
-#%{tde_docdir}/HTML/en/kdelibs*
-
-
-%changelog
-* Wed Sep 02 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13pre.svn20110902-0.el6
-- Import to GIT
-- Built with future TDE version (3.5.13 + cmake + QT3.3.8d)