From 012c411d60614ae2bdb9fdd3385037c5ed6395ae63c597a37e6ed3da3246a4f8 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 4 Jun 2007 22:44:31 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acpid?expand=0&rev=5 --- acpid.changes | 6 ++++++ acpid.spec | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/acpid.changes b/acpid.changes index ac82f49..66a29c7 100644 --- a/acpid.changes +++ b/acpid.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 4 14:40:12 CEST 2007 - lrupp@suse.de + +- clean builddir after build is finished +- own /var/log/acpid (#280469) + ------------------------------------------------------------------- Tue Apr 24 14:27:55 CEST 2007 - trenn@suse.de diff --git a/acpid.spec b/acpid.spec index d623507..66f0e8c 100644 --- a/acpid.spec +++ b/acpid.spec @@ -13,7 +13,7 @@ Name: acpid URL: http://acpid.sourceforge.net/ Version: 1.0.4 -Release: 68 +Release: 77 %define acpi_version 0.09 License: GNU General Public License (GPL) Group: System/Daemons @@ -72,7 +72,6 @@ make CFLAGS="$RPM_OPT_FLAGS" popd %install -[ "%{buildroot}" != "/" ] && [ -d %{buildroot} ] && rm -rf %{buildroot} make install INSTPREFIX=%{buildroot} SBINDIR=%{buildroot}/sbin install -Dm 744 rcacpid %{buildroot}/etc/init.d/acpid install -Dm 644 ibm_acpi.modprobe %{buildroot}/etc/modprobe.d/ibm_acpi @@ -85,6 +84,12 @@ make prefix=%{buildroot}/usr install install -Dm 644 acpi.1 %{buildroot}/%{_mandir}/man1/acpi.1 popd mkdir -p %{buildroot}/var/lib/acpi +# keep the logfile +install -dm 755 %buildroot%_var/log +touch %buildroot%_var/log/acpid + +%clean +rm -rf %{buildroot} %post %{fillup_and_insserv -Y -f acpid} @@ -113,9 +118,13 @@ rm -f -- var/lib/acpi/* /usr/share/man/man8/acpi_listen.8.gz /usr/bin/acpi /usr/share/man/man1/acpi.1.gz +%ghost %config(noreplace,missingok) %_var/log/acpid %dir %attr(0750, root, root) /var/lib/acpi %changelog +* Mon Jun 04 2007 - lrupp@suse.de +- clean builddir after build is finished +- own /var/log/acpid (#280469) * Tue Apr 24 2007 - trenn@suse.de - compile some more files with rpm_opt flags - remove/fix: