2 Summary: Feedback library
5 Group: System/Libraries
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
8 Source1: libsvi.manifest
9 source2: libfeedback.manifest
10 source3: svi-data-sdk.manifest
11 Requires(post): /sbin/ldconfig
12 Requires(postun): /sbin/ldconfig
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(vconf)
16 BuildRequires: pkgconfig(mm-keysound)
17 BuildRequires: pkgconfig(haptic)
18 BuildRequires: pkgconfig(libxml-2.0)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(capi-base-common)
23 Feedback library for playing sound, vibration and led
26 %package -n libfeedback-devel
27 Summary: Feedback library for (devel)
28 Group: Development/Libraries
29 Requires: libfeedback = %{version}-%{release}
31 %description -n libfeedback-devel
32 Feedback library for playing sound, vibration and led (devel)
36 Group: Development/Libraries
37 Requires: libfeedback = %{version}-%{release}
39 %description -n libsvi
42 %package -n libsvi-devel
43 Summary: SVI library for (devel)
44 Group: Development/Libraries
45 Requires: libsvi = %{version}-%{release}
47 %description -n libsvi-devel
51 Summary: svi resource package
52 Group: Development/Libraries
54 %description -n svi-data
72 mkdir -p %{buildroot}/opt/share/svi/sound/touch
73 mkdir -p %{buildroot}/opt/share/svi/sound/operation
74 mkdir -p %{buildroot}/opt/share/svi/haptic/default
75 mkdir -p %{buildroot}/opt/share/svi/haptic/touch
77 mkdir -p %{buildroot}%{_datadir}/license
78 cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
80 %post -p /sbin/ldconfig
82 %post -n libsvi -p /sbin/ldconfig
84 %postun -n libsvi -p /sbin/ldconfig
87 ln -s %{_datadir}/svi/sound/touch/key0.wav /opt/share/svi/sound/touch
88 ln -s %{_datadir}/svi/sound/touch/key1.wav /opt/share/svi/sound/touch
89 ln -s %{_datadir}/svi/sound/touch/key2.wav /opt/share/svi/sound/touch
90 ln -s %{_datadir}/svi/sound/touch/key3.wav /opt/share/svi/sound/touch
91 ln -s %{_datadir}/svi/sound/touch/key4.wav /opt/share/svi/sound/touch
92 ln -s %{_datadir}/svi/sound/touch/key5.wav /opt/share/svi/sound/touch
93 ln -s %{_datadir}/svi/sound/touch/key6.wav /opt/share/svi/sound/touch
94 ln -s %{_datadir}/svi/sound/touch/key7.wav /opt/share/svi/sound/touch
95 ln -s %{_datadir}/svi/sound/touch/key8.wav /opt/share/svi/sound/touch
96 ln -s %{_datadir}/svi/sound/touch/key9.wav /opt/share/svi/sound/touch
97 ln -s %{_datadir}/svi/sound/touch/keyasterisk.wav /opt/share/svi/sound/touch
98 ln -s %{_datadir}/svi/sound/touch/keysharp.wav /opt/share/svi/sound/touch
99 ln -s %{_datadir}/svi/sound/touch/sip.wav /opt/share/svi/sound/touch
100 ln -s %{_datadir}/svi/sound/touch/sip_backspace.wav /opt/share/svi/sound/touch
101 ln -s %{_datadir}/svi/sound/touch/touch.wav /opt/share/svi/sound/touch
102 ln -s %{_datadir}/svi/sound/operation/call_connect.wav /opt/share/svi/sound/operation
103 ln -s %{_datadir}/svi/sound/operation/call_disconnect.wav /opt/share/svi/sound/operation
104 ln -s %{_datadir}/svi/sound/operation/charger_connection.wav /opt/share/svi/sound/operation
105 ln -s %{_datadir}/svi/sound/operation/fully_charged.wav /opt/share/svi/sound/operation
106 ln -s %{_datadir}/svi/sound/operation/list_reorder.wav /opt/share/svi/sound/operation
107 ln -s %{_datadir}/svi/sound/operation/lock.wav /opt/share/svi/sound/operation
108 ln -s %{_datadir}/svi/sound/operation/low_battery.wav /opt/share/svi/sound/operation
109 ln -s %{_datadir}/svi/sound/operation/minute_minder.wav /opt/share/svi/sound/operation
110 ln -s %{_datadir}/svi/sound/operation/power_on.wav /opt/share/svi/sound/operation
111 ln -s %{_datadir}/svi/sound/operation/shutter.wav /opt/share/svi/sound/operation
112 ln -s %{_datadir}/svi/sound/operation/slider_sweep.wav /opt/share/svi/sound/operation
113 ln -s %{_datadir}/svi/sound/operation/unlock.wav /opt/share/svi/sound/operation
114 ln -s %{_datadir}/svi/sound/operation/volume_control.wav /opt/share/svi/sound/operation
115 ln -s %{_datadir}/svi/haptic/default/Basic_call.tht /opt/share/svi/haptic/default
116 ln -s %{_datadir}/svi/haptic/touch/touch.tht /opt/share/svi/haptic/touch
118 %postun -p /sbin/ldconfig
121 rm -rf %{_datadir}/svi/
122 rm -rf /opt/share/svi/
125 %manifest %{name}.manifest
126 %defattr(-,root,root,-)
127 %{_libdir}/libfeedback.so.*
128 %{_datadir}/license/%{name}
130 %files -n libfeedback-devel
131 %manifest %{name}.manifest
132 %defattr(-,root,root,-)
133 %{_includedir}/feedback/*.h
134 %{_libdir}/libfeedback.so
135 %{_libdir}/pkgconfig/feedback.pc
138 %manifest %{name}.manifest
139 %defattr(-,root,root,-)
140 %{_libdir}/libsvi.so.*
142 %files -n libsvi-devel
143 %manifest %{name}.manifest
144 %defattr(-,root,root-)
145 %{_includedir}/svi/*.h
147 %{_libdir}/pkgconfig/svi.pc
150 %manifest %{name}.manifest
151 %defattr(644,root,root,-)
153 %defattr(666,app,app,-)
154 %dir /opt/share/svi/sound/touch
155 %dir /opt/share/svi/sound/operation
156 %dir /opt/share/svi/haptic/default
157 %dir /opt/share/svi/haptic/touch