summaryrefslogtreecommitdiffstats
path: root/redhat/tdebase
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-05 23:07:57 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-05 23:07:57 +0200
commit01a7863524342e1aec31679e55d08830cc571066 (patch)
tree5378be62edc25c67414854a97248e06432e237d5 /redhat/tdebase
parent0f7e2f11d7315e9d6f28561ac2aef93236d0f266 (diff)
downloadtde-packaging-01a7863524342e1aec31679e55d08830cc571066.tar.gz
tde-packaging-01a7863524342e1aec31679e55d08830cc571066.zip
RPM Packaging: update tdebase
Diffstat (limited to 'redhat/tdebase')
-rw-r--r--redhat/tdebase/tdebase-14.0.0.spec29
1 files changed, 21 insertions, 8 deletions
diff --git a/redhat/tdebase/tdebase-14.0.0.spec b/redhat/tdebase/tdebase-14.0.0.spec
index 29436aa39..d5ee98490 100644
--- a/redhat/tdebase/tdebase-14.0.0.spec
+++ b/redhat/tdebase/tdebase-14.0.0.spec
@@ -564,10 +564,8 @@ BuildRequires: %{_lib}xcomposite%{?mgaversion:1}-devel
BuildRequires: libXcomposite-devel
%endif
-# Other X11 stuff ...
-%if 0%{?rhel} == 4
-BuildRequires: xorg-x11-devel
-%endif
+# Requires 'usb.ids'
+BuildRequires: usbutils
# LIBFONTENC support
%if 0%{?suse_version} == 1140
@@ -577,6 +575,11 @@ BuildRequires: xorg-x11-libfontenc-devel
BuildRequires: libfontenc-devel
%endif
+# Other X11 stuff ...
+%if 0%{?rhel} == 4
+BuildRequires: xorg-x11-devel
+%endif
+
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: x11-font-util
BuildRequires: x11-proto-devel
@@ -2151,6 +2154,9 @@ already. Most users won't need this.
%{tde_datadir}/apps/tdm/themes/
%{tde_datadir}/config/tdm
%dir %{_sysconfdir}/trinity/tdm
+%if 0%{?with_selinux_policy}
+%exclude %{?_sysconfdir}/trinity/tdm/tdm.pp
+%endif
%config(noreplace) %{_sysconfdir}/trinity/tdm/*
%{tde_tdedocdir}/HTML/en/tdm/
%if 0%{?suse_version} == 0
@@ -2199,17 +2205,24 @@ if [ -d "%{tde_datadir}/config/tdm" ] && [ ! -L "%{tde_datadir}/config/tdm" ]; t
if [ -d "%{_sysconfdir}/trinity/tdm" ]; then
# If there is already something under '/etc/trinity/tdm', simply delete old configuration
echo "Deleting TDM configuration under '%{tde_datadir}/config/tdm'"
- %__rm -rf "%{tde_datadir}/config/tdm"
+ rm -rf "%{tde_datadir}/config/tdm"
else
# Else, move '/opt/trinity/share/config/tdm' to '/etc/trinity/tdm'
if [ ! -d "%{_sysconfdir}/trinity" ]; then
- %__mkdir_p "%{_sysconfdir}/trinity"
+ mkdir -p "%{_sysconfdir}/trinity"
fi
echo "Migrating TDM configuration from '%{tde_datadir}/config/tdm' to '%{_sysconfdir}/trinity/tdm'"
- %__mv -f "%{tde_datadir}/config/tdm" "%{_sysconfdir}/trinity/tdm.migr"
+ mv -f "%{tde_datadir}/config/tdm" "%{_sysconfdir}/trinity/tdm.migr"
fi
fi
+# Remove actual directory before creating a symlink
+if [ ! -L "%{tde_datadir}/apps/tdm/pics/users" ]; then
+ [ -d "%{_datadir}/faces" ] || mkdir -p "%{_datadir}/faces"
+ cp -f "%{tde_datadir}/apps/tdm/pics/users/"* "%{_datadir}/faces"
+ rm -rf "%{tde_datadir}/apps/tdm/pics/users"
+fi
+
%post -n trinity-tdm
%if 0%{?mgaversion} || 0%{?mdkversion}
%make_session
@@ -3657,8 +3670,8 @@ EOF
if [ ! -d "%{?buildroot}%{_datadir}/faces" ]; then
%__mkdir_p "%{?buildroot}%{_datadir}/faces"
%__mv -f "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users/"* "%{?buildroot}%{_datadir}/faces"
+ rmdir "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users"
fi
-rmdir "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users/"
%__ln_s "%{_datadir}/faces" "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users"