1 Name: capi-media-sound-manager
2 Summary: Sound Manager library
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: capi-media-sound-manager.manifest
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(mm-sound)
12 BuildRequires: pkgconfig(mm-session)
13 BuildRequires: pkgconfig(capi-base-common)
14 BuildRequires: pkgconfig(vconf)
15 BuildRequires: pkgconfig(libpulse)
16 BuildRequires: pkgconfig(gio-2.0)
17 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
21 A Sound Manager library in Tizen C API
24 Summary: Sound Manager library (Development)
25 Group: Multimedia/Development
26 Requires: %{name} = %{version}-%{release}
29 A Sound Manager library in Tizen C API (DEV)
37 %if "%{?TIZEN_PRODUCT_TV}" == "1"
38 echo "tizen_product_tv"
39 mv include/sound_manager_internal_tv.h include/sound_manager_internal.h
41 rm include/sound_manager_internal_tv.h
45 %if "%{?TIZEN_PRODUCT_TV}" == "1"
46 export CFLAGS+=" -DTIZEN_TV_PROD"
49 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
50 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
51 %__make %{?jobs:-j%jobs}
55 mkdir -p %{buildroot}/usr/share/license
56 cp LICENSE %{buildroot}/usr/share/license/%{name}
63 %postun -p /sbin/ldconfig
67 %manifest %{name}.manifest
68 %{_libdir}/libcapi-media-sound-manager.so.*
69 %{_datadir}/license/%{name}
70 %{_bindir}/sound_manager_test
73 %manifest %{name}.manifest
74 %{_includedir}/media/sound_manager.h
75 %{_includedir}/media/sound_manager_internal.h
76 %{_libdir}/pkgconfig/*.pc
77 %{_libdir}/libcapi-media-sound-manager.so