From: Ronan Le Martret Date: Wed, 9 Jul 2014 09:29:57 +0000 (+0200) Subject: clean spec file for yocto compliance. X-Git-Tag: accepted/tizen/common/20150409.072606~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8142a53c6d6d44e5d0636a0d5b2787390b82dbe;p=platform%2Fcore%2Fmultimedia%2Faudio-session-manager.git clean spec file for yocto compliance. Change-Id: I992963b9f078896d3c80c0697df73b0056d6a447 Signed-off-by: Ronan Le Martret --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/packaging/audio-session-manager.spec b/packaging/audio-session-manager.spec index 5f974db..1453c77 100644 --- a/packaging/audio-session-manager.spec +++ b/packaging/audio-session-manager.spec @@ -5,7 +5,7 @@ Release: 0 Group: Multimedia/Service License: Apache-2.0 Source0: %{name}-%{version}.tar.gz -Source1001: audio-session-manager.manifest +Source1001: audio-session-manager.manifest Requires(post): /sbin/ldconfig Requires(post): /usr/bin/vconftool Requires(postun): /sbin/ldconfig @@ -16,10 +16,8 @@ BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(avsysaudio) BuildRequires: pkgconfig(security-server) - %description -Audio Session Manager. - +Audio Session Manager package. %package devel Summary: Audio Session Manager package (devel) @@ -27,6 +25,7 @@ Group: Multimedia/Development Requires: %{name} = %{version}-%{release} %description devel +Audio Session Manager package (devel) package. %devel_desc %package sdk-devel @@ -35,31 +34,24 @@ Group: Multimedia/Development Requires: %{name}-devel = %{version}-%{release} %description sdk-devel +Audio Session Manager development package for sdk release package. %devel_desc - SDK Release. - - %prep -%setup -q +%setup -q cp %{SOURCE1001} . - %build - -%autogen --disable-static --noconfigure CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ; export CFLAGS -%configure --disable-static --enable-security -make %{?jobs:-j%jobs} +%reconfigure --disable-static --enable-security +%__make %{?jobs:-j%jobs} %install %make_install - -%post +%post /sbin/ldconfig - vconftool set -t int memory/Sound/SoundStatus "0" -g 29 -f -i %postun -p /sbin/ldconfig @@ -67,7 +59,6 @@ vconftool set -t int memory/Sound/SoundStatus "0" -g 29 -f -i %files %manifest %{name}.manifest %license LICENSE -%manifest audio-session-manager.manifest %defattr(-,root,root,-) %{_libdir}/libaudio-session-mgr.so.* %{_bindir}/asm_testsuite @@ -78,7 +69,6 @@ vconftool set -t int memory/Sound/SoundStatus "0" -g 29 -f -i %{_includedir}/mmf/audio-session-manager-types.h %{_includedir}/mmf/audio-session-manager.h - %files sdk-devel %manifest %{name}.manifest %defattr(-,root,root,-) @@ -86,5 +76,3 @@ vconftool set -t int memory/Sound/SoundStatus "0" -g 29 -f -i %{_includedir}/mmf/audio-session-manager.h %{_libdir}/libaudio-session-mgr.so %{_libdir}/pkgconfig/audio-session-mgr.pc - -