update directory path for migration
[platform/core/uifw/tts.git] / packaging / tts.spec
1 Name:       tts
2 Summary:    Text To Speech client library and daemon
3 Version:    0.2.43
4 Release:    1
5 Group:      Graphics & UI Framework/Voice Framework
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
9 Source1002: %{name}-devel.manifest
10 Requires(post):   /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig(aul)
13 BuildRequires:  pkgconfig(capi-base-common)
14 BuildRequires:  pkgconfig(capi-media-audio-io)
15 BuildRequires:  pkgconfig(capi-system-info)
16 BuildRequires:  pkgconfig(dbus-1)
17 BuildRequires:  pkgconfig(dlog)
18 BuildRequires:  pkgconfig(ecore)
19 BuildRequires:  pkgconfig(glib-2.0)
20 BuildRequires:  pkgconfig(libtzplatform-config)
21 BuildRequires:  pkgconfig(libxml-2.0)
22 BuildRequires:  pkgconfig(vconf)
23
24
25 BuildRequires:  cmake
26
27 %description
28 Text To Speech client library and daemon.
29
30
31 %package devel
32 Summary:    Text To Speech header files for TTS development
33 Group:      libdevel
34 Requires:   %{name} = %{version}-%{release}
35
36 %package setting-devel
37 Summary:    Text To Speech setting header files for TTS development
38 Group:      libdevel
39 Requires:   %{name} = %{version}-%{release}
40
41 %package engine-devel
42 Summary:    Text To Speech engine header files for TTS development
43 Group:      libdevel
44 Requires:   %{name} = %{version}-%{release}
45
46 %description devel
47 Text To Speech header files for TTS development.
48
49 %description setting-devel
50 Text To Speech setting header files for TTS development.
51
52 %description engine-devel
53 Text To Speech engine header files for TTS development.
54
55
56 %prep
57 %setup -q -n %{name}-%{version}
58 cp %{SOURCE1001} %{SOURCE1002} .
59
60
61 %build
62 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
63 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
64 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
65
66 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
67 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
68 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
69
70
71 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
72         -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN
73
74 make %{?jobs:-j%jobs}
75
76 %install
77 rm -rf %{buildroot}
78 mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
79 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
80
81 %make_install
82
83 %post 
84 /sbin/ldconfig
85
86 mkdir -p %{_libdir}/voice
87
88 mkdir -p %{TZ_SYS_RO_SHARE}/voice/test
89
90 %postun -p /sbin/ldconfig
91
92 %files
93 %manifest %{name}.manifest
94 %defattr(-,root,root,-)
95 %{_libdir}/lib*.so
96 %{_bindir}/tts-daemon*
97 %{TZ_SYS_RO_SHARE}/voice/tts/1.0/tts-config.xml
98 %{TZ_SYS_RO_SHARE}/dbus-1/system-services/org.tizen.voice*
99 %{TZ_SYS_RO_SHARE}/voice/test/tts-test
100 %{TZ_SYS_RO_SHARE}/license/%{name}
101 /etc/dbus-1/system.d/tts-server.conf
102
103 %files devel
104 %manifest %{name}-devel.manifest
105 %defattr(-,root,root,-)
106 %{_libdir}/pkgconfig/tts.pc
107 %{_includedir}/tts.h
108
109 %files setting-devel
110 %defattr(-,root,root,-)
111 %{_libdir}/pkgconfig/tts-setting.pc
112 %{_includedir}/tts_setting.h
113
114 %files engine-devel
115 %defattr(-,root,root,-)
116 %{_libdir}/pkgconfig/tts-engine.pc
117 %{_includedir}/ttsp.h