+%define quirkver 20100619
Summary: Power management utilities and scripts
Summary(pl.UTF-8): Narzędzia i skrypty do zarządzania energią
Name: pm-utils
-Version: 1.1.2.4
-Release: 1
+Version: 1.4.1
+Release: 5
License: GPL v2
Group: Applications/System
Source0: http://pm-utils.freedesktop.org/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 5aa6d338fb8172f1826a1b08ae601a42
+# Source0-md5: 1742a556089c36c3a89eb1b957da5a60
+Source1: http://pm-utils.freedesktop.org/releases/pm-quirks-%{quirkver}.tar.gz
+# Source1-md5: 3b6ee39056b9ece0cd5e073a4c272b05
+Patch0: bashism.patch
URL: http://pm-utils.freedesktop.org/
BuildRequires: autoconf >= 2.52
BuildRequires: automake
-Requires: hal
-%ifarch %{ix86} %{x8664}
-Requires: vbetool
-%endif
+BuildRequires: xmlto
+Requires: hdparm
+Requires: kbd
+Suggests: radeontool
+Suggests: vbetool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
związanych z zarządzaniem energią.
%prep
-%setup -q
+%setup -q -a1
+%patch0 -p1
%build
%{__aclocal}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-touch $RPM_BUILD_ROOT%{_var}/log/pm-suspend.log
+# Install quirks
+cp -a video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils
+
+touch $RPM_BUILD_ROOT%{_var}/log/pm-{powersave,suspend}.log
# included via %doc
rm -rf $RPM_BUILD_ROOT%{_docdir}/pm-utils
%attr(755,root,root) %{_libdir}/pm-utils/bin/pm-action
%attr(755,root,root) %{_libdir}/pm-utils/bin/pm-pmu
%attr(755,root,root) %{_libdir}/pm-utils/bin/pm-reset-swap
+%attr(755,root,root) %{_libdir}/pm-utils/bin/service
%dir %{_libdir}/pm-utils/module.d
%attr(755,root,root) %{_libdir}/pm-utils/module.d/kernel
%attr(755,root,root) %{_libdir}/pm-utils/module.d/tuxonice
%attr(755,root,root) %{_libdir}/pm-utils/module.d/uswsusp
%dir %{_libdir}/pm-utils/power.d
-%attr(755,root,root) %{_libdir}/pm-utils/power.d/sched-powersave
+%attr(755,root,root) %{_libdir}/pm-utils/power.d/*
%dir %{_libdir}/pm-utils/sleep.d
%attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*
%{_libdir}/pm-utils/defaults
%{_libdir}/pm-utils/functions
%{_libdir}/pm-utils/pm-functions
+%{_libdir}/pm-utils/video-quirks
%attr(755,root,root) %{_sbindir}/pm-hibernate
%attr(755,root,root) %{_sbindir}/pm-powersave
%attr(755,root,root) %{_sbindir}/pm-suspend
%{_mandir}/man1/*.1*
%{_mandir}/man8/*.8*
%{_pkgconfigdir}/pm-utils.pc
+%ghost %{_var}/log/pm-powersave.log
%ghost %{_var}/log/pm-suspend.log