diff options
Diffstat (limited to 'redhat/applications/tdepowersave')
-rw-r--r-- | redhat/applications/tdepowersave/tdepowersave-14.0.0-fix_hibernate.patch | 11 | ||||
-rw-r--r-- | redhat/applications/tdepowersave/tdepowersave-14.0.0.spec | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/redhat/applications/tdepowersave/tdepowersave-14.0.0-fix_hibernate.patch b/redhat/applications/tdepowersave/tdepowersave-14.0.0-fix_hibernate.patch new file mode 100644 index 000000000..08492a890 --- /dev/null +++ b/redhat/applications/tdepowersave/tdepowersave-14.0.0-fix_hibernate.patch @@ -0,0 +1,11 @@ +--- trinity-tdepowersave/src/hardware.cpp.ORI 2013-07-24 12:19:52.432706499 +0200 ++++ trinity-tdepowersave/src/hardware.cpp 2013-07-24 12:20:01.956723548 +0200 +@@ -546,7 +546,7 @@ + } + if ((*it) == TDESystemPowerState::Hibernate) { + suspend_states.suspend2disk = true; +- suspend_states.suspend2disk_allowed = rdevice->canSuspend(); ++ suspend_states.suspend2disk_allowed = rdevice->canHibernate(); + suspend_states.suspend2disk_can = suspend_states.suspend2disk_allowed & suspend_states.suspend2disk; + } + if ((*it) == TDESystemPowerState::PowerOff) { diff --git a/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec b/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec index 72733522b..4e20bd204 100644 --- a/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec +++ b/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec @@ -1,5 +1,5 @@ # Default version for this component -%define tdecomp tdepowersave +%define tde_pkg tdepowersave %define tde_version 14.0.0 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". @@ -24,7 +24,7 @@ %define _docdir %{tde_docdir} -Name: trinity-%{tdecomp} +Name: trinity-%{tde_pkg} Version: 0.7.3 Release: %{?!preversion:5}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} Summary: Power management applet for Trinityfiles or directories. @@ -41,6 +41,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz +Patch1: tdepowersave-14.0.0-fix_hibernate.patch BuildRequires: trinity-tqtinterface-devel >= %{tde_version} BuildRequires: trinity-dbus-tqt-devel >= %{tde_version} @@ -88,6 +89,7 @@ settings for: %prep %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} +%patch1 -p1 -b .hibernate %build |