summaryrefslogtreecommitdiff
path: root/packaging/libmm-sound.spec
blob: e83a544d3acad660d25c541c8c31230b99c07155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Name:       libmm-sound
Summary:    MMSound Package contains client lib and sound_server binary
Version:    0.5.11
Release:    1
Group:      Libraries/Sound
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Requires(pre): /bin/pidof
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/vconftool
Requires(postun): /sbin/ldconfig
BuildRequires: vconf-keys-devel, libmm-common-internal-devel
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(avsystem)
BuildRequires: pkgconfig(mm-log)
BuildRequires: pkgconfig(mm-session)
BuildRequires: pkgconfig(audio-session-mgr)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(heynoti)


%description
MMSound Package contains client lib and sound_server binary for sound system


%package devel
Summary: MMSound development package
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
MMSound development package for sound system

%package sdk-devel
Summary: MMSound development package
Group:      Development/Libraries
Requires:   %{name}-devel = %{version}-%{release}

%description sdk-devel
MMSound development package for sound system

%package tools
Summary: MMSound utility package - contians mm_sound_testsuite, sound_check
Group:      TO_BE/FILLED_IN
Requires:   %{name} = %{version}-%{release}

%description tools
MMSound utility package - contians mm_sound_testsuite, sound_check for sound system



%prep
%setup -q


%build
CFLAGS="%{optflags} -fvisibility=hidden -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
./autogen.sh
%configure  --enable-pulse

make %{?jobs:-j%jobs}

%install
%make_install


%post
/sbin/ldconfig
/usr/bin/vconftool set -t int db/volume/system 5 -g 29
/usr/bin/vconftool set -t int db/volume/notification 7 -g 29
/usr/bin/vconftool set -t int db/volume/alarm 6 -g 29
/usr/bin/vconftool set -t int db/volume/ringtone 13 -g 29
/usr/bin/vconftool set -t int db/volume/media 7 -g 29
/usr/bin/vconftool set -t int db/volume/call 7 -g 29
/usr/bin/vconftool set -t int db/volume/fixed 0 -g 29
/usr/bin/vconftool set -t int db/volume/java 11 -g 29
/usr/bin/vconftool set -t int memory/Sound/RoutePolicy 0 -i -g 29

mkdir -p %{_sysconfdir}/rc.d/rc3.d
mkdir -p %{_sysconfdir}/rc.d/rc4.d
ln -s %{_sysconfdir}/init.d/soundserver %{_sysconfdir}/rc.d/rc3.d/S40soundserver
ln -s %{_sysconfdir}/init.d/soundserver %{_sysconfdir}/rc.d/rc4.d/S40soundserver

%postun -p /sbin/ldconfig


%files
%{_bindir}/sound_server
%{_libdir}/libmmfsound.so.*
%{_libdir}/libsoundplugintone.so.*
%{_libdir}/libmmfsoundcommon.so.*
%{_libdir}/libsoundpluginwave.so.*
%{_libdir}/libsoundpluginkeytone.so.*
%{_libdir}/libmmfkeysound.so.*
%{_libdir}/libsoundpluginheadset.so.*
%{_libdir}/soundplugins/libsoundpluginktone.so
%{_libdir}/soundplugins/libsoundpluginheadset.so
%{_libdir}/soundplugins/libsoundpluginwave.so
%{_libdir}/soundplugins/libsoundpluginkeytone.so
%{_sysconfdir}/rc.d/init.d/soundserver
%{_libdir}/libmmfkeysound.so
%{_libdir}/libmmfsound.so
%{_libdir}/libsoundpluginheadset.so
%{_libdir}/libsoundplugintone.so
%{_libdir}/libmmfsoundcommon.so
%{_libdir}/libsoundpluginwave.so
%{_libdir}/libsoundpluginkeytone.so

%files devel
%{_includedir}/mmf/mm_sound_private.h


%files sdk-devel
%{_includedir}/mmf/mm_sound.h
%{_libdir}/pkgconfig/mm-keysound.pc
%{_libdir}/pkgconfig/mm-sound.pc

%files tools
%{_bindir}/mm_sound_testsuite