2 Summary: Text To Speech client library and daemon
5 Group: Graphics & UI Framework/Voice Framework
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
9 Source1002: %{name}-devel.manifest
10 Requires(post): /sbin/ldconfig
11 Requires(post): /usr/bin/buxton2ctl
12 Requires(postun): /sbin/ldconfig
14 BuildRequires: pkgconfig(aul)
15 BuildRequires: pkgconfig(capi-appfw-app-manager)
16 BuildRequires: pkgconfig(buxton2)
17 BuildRequires: pkgconfig(capi-base-common)
18 BuildRequires: pkgconfig(capi-media-audio-io)
19 BuildRequires: pkgconfig(capi-system-info)
20 BuildRequires: pkgconfig(dbus-1)
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: pkgconfig(ecore)
23 BuildRequires: pkgconfig(glib-2.0)
24 BuildRequires: pkgconfig(libgum)
25 BuildRequires: pkgconfig(libtzplatform-config)
26 BuildRequires: pkgconfig(libxml-2.0)
27 BuildRequires: pkgconfig(libsystemd)
28 BuildRequires: pkgconfig(pkgmgr)
29 BuildRequires: pkgconfig(pkgmgr-info)
30 BuildRequires: pkgconfig(pkgmgr-installer)
31 BuildRequires: pkgconfig(vconf)
32 BuildRequires: pkgconfig(bundle)
38 Text To Speech client library and daemon.
42 Summary: Text To Speech header files for TTS development
44 Requires: %{name} = %{version}-%{release}
46 %package setting-devel
47 Summary: Text To Speech setting header files for TTS development
49 Requires: %{name} = %{version}-%{release}
52 Summary: Text To Speech engine header files for TTS development
54 Requires: %{name} = %{version}-%{release}
57 Text To Speech header files for TTS development.
59 %description setting-devel
60 Text To Speech setting header files for TTS development.
62 %description engine-devel
63 Text To Speech engine header files for TTS development.
67 Summary: Text To Speech (gcov)
68 Group: Graphics & UI Framework/Voice Framework
70 Text To Speech gcov objects
75 %setup -q -n %{name}-%{version}
76 cp %{SOURCE1001} %{SOURCE1002} .
80 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
81 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
82 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
84 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
85 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
86 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
89 export CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
90 export CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
91 export FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
92 export LDFLAGS="$LDFLAGS -lgcov"
95 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \
96 -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN
102 find . -name 'test_main.c.gcno' -exec rm {} \;
103 find . -name 'tts-engine-parser.c.gcno' -exec rm {} \;
104 find . -name '*_client.c.gcno' -exec rm {} \;
105 find . -name '*_config_*.gcno' -exec rm {} \;
106 find . -name '*_dbus.c.gcno' -exec rm {} \;
107 find . -name '*_setting.c.gcno' -exec rm {} \;
108 find . -name 'ttsd_*.gcno' -exec rm {} \;
109 find . -name 'ttse.c.gcno' -exec rm {} \;
110 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
117 %if "%{tizen_profile_name}" == "tv"
118 mv -f org.tizen.voice.ttsserver.tv.service org.tizen.voice.ttsserver.service
119 mv -f org.tizen.voice.ttsnotiserver.tv.service org.tizen.voice.ttsnotiserver.service
120 mv -f org.tizen.voice.ttssrserver.tv.service org.tizen.voice.ttssrserver.service
121 mv -f org.tizen.voice.ttsinterruptserver.tv.service org.tizen.voice.ttsinterruptserver.service
127 mkdir -p %{buildroot}%{_datadir}/gcov/obj
128 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
134 mkdir -p %{_libdir}/voice
136 mkdir -p %{TZ_SYS_RO_SHARE}/voice/test
139 %postun -p /sbin/ldconfig
142 %manifest %{name}.manifest
144 %defattr(-,root,root,-)
146 %{TZ_SYS_RO_SHARE}/voice/tts/1.0/tts-config.xml
147 %{TZ_SYS_RO_SHARE}/dbus-1/system-services/org.tizen.voice.ttsserver.service
148 %{TZ_SYS_RO_SHARE}/dbus-1/system-services/org.tizen.voice.ttsnotiserver.service
149 %{TZ_SYS_RO_SHARE}/dbus-1/system-services/org.tizen.voice.ttssrserver.service
150 %{TZ_SYS_RO_SHARE}/dbus-1/system-services/org.tizen.voice.ttsinterruptserver.service
151 #%{TZ_SYS_RO_SHARE}/voice/test/tts-test
152 %{_bindir}/tts_getengine
153 %{TZ_SYS_RO_ETC}/package-manager/parserlib/metadata/libtts-engine-parser.so*
154 #%{TZ_SYS_RO_ETC}/package-manager/parserlib/metadata/libtts-engine-language-pack-parser.so*
155 /etc/dbus-1/system.d/tts-server.conf
158 %manifest %{name}-devel.manifest
159 %defattr(-,root,root,-)
160 %{_libdir}/pkgconfig/tts.pc
162 %{_includedir}/tts_internal.h
165 %defattr(-,root,root,-)
166 %{_libdir}/pkgconfig/tts-setting.pc
167 %{_includedir}/tts_setting.h
170 %defattr(-,root,root,-)
171 %{_libdir}/pkgconfig/tts-engine.pc
172 %{_includedir}/ttse.h
173 %{_includedir}/ttse_internal.h
177 %{_datadir}/gcov/obj/*