|
@@ -5,7 +5,7 @@ Summary(ja): 電源管理ユーティリティおよびスクリプト
|
|
Name: pm-utils
|
|
Name: pm-utils
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Version: 1.4.1
|
|
Version: 1.4.1
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
URL: http://pm-utils.freedesktop.org
|
|
URL: http://pm-utils.freedesktop.org
|
|
|
|
|
|
@@ -17,9 +17,13 @@ Source23: pm-utils-bugreport-info.sh
|
|
Source100: 00tuxonice
|
|
Source100: 00tuxonice
|
|
Source101: tuxonice.sysconfig
|
|
Source101: tuxonice.sysconfig
|
|
|
|
|
|
|
|
+Source110: suspend_modules
|
|
|
|
+
|
|
# Use append instead of write for init_logfile (#660329)
|
|
# Use append instead of write for init_logfile (#660329)
|
|
Patch0: pm-utils-1.4.1-init-logfile-append.patch
|
|
Patch0: pm-utils-1.4.1-init-logfile-append.patch
|
|
-
|
|
|
|
|
|
+# Disable SATA link power management by default, as it still causes
|
|
|
|
+# disk errors and corruptions on many hardware.
|
|
|
|
+Patch14: 14-disable-sata-alpm.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: xmlto
|
|
BuildRequires: xmlto
|
|
@@ -55,6 +59,7 @@ when building programs that use %{name}.
|
|
%setup -q
|
|
%setup -q
|
|
tar -xzf %{SOURCE1}
|
|
tar -xzf %{SOURCE1}
|
|
%patch0 -p1
|
|
%patch0 -p1
|
|
|
|
+%patch14 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure
|
|
%configure
|
|
@@ -74,6 +79,8 @@ install -D -m 0755 %{SOURCE23} $RPM_BUILD_ROOT%{_sbindir}/pm-utils-bugreport-inf
|
|
# Install tuxonice staff
|
|
# Install tuxonice staff
|
|
install -D -m 0755 %{SOURCE100} %{buildroot}%{_libdir}/pm-utils/sleep.d/00tuxonice
|
|
install -D -m 0755 %{SOURCE100} %{buildroot}%{_libdir}/pm-utils/sleep.d/00tuxonice
|
|
install -D -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/tuxonice
|
|
install -D -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/tuxonice
|
|
|
|
+# Install suspend_modules
|
|
|
|
+install -D -m 0644 %{SOURCE110} %{buildroot}%{_sysconfdir}/pm/config.d/suspend_modules
|
|
|
|
|
|
# Install quirks
|
|
# Install quirks
|
|
cp -r video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils
|
|
cp -r video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils
|
|
@@ -98,7 +105,11 @@ rm -rf %{buildroot}
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README* TODO pm/HOWTO*
|
|
%doc AUTHORS COPYING ChangeLog NEWS README* TODO pm/HOWTO*
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/tuxonice
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/tuxonice
|
|
-%{_sysconfdir}/pm/
|
|
|
|
|
|
+%dir %{_sysconfdir}/pm/
|
|
|
|
+%dir %{_sysconfdir}/pm/config.d
|
|
|
|
+%dir %{_sysconfdir}/pm/power.d
|
|
|
|
+%dir %{_sysconfdir}/pm/sleep.d
|
|
|
|
+%config(noreplace) %{_sysconfdir}/pm/config.d/suspend_modules
|
|
%dir %{_libdir}/pm-utils/
|
|
%dir %{_libdir}/pm-utils/
|
|
%{_libdir}/pm-utils/bin/
|
|
%{_libdir}/pm-utils/bin/
|
|
%{_libdir}/pm-utils/defaults
|
|
%{_libdir}/pm-utils/defaults
|
|
@@ -130,6 +141,13 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Apr 11 2011 Daiuske SUZUKI <daisuke@linux.or.jp> 1.4.1-2
|
|
|
|
+- add patch14 from ubuntu
|
|
|
|
+ Disable SATA link power management by default, as it still
|
|
|
|
+ causes disk errors and corruptions on many hardware.
|
|
|
|
+- add /etc/pm/config.d/suspend_modules
|
|
|
|
+ - add SUSPEND_MODULES="xhci-hcd" to unload module on suspend.
|
|
|
|
+
|
|
* Wed Mar 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1-1
|
|
* Wed Mar 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|