RPM Packaging: update tdebase

pull/3/head
François Andriot 10 years ago
parent 0f7e2f11d7
commit 01a7863524

@ -564,10 +564,8 @@ BuildRequires: %{_lib}xcomposite%{?mgaversion:1}-devel
BuildRequires: libXcomposite-devel BuildRequires: libXcomposite-devel
%endif %endif
# Other X11 stuff ... # Requires 'usb.ids'
%if 0%{?rhel} == 4 BuildRequires: usbutils
BuildRequires: xorg-x11-devel
%endif
# LIBFONTENC support # LIBFONTENC support
%if 0%{?suse_version} == 1140 %if 0%{?suse_version} == 1140
@ -577,6 +575,11 @@ BuildRequires: xorg-x11-libfontenc-devel
BuildRequires: libfontenc-devel BuildRequires: libfontenc-devel
%endif %endif
# Other X11 stuff ...
%if 0%{?rhel} == 4
BuildRequires: xorg-x11-devel
%endif
%if 0%{?mgaversion} || 0%{?mdkversion} %if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: x11-font-util BuildRequires: x11-font-util
BuildRequires: x11-proto-devel BuildRequires: x11-proto-devel
@ -2151,6 +2154,9 @@ already. Most users won't need this.
%{tde_datadir}/apps/tdm/themes/ %{tde_datadir}/apps/tdm/themes/
%{tde_datadir}/config/tdm %{tde_datadir}/config/tdm
%dir %{_sysconfdir}/trinity/tdm %dir %{_sysconfdir}/trinity/tdm
%if 0%{?with_selinux_policy}
%exclude %{?_sysconfdir}/trinity/tdm/tdm.pp
%endif
%config(noreplace) %{_sysconfdir}/trinity/tdm/* %config(noreplace) %{_sysconfdir}/trinity/tdm/*
%{tde_tdedocdir}/HTML/en/tdm/ %{tde_tdedocdir}/HTML/en/tdm/
%if 0%{?suse_version} == 0 %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 [ -d "%{_sysconfdir}/trinity/tdm" ]; then
# If there is already something under '/etc/trinity/tdm', simply delete old configuration # If there is already something under '/etc/trinity/tdm', simply delete old configuration
echo "Deleting TDM configuration under '%{tde_datadir}/config/tdm'" echo "Deleting TDM configuration under '%{tde_datadir}/config/tdm'"
%__rm -rf "%{tde_datadir}/config/tdm" rm -rf "%{tde_datadir}/config/tdm"
else else
# Else, move '/opt/trinity/share/config/tdm' to '/etc/trinity/tdm' # Else, move '/opt/trinity/share/config/tdm' to '/etc/trinity/tdm'
if [ ! -d "%{_sysconfdir}/trinity" ]; then if [ ! -d "%{_sysconfdir}/trinity" ]; then
%__mkdir_p "%{_sysconfdir}/trinity" mkdir -p "%{_sysconfdir}/trinity"
fi fi
echo "Migrating TDM configuration from '%{tde_datadir}/config/tdm' to '%{_sysconfdir}/trinity/tdm'" 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
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 %post -n trinity-tdm
%if 0%{?mgaversion} || 0%{?mdkversion} %if 0%{?mgaversion} || 0%{?mdkversion}
%make_session %make_session
@ -3657,8 +3670,8 @@ EOF
if [ ! -d "%{?buildroot}%{_datadir}/faces" ]; then if [ ! -d "%{?buildroot}%{_datadir}/faces" ]; then
%__mkdir_p "%{?buildroot}%{_datadir}/faces" %__mkdir_p "%{?buildroot}%{_datadir}/faces"
%__mv -f "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users/"* "%{?buildroot}%{_datadir}/faces" %__mv -f "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users/"* "%{?buildroot}%{_datadir}/faces"
rmdir "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users"
fi fi
rmdir "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users/"
%__ln_s "%{_datadir}/faces" "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users" %__ln_s "%{_datadir}/faces" "%{?buildroot}%{tde_datadir}/apps/tdm/pics/users"

Loading…
Cancel
Save