[Tizen-submit] 15530: Changes to Tizen:Mobile/alsa-utils

noreply at tizen.org noreply at tizen.org
Tue Oct 8 08:30:56 GMT 2013


Hi,
Zhang,Vivian have made the following changes to alsa-utils in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #15530

  submit:       Tizen:Mobile:build/alsa-utils(cleanup) -> Tizen:Mobile


Message:
Submitter: Zhang,Vivian <vivian.zhang at intel.com>
Comments: packaging: add store/restore systemd services, which fixed TZPC-4365
Git project: platform/upstream/alsa-utils
Tag: submit/tizen/20131008.082248
Commit: 4d93f30d1bc8cbe82db962376e71e250507c3b61 packaging: add store/restore systemd services

State:   new        2013-10-08T08:29:17 tizenrobot
Comment: <no comment>
spec files:
-----------
--- alsa-utils.spec
+++ alsa-utils.spec
@@ -1,7 +1,7 @@
 Name:           alsa-utils
 Version:        1.0.26
 Release:        1
-VCS:            platform/upstream/alsa-utils#submit/tizen/20130912.075535-0-gfc481d32d0b7d342a46d7b92d94d68529758b84e
+VCS:            platform/upstream/alsa-utils#submit/tizen/20131008.082248-0-g4d93f30d1bc8cbe82db962376e71e250507c3b61
 License:        GPL-2.0+
 Summary:        Advanced Linux Sound Architecture (ALSA) utilities
 Url:            http://www.alsa-project.org/
@@ -9,6 +9,8 @@
 Source0:        ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
 Source1001: 	alsa-utils.manifest
 BuildRequires:  libasound-devel
+BuildRequires:  systemd
+%systemd_requires
 
 %description
 This package contains command line utilities for the Advanced Linux Sound
@@ -29,19 +31,33 @@
 
 %build
 
-%configure --disable-static \
+%configure \
+    --disable-static \
     --disable-nls \
     --disable-xmlto \
     --disable-alsamixer \
-    --disable-alsatest
+    --disable-alsatest \
+    --with-udev-rules-dir=/lib/udev/rules.d \
+    --with-systemdsystemunitdir=%{_unitdir}
 
 make %{?_smp_mflags}
 
 %install
 %make_install
+mkdir -p %{buildroot}/var/lib/alsa
 
 %remove_docs
 
+%preun
+%systemd_preun alsa-store.service alsa-restore.service
+
+%post
+%systemd_post alsa-store.service alsa-restore.service
+
+%postun
+%systemd_postun alsa-store.service alsa-restore.service
+
+
 %files
 %manifest %{name}.manifest
 %{_bindir}/*
@@ -49,3 +65,7 @@
 %{_datadir}/alsa/*
 %{_datadir}/sounds/*
 /lib/udev/rules.d/90-alsa-restore.rules
+%{_unitdir}/*.service
+%{_unitdir}/basic.target.wants/alsa-restore.service
+%{_unitdir}/shutdown.target.wants/alsa-store.service
+%dir /var/lib/alsa

other changes:
--------------


More information about the Tizen-submit mailing list