rpms/pm-utils/devel pm-utils.spec, 1.79, 1.80 pm-utils-0.19-vidhooks.patch, 1.6, NONE
Till Maas (till)
fedora-extras-commits at redhat.com
Wed Sep 19 23:16:01 UTC 2007
- Previous message (by thread): rpms/eclipse-egit/F-7 .cvsignore, 1.2, 1.3 eclipse-egit.spec, 1.1, 1.2 sources, 1.2, 1.3 eclipse-egit-add-feature.patch, 1.1, NONE
- Next message (by thread): rpms/pm-utils/devel pm-utils-0.99.4-logfile.patch,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: till
Update of /cvs/pkgs/rpms/pm-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30027
Modified Files:
pm-utils.spec
Removed Files:
pm-utils-0.19-vidhooks.patch
Log Message:
* Thu Sep 20 2007 Till Maas <opensource till name> - 0.99.4-3
- remove unused patch (vidhooks)
- add patch to keep logfile (RH #237840 (f7), #238068 (devel)),
to keep selinux context
- simplify spec
- restore selinux context of logfile in %post
- use rpmmacros more often
Index: pm-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pm-utils/devel/pm-utils.spec,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- pm-utils.spec 11 Sep 2007 08:01:08 -0000 1.79
+++ pm-utils.spec 19 Sep 2007 23:15:28 -0000 1.80
@@ -2,7 +2,7 @@
Summary: Power management utilities and scripts for Fedora
License: GPLv2
Version: 0.99.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: System Environment/Base
URL: http://pm-utils.freedesktop.org
ExclusiveArch: i386 x86_64 ia64 ppc ppc64 %{?arm}
@@ -29,8 +29,8 @@
BuildRequires: dbus-devel >= 0.90
Patch0: pm-utils-0.99.3-disable.patch
-#Patch1: pm-utils-0.19-vidhooks.patch
Patch2: pm-utils-0.99.3-cfg.patch
+Patch3: pm-utils-0.99.4-logfile.patch
%description
@@ -41,8 +41,8 @@
%setup -q
%patch0 -p1 -b .disable
-#%patch1 -p1 -b .vidhooks
%patch2 -p1 -b .cfg
+%patch3 -p1 -b .logfile
%build
@@ -70,29 +70,33 @@
ln -sf consolehelper $x
done
popd
-install -d -m 755 $RPM_BUILD_ROOT/var/log
-install -m 600 /dev/null $RPM_BUILD_ROOT/var/log/pm-suspend.log
+install -D -m 0600 /dev/null $RPM_BUILD_ROOT%{_localstatedir}/log/pm-suspend.log
+
+
%clean
%{__rm} -rf $RPM_BUILD_ROOT
+
%pre
-if [ -f /etc/sysconfig/pm ]; then
- mkdir -p /etc/pm/config.d
- mv /etc/sysconfig/pm /etc/pm/config.d/01oldconfig
+if [ -f %{_sysconfdir}/sysconfig/pm ]; then
+ mkdir -p %{_sysconfdir}/pm/config.d
+ mv %{_sysconfdir}/sysconfig/pm %{_sysconfdir}/pm/config.d/01oldconfig
fi
+
%post
-if [ -f /etc/pm/config.rpmsave ]; then
- mkdir -p /etc/pm/config.d
- mv /etc/pm/config.rpmsave /etc/pm/config.d/02oldconfig
+if [ -f %{_sysconfdir}/pm/config.rpmsave ]; then
+ mv %{_sysconfdir}/pm/config.rpmsave %{_sysconfdir}/pm/config.d/02oldconfig
fi
-if [ ! -a /var/log/pm-suspend.log ] ; then
- install -m 600 /dev/null /var/log/pm-suspend.log
+if [ -f %{_localstatedir}/log/pm-suspend.log ] ; then
+ chmod 0600 %{_localstatedir}/log/pm-suspend.log
+ [ -x /sbin/restorecon ] && restorecon %{_localstatedir}/log/pm-suspend.log > /dev/null 2>&1
fi
+
%files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
%{_sysconfdir}/pm/
%{_sysconfdir}/security/console.apps/*
%{_sysconfdir}/pam.d/*
@@ -109,9 +113,17 @@
%{_sbindir}/pm-suspend-hybrid
%{_mandir}/man*/*
-%ghost %verify(not md5 size mtime) /var/log/pm-suspend.log
+%ghost %verify(not md5 size mtime) %{_localstatedir}/log/pm-suspend.log
%changelog
+* Thu Sep 20 2007 Till Maas <opensource till name> - 0.99.4-3
+- remove unused patch (vidhooks)
+- add patch to keep logfile (RH #237840 (f7), #238068 (devel)),
+ to keep selinux context
+- simplify spec
+- restore selinux context of logfile in %%post
+- use rpmmacros more often
+
* Tue Sep 11 2007 Till Maas <opensource till name> - 0.99.4-2
- Require vbetool not on ppc and ppc64
--- pm-utils-0.19-vidhooks.patch DELETED ---
- Previous message (by thread): rpms/eclipse-egit/F-7 .cvsignore, 1.2, 1.3 eclipse-egit.spec, 1.1, 1.2 sources, 1.2, 1.3 eclipse-egit-add-feature.patch, 1.1, NONE
- Next message (by thread): rpms/pm-utils/devel pm-utils-0.99.4-logfile.patch,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list