summaryrefslogtreecommitdiffstats
path: root/redhat/tdebase
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-11-16 12:52:44 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2013-11-16 12:52:44 +0100
commit1b4d42e2cb9b924e3a8a809c3cfe74d56fedb38c (patch)
tree2460b35d87dd3ae6cf135d0459d557bd8d592e67 /redhat/tdebase
parentaa051be452bad87dc5bf8ac7ee26a7bafb555f74 (diff)
downloadtde-packaging-1b4d42e2cb9b924e3a8a809c3cfe74d56fedb38c.tar.gz
tde-packaging-1b4d42e2cb9b924e3a8a809c3cfe74d56fedb38c.zip
RPM Packaging: update R14 main packages
Diffstat (limited to 'redhat/tdebase')
-rw-r--r--redhat/tdebase/tdebase-14.0.0.spec34
1 files changed, 29 insertions, 5 deletions
diff --git a/redhat/tdebase/tdebase-14.0.0.spec b/redhat/tdebase/tdebase-14.0.0.spec
index c5deaff0e..2a995a7b8 100644
--- a/redhat/tdebase/tdebase-14.0.0.spec
+++ b/redhat/tdebase/tdebase-14.0.0.spec
@@ -90,7 +90,6 @@ Patch4: tdebase-14.0.0-kickoff_default_favs.patch
Patch5: tdebase-14.0.0-konsole_wordseps.patch
# Permanent patches, this TDE version only
-# None !
# Patches from Mandriva
Patch101: tdebase-14.0.0-vibrate_dialog.patch
@@ -105,6 +104,9 @@ Patch201: tdebase-14.0.0-kcm_xcursor_applytheme.patch
## [tdebase] Fix i18n description loading in 'twin_update_default_rules'
Patch202: tdebase-14.0.0-fix_twin_rules_translation.patch
+Patch203: tdebase-14.0.0-tdehardwarebackend_fix_iocharset.patch
+
+
### Distribution-specific settings ###
# Fedora 15 Theme: "Lovelock"
@@ -164,7 +166,6 @@ Requires: fedora-release-notes
%define tde_aboutpage /usr/share/doc/fedora-release-notes-19/index.html
%endif
-
# RHEL 4 Theme
%if 0%{?rhel} == 4
Requires: desktop-backgrounds-basic
@@ -457,18 +458,24 @@ BuildRequires: libsmbclient-devel
BuildRequires: imake
%endif
+# XKB support
+%if 0%{?suse_version} == 1140
+BuildRequires: xorg-x11-libxkbfile-devel
+%endif
+%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} >= 1210
+BuildRequires: libxkbfile-devel
+%endif
+
# X11 stuff ...
%if 0%{?rhel} == 4
BuildRequires: xorg-x11-devel
%endif
%if 0%{?suse_version} == 1140
-BuildRequires: xorg-x11-libxkbfile-devel
BuildRequires: xorg-x11-libfontenc-devel
%endif
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} >= 1220
-BuildRequires: libxkbfile-devel
BuildRequires: libfontenc-devel
%endif
@@ -602,7 +609,7 @@ This is a meta-package that installs all tdebase development packages.
Header files for developing applications using %{name}.
Install tdebase-devel if you want to develop or compile Konqueror,
-Kate plugins or KWin styles.
+Kate plugins or TWin styles.
%files devel
%defattr(-,root,root,-)
@@ -3263,6 +3270,8 @@ Windows and Samba shares.
%patch201 -p1 -b .kcmxcursor
%patch202 -p1 -b .twintranslation
+%patch203 -p1 -b .iocharset
+
# Applies an optional distro-specific graphical theme
%if "%{?tde_bg}" != ""
# TDM Background
@@ -3302,6 +3311,21 @@ Windows and Samba shares.
%__sed -i "tdm/kfrontend/gentdmconf.c" -e "s|/etc/X11/Xsession|/etc/X11/xdm/Xsession|"
%endif
+# Reboot command location may vary on some distributions
+if [ -x "/usr/bin/reboot" ]; then
+ POWEROFF="/usr/bin/poweroff"
+ REBOOT="/usr/bin/reboot"
+fi
+if [ -n "${REBOOT}" ]; then
+ %__sed -i \
+ "doc/tdm/index.docbook" \
+ "doc/kcontrol/tdm/index.docbook" \
+ "kcontrol/tdm/tdm-shut.cpp" \
+ "tdm/config.def" \
+ -e "s|/sbin/poweroff|${POWEROFF}|g" \
+ -e "s|/sbin/reboot|${REBOOT}|g"
+fi
+
%build
unset QTDIR QTINC QTLIB