From fcef5cfe7c50b13ea5dab0986f48b3619b00edb1 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 9 Aug 2012 12:04:55 +0200 Subject: RHEL/Fedora: fix packages using consolehelper --- redhat/kdeutils/trinity-kdeutils-3.5.13.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'redhat/kdeutils') diff --git a/redhat/kdeutils/trinity-kdeutils-3.5.13.spec b/redhat/kdeutils/trinity-kdeutils-3.5.13.spec index 3c32f5e12..d85cfc7d4 100755 --- a/redhat/kdeutils/trinity-kdeutils-3.5.13.spec +++ b/redhat/kdeutils/trinity-kdeutils-3.5.13.spec @@ -1,7 +1,9 @@ +# Avoids relinking, which breaks consolehelper +%define dont_relink 1 + # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{tde_datadir}/doc %endif # TDE 3.5.13 specific building variables @@ -615,6 +617,7 @@ power management, for laptops, from within TDE. %{_sysconfdir}/pam.d/klaptop_acpi_helper %attr(644,root,root) %{_sysconfdir}/security/console.apps/klaptop_acpi_helper %{tde_sbindir}/klaptop_acpi_helper +%{_sbindir}/klaptop_acpi_helper %config %{tde_datadir}/config/kcmlaptoprc %post -n trinity-klaptopdaemon @@ -1024,11 +1027,13 @@ fi %__install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/klaptop_acpi_helper %__install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/console.apps/klaptop_acpi_helper -pushd %{buildroot}%{tde_bindir} - %__mkdir_p %{buildroot}%{tde_sbindir} - %__mv klaptop_acpi_helper ../sbin - %__ln_s /usr/bin/consolehelper klaptop_acpi_helper -popd +# Use consolehelper for 'klaptop_acpi_helper' +%__mkdir_p %{buildroot}%{tde_sbindir} %{buildroot}%{_sbindir} +%__mv %{buildroot}%{tde_bindir}/klaptop_acpi_helper %{buildroot}%{tde_sbindir} +%__ln_s %{_bindir}/consolehelper %{buildroot}%{tde_bindir}/klaptop_acpi_helper +%if "%{tde_prefix}" != "/usr" +%__ln_s %{tde_sbindir}/klaptop_acpi_helper %{?buildroot}%{_sbindir}/klaptop_acpi_helper +%endif # klaptop setting %__install -p -D -m 644 %{SOURCE3} %{buildroot}%{tde_datadir}/config/kcmlaptoprc -- cgit v1.2.1