Summary: Power manager
Version: 1.3.23
Release: 9
-Group: framework/system
-License: APLv2
+Group: System/Power Management
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: packaging/power-manager.manifest
+Source1001: power-manager.manifest
Requires(post): /usr/bin/vconftool
Source1: power-manager.service
BuildRequires: cmake
install -m 0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/power-manager.service
ln -s ../power-manager.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/power-manager.service
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
-ln -s %{_sysconfdir}/init.d/pmctrl %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S35power-manager
-ln -s %{_sysconfdir}/init.d/pmctrl %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S00power-manager
-
%post
vconftool set -t int memory/pm/state 0 -i
vconftool set -t int memory/pm/battery_timetofull -1 -i
fi
%files
-%manifest power-manager.manifest
-%{_sysconfdir}/rc.d/init.d/pmctrl
-%{_sysconfdir}/rc.d/rc3.d/S35power-manager
-%{_sysconfdir}/rc.d/rc5.d/S00power-manager
+%manifest %{name}.manifest
+%license LICENSE.APLv2
%{_bindir}/pm_event
%{_bindir}/pmctrl
%{_bindir}/power_manager