]> git.pld-linux.org Git - packages/pm-utils.git/blobdiff - pm-utils.spec
- changed radeontool from R: to S:
[packages/pm-utils.git] / pm-utils.spec
index b54da350af98f1a23fcaf1975a1893d8bc69c6c3..f69c33effd17995e54161a348f42e291036dcbb3 100644 (file)
@@ -1,19 +1,24 @@
+%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
@@ -25,7 +30,8 @@ Pakiet pm-utils zawiera narzędzia i skrypty pomocne przy zadaniach
 związanych z zarządzaniem energią.
 
 %prep
-%setup -q
+%setup -q -a1
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -42,7 +48,10 @@ install -d $RPM_BUILD_ROOT%{_var}/log
 %{__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
@@ -64,17 +73,19 @@ rm -rf $RPM_BUILD_ROOT
 %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
@@ -82,4 +93,5 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/*.1*
 %{_mandir}/man8/*.8*
 %{_pkgconfigdir}/pm-utils.pc
+%ghost %{_var}/log/pm-powersave.log
 %ghost %{_var}/log/pm-suspend.log
This page took 0.073533 seconds and 4 git commands to generate.