[Tizen-submit] 3117: New package Tizen:2.1:Main/power-manager

noreply at tizen.org noreply at tizen.org
Wed Apr 24 23:31:31 GMT 2013


Hi,
Adding new package power-manager in project Tizen:2.1:Main. Please review and accept ASAP.

Justification for this new package:

Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: framework/system/power-manager
Tag: submit/tizen_2.1/20130424.233153
Commit: 31fc5e1 Code bugs are fixed.

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #3117

  submit:       Tizen:2.1:Main:build/power-manager(cleanup) -> Tizen:2.1:Main


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: framework/system/power-manager
Tag: submit/tizen_2.1/20130424.233153
Commit: 31fc5e1 Code bugs are fixed.

State:   new        2013-04-24T16:02:10 tizenrobot
Comment: <no comment>
new:
----
  power-manager-1.3.23.tar.gz
  power-manager.manifest
  power-manager.service
  power-manager.spec

spec files:
-----------

++++++ new spec file:
--- power-manager.spec
+++ power-manager.spec
@@ -0,0 +1,86 @@
+Name:       power-manager
+Summary:    Power manager
+Version:    1.3.23
+Release:    9
+VCS:        framework/system/power-manager#2.1_release-0-g31fc5e1
+Group:      framework/system
+License:    APLv2
+Source0:    %{name}-%{version}.tar.gz
+Source1001: packaging/power-manager.manifest 
+Requires(post): /usr/bin/vconftool
+Source1:        power-manager.service
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(vconf)
+BuildRequires:  pkgconfig(sysman)
+BuildRequires:  pkgconfig(aul)
+BuildRequires:  pkgconfig(dlog)
+BuildRequires:  pkgconfig(sensor)
+BuildRequires:  pkgconfig(devman)
+BuildRequires:  pkgconfig(device-node)
+BuildRequires:  pkgconfig(heynoti)
+
+%description
+Description: Power manager
+
+
+%prep
+%setup -q 
+
+%build
+cp %{SOURCE1001} .
+%ifnarch %arm
+%if 0%{?simulator}
+#for emulator
+CFLAGS+=" -DTIZEN_EMUL"
+%else
+#for real device
+CFLAGS+=" -DX86"
+%endif
+export CFLAGS
+%endif
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/power-manager.service
+ln -s ../power-manager.service %{buildroot}%{_libdir}/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
+vconftool set -t int memory/pm/battery_timetoempty -1 -i
+vconftool set -t int memory/pm/custom_brightness_status 0 -i -g 5000
+vconftool set -t bool memory/pm/brt_changed_lpm 0 -i
+vconftool set -t int memory/pm/current_brt 60 -i -g 5000
+vconftool set -t int memory/pm/sip_status 0 -i -g 5000
+
+heynotitool set system_wakeup
+heynotitool set pm_event
+
+mkdir -p /etc/udev/rules.d
+if ! [ -L /etc/udev/rules.d/91-power-manager.rules ]; then

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list