summaryrefslogtreecommitdiffstats
path: root/redhat/kdelibs
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2011-12-14 15:50:42 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2011-12-14 15:50:42 -0500
commitfc98476aef6bf17768cfc0450bd25ac967d01834 (patch)
tree7411b50fd18336185de9fb8520fd9154822020b4 /redhat/kdelibs
parentcc3f13111c121c8a39b9937bb2e1bf00207c9df0 (diff)
parente9bf572672fe20775479a10b426d32379f4185d0 (diff)
downloadtde-packaging-fc98476aef6bf17768cfc0450bd25ac967d01834.tar.gz
tde-packaging-fc98476aef6bf17768cfc0450bd25ac967d01834.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
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
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.12.spec38
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec3
4 files changed, 78 insertions, 13 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/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
index 30cb449a1..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 9
+%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"
@@ -37,7 +37,14 @@ Prefix: %{_prefix}
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
@@ -66,7 +73,7 @@ Requires: qt%{?_qt_suffix}
Requires: avahi-qt3
-Provides: kdelibs%{?_qt_suffix} = %{version}
+#Provides: kdelibs%{?_qt_suffix} = %{version}
%if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10
%endif
@@ -109,6 +116,8 @@ 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/config/ltmain.sh" "admin/ltmain.sh"
@@ -123,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
@@ -159,13 +168,12 @@ 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"
@@ -189,8 +197,7 @@ EOF
%files
%defattr(-,root,root,-)
-%doc README
-%doc COPYING.LIB
+%doc AUTHORS COPYING* README TODO
%{_bindir}/artsmessage
%{_bindir}/cupsdconf
%{_bindir}/cupsdoprint
@@ -288,7 +295,10 @@ 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
# Avoid conflict with 'redhat-menus' package
%if "%{_prefix}" == "/usr"
@@ -315,11 +325,16 @@ EOF
%changelog
-* Sun Nov 29 2911 Francois Andriot <francois.andriot@free.fr> - 3.5.12-9
+* 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
-- Disable 'max line length' detection
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8
- Add support for RHEL 5.
@@ -350,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 faea11948..827a2523d 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
@@ -66,7 +66,7 @@ Requires: qt%{?_qt_suffix}
Requires: avahi-qt3
-Provides: kdelibs%{?_qt_suffix} = %{version}
+#Provides: kdelibs%{?_qt_suffix} = %{version}
%if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10
%endif
@@ -111,6 +111,7 @@ format for easy browsing
%patch0 -p1
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"