From 0ed4c9714efe46f5fecccaf2afed819ac3e3fc3c Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sun, 15 Jan 2012 22:01:15 +0100 Subject: RHEL/Fedora: updates kdelibs, kdebase, kdeadmin --- .../kdeadmin/kdeadmin-3.5.13-add_rhel_fedora.patch | 287 +++++++++++++++++++++ redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec | 82 +++--- .../kdebase-3.5.13-enable_xtest_support.patch | 135 ++++++++++ redhat/kdebase/tiles-fixed-png-images.tar.gz | Bin 0 -> 50550 bytes redhat/kdebase/trinity-kdebase-3.5.13.spec | 19 +- .../kdelibs-3.5.13-add_inotify_support.patch | 67 +++++ redhat/kdelibs/trinity-kdelibs-3.5.13.spec | 10 +- 7 files changed, 543 insertions(+), 57 deletions(-) create mode 100644 redhat/kdeadmin/kdeadmin-3.5.13-add_rhel_fedora.patch create mode 100644 redhat/kdebase/kdebase-3.5.13-enable_xtest_support.patch create mode 100644 redhat/kdebase/tiles-fixed-png-images.tar.gz create mode 100644 redhat/kdelibs/kdelibs-3.5.13-add_inotify_support.patch diff --git a/redhat/kdeadmin/kdeadmin-3.5.13-add_rhel_fedora.patch b/redhat/kdeadmin/kdeadmin-3.5.13-add_rhel_fedora.patch new file mode 100644 index 000000000..2ce36a0e2 --- /dev/null +++ b/redhat/kdeadmin/kdeadmin-3.5.13-add_rhel_fedora.patch @@ -0,0 +1,287 @@ +diff -Nuar kdeadmin.ORI/knetworkconf/backends/network-conf.in kdeadmin.P/knetworkconf/backends/network-conf.in +--- kdeadmin.ORI/knetworkconf/backends/network-conf.in 2012-01-11 20:15:15.161715402 +0100 ++++ kdeadmin.P/knetworkconf/backends/network-conf.in 2012-01-11 20:39:21.746715574 +0100 +@@ -63,6 +63,7 @@ + $version = "@VERSION@"; + @platforms = ("redhat-5.2", "redhat-6.0", "redhat-6.1", "redhat-6.2", "redhat-7.0", "redhat-7.1", + "redhat-7.2", "redhat-8.0", "redhat-9", ++ "rhel-5", "rhel-6", + "openna-1.0", + "mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1", "mandrake-9.2", + "mandrake-10.0", "mandrake-10.1","mandrake-10.2", "mandriva-2006.0", +@@ -72,7 +73,7 @@ + "debian-2.2", "debian-3.0", "debian-3.1", "debian-4.0", "debian-5.0", "debian-testing", + "ubuntu-5.04", "ubuntu-5.10", "ubuntu-6.06", "ubuntu-6.10", "ubuntu-7.04", "ubuntu-7.10", "ubuntu-8.04", "ubuntu-8.10", "ubuntu-9.04", "ubuntu-9.10", "ubuntu-10.04", "ubuntu-10.10", + "suse-7.0", "suse-9.0", "suse-9.1", +- "turbolinux-7.0", "fedora-1", "fedora-2", "fedora-3", "fedora-4", "fedora-5", "rpath", ++ "turbolinux-7.0", "fedora-1", "fedora-2", "fedora-3", "fedora-4", "fedora-5", "rpath", "fedora-15", "fedora-16", + "pld-1.0", "pld-1.1", "pld-1.99", + "conectiva-9", "conectiva-10", + "vine-3.0", "vine-3.1", +diff -Nuar kdeadmin.ORI/knetworkconf/backends/network.pl.in kdeadmin.P/knetworkconf/backends/network.pl.in +--- kdeadmin.ORI/knetworkconf/backends/network.pl.in 2012-01-11 20:15:15.161715402 +0100 ++++ kdeadmin.P/knetworkconf/backends/network.pl.in 2012-01-11 20:33:43.120340531 +0100 +@@ -492,6 +492,8 @@ + "redhat-7.2" => "redhat-6.2", + "redhat-8.0" => "redhat-6.2", + "redhat-9" => "redhat-6.2", ++ "rhel-5" => "redhat-6.2", ++ "rhel-6" => "redhat-6.2", + "openna-1.0" => "redhat-6.2", + "debian-2.2" => "debian-2.2", + "debian-3.0" => "debian-2.2", +@@ -538,6 +540,8 @@ + "fedora-3" => "redhat-6.2", + "fedora-4" => "redhat-6.2", + "fedora-5" => "redhat-6.2", ++ "fedora-15" => "redhat-6.2", ++ "fedora-16" => "redhat-6.2", + "rpath" => "redhat-6.2", + "vine-3.0" => "redhat-6.2", + "vine-3.1" => "redhat-6.2", +@@ -1816,6 +1820,8 @@ + "redhat-7.2" => \&gst_network_rh72_get_file, + "redhat-8.0" => \&gst_network_rh72_get_file, + "redhat-9" => \&gst_network_rh72_get_file, ++ "rhel-5" => \&gst_network_rh72_get_file, ++ "rhel-6" => \&gst_network_rh72_get_file, + "openna-1.0" => \&gst_network_rh62_get_file, + "mandrake-7.2" => \&gst_network_rh62_get_file, + "mandrake-7.1" => \&gst_network_rh62_get_file, +@@ -1863,6 +1869,8 @@ + "fedora-3" => \&gst_network_rh72_get_file, + "fedora-4" => \&gst_network_rh72_get_file, + "fedora-5" => \&gst_network_rh72_get_file, ++ "fedora-15" => \&gst_network_rh72_get_file, ++ "fedora-16" => \&gst_network_rh72_get_file, + "rpath" => \&gst_network_rh72_get_file, + "vine-3.0" => \&gst_network_rh62_get_file, + "vine-3.1" => \&gst_network_rh62_get_file, +@@ -3961,6 +3969,8 @@ + "redhat-7.2" => "lo", + "redhat-8.0" => "lo", + "redhat-9" => "", ++ "rhel-5" => "", ++ "rhel-6" => "", + "openna-1.0" => "lo", + "mandrake-7.1" => "lo", + "mandrake-7.2" => "lo", +@@ -4008,6 +4018,8 @@ + "fedora-3" => "", + "fedora-4" => "", + "fedora-5" => "", ++ "fedora-15" => "", ++ "fedora-16" => "", + "rpath" => "", + "vine-3.0" => "lo", + "vine-3.1" => "lo", +@@ -4150,6 +4162,8 @@ + "redhat-7.2" => "redhat-7.2", + "redhat-8.0" => "redhat-7.2", + "redhat-9" => "redhat-7.2", ++ "rhel-5" => "redhat-7.2", ++ "rhel-6" => "redhat-7.2", + "openna-1.0" => "redhat-6.2", + "mandrake-7.1" => "redhat-6.2", + "mandrake-7.2" => "redhat-6.2", +@@ -4197,6 +4211,8 @@ + "fedora-3" => "redhat-7.2", + "fedora-4" => "redhat-7.2", + "fedora-5" => "redhat-7.2", ++ "fedora-15" => "redhat-7.2", ++ "fedora-16" => "redhat-7.2", + "rpath" => "redhat-7.2", + "vine-3.0" => "redhat-7.0", + "vine-3.1" => "redhat-7.0", +@@ -4585,6 +4604,8 @@ + "redhat-7.2" => "redhat-7.2", + "redhat-8.0" => "redhat-8.0", + "redhat-9" => "redhat-8.0", ++ "rhel-5" => "redhat-8.0", ++ "rhel-6" => "redhat-8.0", + "openna-1.0" => "redhat-6.2", + "mandrake-7.1" => "redhat-6.2", + "mandrake-7.2" => "redhat-6.2", +@@ -4632,6 +4650,8 @@ + "fedora-3" => "redhat-7.2", + "fedora-4" => "redhat-7.2", + "fedora-5" => "redhat-7.2", ++ "fedora-15" => "redhat-7.2", ++ "fedora-16" => "redhat-7.2", + "rpath" => "redhat-7.2", + "vine-3.0" => "vine-3.0", + "vine-3.1" => "vine-3.0", +@@ -5445,6 +5465,8 @@ + "redhat-7.2" => "redhat-7.2", + "redhat-8.0" => "redhat-7.2", + "redhat-9" => "redhat-7.2", ++ "rhel-5" => "redhat-7.2", ++ "rhel-6" => "redhat-7.2", + "mandrake-7.1" => "redhat-6.2", + "mandrake-7.2" => "redhat-6.2", + "mandrake-9.0" => "redhat-7.0", +@@ -5491,6 +5513,8 @@ + "fedora-3" => "redhat-7.2", + "fedora-4" => "redhat-7.2", + "fedora-5" => "redhat-7.2", ++ "fedora-15" => "redhat-7.2", ++ "fedora-16" => "redhat-7.2", + "rpath" => "redhat-7.2", + "vine-3.0" => "redhat-7.0", + "vine-3.1" => "redhat-7.0", +@@ -5872,6 +5896,8 @@ + "redhat-7.2" => "redhat-7.2", + "redhat-8.0" => "redhat-8.0", + "redhat-9" => "redhat-8.0", ++ "rhel-5" => "redhat-8.0", ++ "rhel-6" => "redhat-8.0", + "mandrake-7.1" => "redhat-6.2", + "mandrake-7.2" => "redhat-6.2", + "mandrake-9.0" => "mandrake-9.0", +@@ -5918,6 +5944,8 @@ + "fedora-3" => "redhat-7.2", + "fedora-4" => "redhat-7.2", + "fedora-5" => "redhat-7.2", ++ "fedora-15" => "redhat-7.2", ++ "fedora-16" => "redhat-7.2", + "rpath" => "redhat-7.2", + "vine-3.0" => "vine-3.0", + "vine-3.1" => "vine-3.0", +diff -Nuar kdeadmin.ORI/knetworkconf/backends/platform.pl.in kdeadmin.P/knetworkconf/backends/platform.pl.in +--- kdeadmin.ORI/knetworkconf/backends/platform.pl.in 2012-01-11 20:15:15.161715402 +0100 ++++ kdeadmin.P/knetworkconf/backends/platform.pl.in 2012-01-11 20:38:27.401468302 +0100 +@@ -71,6 +71,8 @@ + "redhat-7.3" => "Red Hat Linux 7.3 Valhalla", + "redhat-8.0" => "Red Hat Linux 8.0 Psyche", + "redhat-9" => "Red Hat Linux 9.0 Shrike", ++ "rhel-5" => "Enterprise Linux 5", ++ "rhel-6" => "Enterprise Linux 6", + "openna-1.0" => "OpenNA Linux 1.0 VSLC", + "mandrake-7.1" => "Linux Mandrake 7.1", + "mandrake-7.2" => "Linux Mandrake 7.2 Odyssey", +@@ -116,6 +118,8 @@ + "fedora-3" => "Fedora Core 3 (Heidelberg)", + "fedora-4" => "Fedora Core 4 (Stentz)", + "fedora-5" => "Fedora Core 5 (Bordeaux)", ++ "fedora-15" => "Fedora 15 (LoveLock)", ++ "fedora-16" => "Fedora 16 (Verne)", + "rpath" => "rPath Linux", + "ark" => "Ark Linux", + }; +@@ -184,6 +188,27 @@ + return -1; + } + ++sub check_rhel ++{ ++ open RELEASE, "$gst_prefix/etc/redhat-release" or return -1; ++ while () ++ { ++ chomp; ++ if ( ++ (/^CentOS release (\d)([\d\.]+)\s+.*/) ++ or (/^Scientific Linux release (\d)([\d\.]+)\s+.*/) ++ or (/^Red Hat Enterprise Linux \w release (\d)([\d\.]+)\s+.*/) ++ ) ++ { ++ close RELEASE; ++ return "rhel-$1"; ++ } ++ } ++ close RELEASE; ++ return -1; ++} ++ ++ + sub check_openna + { + open OPENNA, "$gst_prefix/etc/openna-release" or return -1; +@@ -577,7 +602,7 @@ + my %check = ( + # Red Hat check must run after Vine, Mandrake and Fedora, and Mandrake after BlackPanther + "Linux" => [ \&check_lsb, \&check_debian, \&check_caldera, \&check_suse, \&check_blackpanther, \&check_vine, +- \&check_fedora, \&check_mandrake, \&check_mandriva, \&check_conectiva, \&check_linuxppc, \&check_redhat, \&check_openna, ++ \&check_fedora, \&check_mandrake, \&check_mandriva, \&check_conectiva, \&check_linuxppc, \&check_rhel, \&check_redhat, \&check_openna, + \&check_turbolinux, \&check_slackware, \&check_vlos, \&check_gentoo, \&check_pld, \&check_rpath, \&check_archlinux, \&check_ark ], + "FreeBSD" => [ \&check_freebsd ], + "SunOS" => [ \&check_solaris ] +diff -Nuar kdeadmin.ORI/knetworkconf/backends/service.pl.in kdeadmin.P/knetworkconf/backends/service.pl.in +--- kdeadmin.ORI/knetworkconf/backends/service.pl.in 2012-01-11 20:15:15.160715344 +0100 ++++ kdeadmin.P/knetworkconf/backends/service.pl.in 2012-01-11 20:21:36.452645160 +0100 +@@ -59,6 +59,9 @@ + "redhat-8.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "redhat-9" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "openna-1.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], ++ ++ "rhel-5" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], ++ "rhel-6" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + + "mandrake-7.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "mandrake-7.2" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], +@@ -110,6 +113,9 @@ + "fedora-5" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "rpath" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + ++ "fedora-15" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], ++ "fedora-16" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], ++ + "vine-3.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "vine-3.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "ark" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], +@@ -139,6 +145,9 @@ + "redhat-9" => [3, 5], + "openna-1.0" => [3, 5], + ++ "rhel-5" => [3, 5], ++ "rhel-6" => [3, 5], ++ + "mandrake-7.1" => [3, 5], + "mandrake-7.2" => [3, 5], + "mandrake-9.0" => [3, 5], +@@ -189,6 +198,9 @@ + "fedora-4" => [3, 5], + "fedora-5" => [3, 5], + "rpath" => [3, 5], ++ ++ "fedora-15" => [3, 5], ++ "fedora-16" => [3, 5], + + "vine-3.0" => [3, 5], + "vine-3.1" => [3, 5], +@@ -218,6 +230,9 @@ + "redhat-9" => "redhat-5.2", + "openna-1.0" => "redhat-5.2", + ++ "rhel-5" => "redhat-5.2", ++ "rhel-6" => "redhat-5.2", ++ + "mandrake-7.1" => "redhat-5.2", + "mandrake-7.2" => "redhat-5.2", + "mandrake-9.0" => "redhat-5.2", +@@ -267,6 +282,9 @@ + "fedora-5" => "redhat-5.2", + "rpath" => "redhat-5.2", + ++ "fedora-15" => "redhat-5.2", ++ "fedora-16" => "redhat-5.2", ++ + "vine-3.0" => "redhat-5.2", + "vine-3.1" => "redhat-5.2", + "ark" => "redhat-5.2", +@@ -1744,12 +1762,16 @@ + "redhat-7.3" => \&gst_service_redhat_get_status, + "redhat-8.0" => \&gst_service_redhat_get_status, + "redhat-9" => \&gst_service_redhat_get_status, ++ "rhel-5" => \&gst_service_redhat_get_status, ++ "rhel-6" => \&gst_service_redhat_get_status, + "mandrake-7.2" => \&gst_service_redhat_get_status, + "fedora-1" => \&gst_service_redhat_get_status, + "fedora-2" => \&gst_service_redhat_get_status, + "fedora-3" => \&gst_service_redhat_get_status, + "fedora-4" => \&gst_service_redhat_get_status, + "fedora-5" => \&gst_service_redhat_get_status, ++ "fedora-15" => \&gst_service_redhat_get_status, ++ "fedora-16" => \&gst_service_redhat_get_status, + + "rpath" => \&gst_service_redhat_get_status, + diff --git a/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec index e77e8e17b..dd52c4543 100644 --- a/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec +++ b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec @@ -2,38 +2,35 @@ %if "%{?version}" == "" %define version 3.5.13 %endif -%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.12 specific building variables +# TDE 3.5.13 specific building variables BuildRequires: autoconf automake libtool m4 %define tde_docdir %{_docdir}/kde %define tde_includedir %{_includedir}/kde %define tde_libdir %{_libdir}/trinity -%define console_helper 1 +Name: trinity-kdeadmin +Summary: Administrative tools for TDE +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} -Name: trinity-kdeadmin -Summary: Administrative tools for TDE -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +License: GPLv2 +Group: User Interface/Desktops +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -License: GPLv2 -Group: User Interface/Desktops -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Vendor: Trinity Project +Packager: Francois Andriot +URL: http://www.trinitydesktop.org/ -Vendor: Trinity Project -Packager: Francois Andriot -URL: http://www.trinitydesktop.org/ - -Prefix: %{_prefix} -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Prefix: %{_prefix} Source0: kdeadmin-%{version}.tar.gz Source1: kuser.pam @@ -42,11 +39,12 @@ Source5: kpackagerc Source6: ksysvrc Source7: kuserrc +# [kdeadmin/knetworkconf] Add RHEL 5, RHEL 6, Fedora 15, Fedora 16 +Patch0: kdeadmin-3.5.13-add_rhel_fedora.patch + Requires: trinity-kdelibs Requires: pkgconfig -%if 0%{?console_helper} Requires: usermode-gtk -%endif BuildRequires: trinity-kdelibs-devel BuildRequires: rpm-devel @@ -59,13 +57,7 @@ kcron, kdat, knetworkconf, kpackage, ksysv, kuser. %prep %setup -q -n kdeadmin - -%if 0%{?rhel} > 1 - echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kpackage"' >kpackage/configure.in.in - echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE ksysv"' >ksysv/configure.in.in - echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kuser"' >kuser/configure.in.in - echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE lilo-config"' >lilo-config/configure.in.in -%endif +%patch0 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! @@ -83,10 +75,6 @@ unset QTDIR || : ; . /etc/profile.d/qt.sh export PATH="%{_bindir}:${PATH}" export LDFLAGS="-L%{_libdir} -I%{_includedir}" -%if 0%{?fedora} > 0 -export CXXFLAGS="${CXXFLAGS} -fpermissive" -%endif - %configure \ --enable-new-ldflags \ --disable-dependency-tracking \ @@ -104,27 +92,19 @@ export PATH="%{_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%if 0%{?rhel} > 1 -comps="kcron kdat knetworkconf" -rm -rf %{buildroot}%{tde_docdir}/HTML/en/kuser \ - %{buildroot}%{tde_docdir}/HTML/en/kpackage \ - %{buildroot}%{tde_docdir}/HTML/en/ksysv \ - %{buildroot}%{tde_docdir}/HTML/en/lilo-config -%else comps="kcron kdat knetworkconf kpackage ksysv kuser" -mkdir -p %{buildroot}%{_datadir}/config \ - %{buildroot}/etc/security/console.apps \ - %{buildroot}/etc/pam.d \ - %{buildroot}%{_sbindir} +%__mkdir_p %{buildroot}%{_datadir}/config \ + %{buildroot}/etc/security/console.apps \ + %{buildroot}/etc/pam.d \ + %{buildroot}%{_sbindir} -install -p -m644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_datadir}/config/ +%__install -p -m644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_datadir}/config/ # Run kuser through consolehelper -install -p -m644 %{SOURCE1} %{buildroot}/etc/security/console.apps/kuser -install -p -m644 %{SOURCE2} %{buildroot}/etc/pam.d/kuser -mv %{buildroot}%{_bindir}/kuser %{buildroot}%{_sbindir} -ln -s consolehelper %{buildroot}%{_bindir}/kuser -%endif +%__install -p -m644 %{SOURCE1} %{buildroot}/etc/security/console.apps/kuser +%__install -p -m644 %{SOURCE2} %{buildroot}/etc/pam.d/kuser +%__mv %{buildroot}%{_bindir}/kuser %{buildroot}%{_sbindir} +%__ln_s consolehelper %{buildroot}%{_bindir}/kuser # locale's %find_lang %{name} || touch %{name}.lang @@ -175,14 +155,12 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %doc AUTHORS COPYING README %doc rpmdocs/* %{_bindir}/* -%if 0%{?rhel} < 1 %{_sbindir}/* %config(noreplace) /etc/pam.d/* %config(noreplace) /etc/security/console.apps/* %{_datadir}/config*/* %{_datadir}/mimelnk/*/*.desktop %{_datadir}/icons/crystalsvg/*/*/* -%endif %{_datadir}/apps/* %{_datadir}/applications/kde/*.desktop %{_datadir}/icons/hicolor/*/*/* @@ -193,6 +171,12 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %changelog +* Wed Jan 11 2012 Francois Andriot - 3.5.13-3 +- Add knetworkconf support for RHEL 5, RHEL 6, Fedora 15, Fedora 16 +- Remove 'consolehelper' macro +- Enables all kdeadmin components in RHEL (no more exclude some tools) +- Spec file cleanup + * Fri Nov 25 2011 Francois Andriot - 3.5.13-2 - Fix HTML directory location diff --git a/redhat/kdebase/kdebase-3.5.13-enable_xtest_support.patch b/redhat/kdebase/kdebase-3.5.13-enable_xtest_support.patch new file mode 100644 index 000000000..cec848973 --- /dev/null +++ b/redhat/kdebase/kdebase-3.5.13-enable_xtest_support.patch @@ -0,0 +1,135 @@ +commit 45fb5561be6e828c78180c781f74d0ae9d1c3ea4 +Author: Timothy Pearson +Date: 1326230757 -0600 + + Enable xtest support flag + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b832a92..f4d11ac 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -65,6 +65,7 @@ option( WITH_XRANDR "Enable xrandr support" OFF ) + option( WITH_XRENDER "Enable xrender support" OFF ) + option( WITH_XDAMAGE "Enable xdamage support" OFF ) + option( WITH_XEXT "Enable xext support" OFF ) ++option( WITH_XTEST "Enable xext support" OFF ) + option( WITH_LIBUSB "Enable control of some mouse models through libusb" OFF ) + option( WITH_LIBRAW1394 "Enable visualization of ieee1394 devices through libraw1394" OFF ) + option( WITH_SUDO_KDESU_BACKEND "Use sudo as backend for kdesu (default is su)" OFF ) +diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake +index 7b7a1b4..df892e1 100644 +--- a/ConfigureChecks.cmake ++++ b/ConfigureChecks.cmake +@@ -100,12 +100,25 @@ endif( ) + # xext (kwin/kompmgr) + if( WITH_XEXT ) + pkg_search_module( XEXT xext ) +- if( NOT XEXT_FOUND ) ++ if( XEXT_FOUND ) ++ set( HAVE_XEXT 1 ) ++ else( XEXT_FOUND ) + tde_message_fatal( "xext is requested, but was not found on your system" ) + endif( ) + endif( ) + + ++# xtest (kxkb) ++if( WITH_XTEST ) ++ pkg_search_module( XTEST xtst ) ++ if( XTEST_FOUND ) ++ set( HAVE_XTEST 1 ) ++ else( XTEST_FOUND ) ++ tde_message_fatal( "xtest is requested, but was not found on your system" ) ++ endif( ) ++endif( ) ++ ++ + # GL + if( BUILD_KDESKTOP OR BUILD_KCONTROL OR BUILD_KSCREENSAVER ) + check_library_exists( GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL ) +diff --git a/config.h.cmake b/config.h.cmake +index d72a96c..a8de2fa 100644 +--- a/config.h.cmake ++++ b/config.h.cmake +@@ -18,6 +18,9 @@ + // konsole, kdm, kxkb + #cmakedefine HAVE_XKB 1 + ++// kxkb ++#cmakedefine HAVE_XTEST 1 ++ + // kdm, kioslave + #cmakedefine HAVE_TERMIOS_H 1 + +diff --git a/kxkb/CMakeLists.txt b/kxkb/CMakeLists.txt +index 703591a..f36a003 100644 +--- a/kxkb/CMakeLists.txt ++++ b/kxkb/CMakeLists.txt +@@ -22,6 +22,7 @@ include_directories( + + link_directories( + ${TQT_LIBRARY_DIRS} ++ ${XTEST_LIBDIR} + ) + + +@@ -39,7 +40,7 @@ tde_add_kpart( kcm_keyboard AUTOMOC + extension.cpp x11helper.cpp rules.cpp kxkbconfig.cpp + pixmap.cpp kcmlayout.cpp kcmlayoutwidget.ui + kcmmisc.cpp kcmmiscwidget.ui +- LINK kio-shared xkbfile ++ LINK kio-shared xkbfile ${XTEST_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} + ) + +diff --git a/kxkb/kcmmisc.cpp b/kxkb/kcmmisc.cpp +index b4c18a4..8850d89 100644 +--- a/kxkb/kcmmisc.cpp ++++ b/kxkb/kcmmisc.cpp +@@ -344,6 +344,21 @@ int xkb_set_off() + return 1; + } + ++int xkb_state() ++ { ++ unsigned int mask; ++ unsigned int numlockState; ++ XkbStateRec xkbState; ++ if( !xkb_init()) ++ return 0; ++ mask = xkb_numlock_mask(); ++ if( mask == 0 ) ++ return 0; ++ XkbGetState( dpy, XkbUseCoreKbd, &xkbState); ++ numlockState = xkbState.locked_mods & mask; ++ return numlockState; ++ } ++ + int xkb_toggle() + { + unsigned int mask; +@@ -443,7 +458,14 @@ void numlock_toggle() + return; + #endif + #ifdef HAVE_XTEST ++#ifdef HAVE_XKB ++ if (xkb_state()) ++ xtest_set_on(); ++ else ++ xtest_set_off(); ++#else // HAVE_XKB + xtest_toggle(); ++#endif // HAVE_XKB + #endif + } + // This code is taken from xset utility from XFree 4.3 (http://www.xfree86.org/) +--- kdebase/khotkeys/shared/CMakeLists.txt.ORI 2012-01-14 21:49:34.423813010 +0100 ++++ kdebase/khotkeys/shared/CMakeLists.txt 2012-01-14 21:53:23.915008098 +0100 +@@ -36,6 +36,6 @@ + tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 +- LINK kio-shared ++ LINK kio-shared ${XTEST_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} + ) diff --git a/redhat/kdebase/tiles-fixed-png-images.tar.gz b/redhat/kdebase/tiles-fixed-png-images.tar.gz new file mode 100644 index 000000000..67b5226d6 Binary files /dev/null and b/redhat/kdebase/tiles-fixed-png-images.tar.gz differ diff --git a/redhat/kdebase/trinity-kdebase-3.5.13.spec b/redhat/kdebase/trinity-kdebase-3.5.13.spec index cef831805..bc99f494d 100644 --- a/redhat/kdebase/trinity-kdebase-3.5.13.spec +++ b/redhat/kdebase/trinity-kdebase-3.5.13.spec @@ -47,11 +47,8 @@ Source3: pamd.kdm-trinity-np%{?dist} Source4: pamd.kcheckpass-trinity%{?dist} Source5: pamd.kscreensaver-trinity%{?dist} -# TDE Official patches (from SVN), unmodified -# (none) - -# TDE Official patches (from SVN), modified -# (none) +# [kdebase] Fix corrupted PNG images [Bug #298] +Source6: tiles-fixed-png-images.tar.gz # TDE unofficial patches, fixing FTBFS ## [kdebase/kioslave/media/mediamanager] FTBFS missing dbus-tqt includes @@ -100,6 +97,8 @@ Patch28: kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch Patch29: kdebase-3.5.13-fix_multihead_desktop_lock.patch ## [kdebase/kdm/kfrontend] Allows to hide KDM menu button Patch30: kdebase-3.5.12-kdm_hide_menu_button.patch +## [kdebase/kxkb] Enables xtest support +Patch31: kdebase-3.5.13-enable_xtest_support.patch # Fedora 15 Theme: "Lovelock" %if 0%{?fedora} == 15 @@ -279,6 +278,8 @@ Protocol handlers (KIOslaves) for personal information management, including: %prep %setup -q -n kdebase +%__tar xfz %{SOURCE6} -C kicker/data/tiles + %patch7 -p1 %patch8 -p1 %patch9 -p1 @@ -304,6 +305,7 @@ Protocol handlers (KIOslaves) for personal information management, including: %patch28 -p0 %patch29 -p0 %patch30 -p1 +%patch31 -p1 # Applies an optional distro-specific graphical theme %if "%{?tde_bg}" != "" @@ -360,6 +362,7 @@ cd build -DWITH_XRENDER=ON \ -DWITH_XDAMAGE=ON \ -DWITH_XEXT=ON \ + -DWITH_XTEST=ON \ -DWITH_LIBUSB=ON \ -DWITH_LIBRAW1394=ON \ -DWITH_PAM=ON \ @@ -689,8 +692,10 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %{_datadir}/cmake/*.cmake %changelog -* The Jan 05 2012 Francois Andriot - 3.5.13-15 -- Add KDM option to hide 'Menu' button on login prompt +* Thu Jan 05 2012 Francois Andriot - 3.5.13-15 +- Add a KDM option to hide 'Menu' button on login prompt +- Fix corrupted PNG tiles [Bug #298] +- Adds 'xtest' support * Mon Jan 02 2012 Francois Andriot - 3.5.13-14 - Fix Konqueror Icon Activation Effect [Bug #335] 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 +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 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 header file. */ + #cmakedefine HAVE_SYS_MMAN_H 1 diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec index b9698c448..ccafc358b 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 4 +%define release 5 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?_prefix}" != "/usr" @@ -44,6 +44,8 @@ Patch10: kdelibs-3.5.13-maxlinelength.patch 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 from commit 24f144faf98249012e7b1657a5dfe93750f0dfde) +Patch13: kdelibs-3.5.13-add_inotify_support.patch BuildRequires: libtool BuildRequires: tqtinterface-devel @@ -117,6 +119,7 @@ format for easy browsing %patch10 -p1 %patch11 -p0 %patch12 -p1 +%patch13 -p1 %build @@ -144,6 +147,8 @@ cd build -DWITH_ASPELL=OFF \ -DWITH_HSPELL=OFF \ -DWITH_PCRE=ON \ + -DWITH_INOTIFY=ON \ + -DWITH_XTEST=ON \ .. %__make %{?_smp_mflags} @@ -315,6 +320,9 @@ EOF %changelog +* Sat Jan 14 2012 Francois Andriot - 3.5.13-5 +- Adds 'inotify' support + * Sat Dec 31 2011 Francois Andriot - 3.5.13-4 - Enable pcre support in kdelibs [Bug #569] - Updated Kate syntax highlighting files [Bug #764] -- cgit v1.2.1