Fix typo in CMakeLists.txt and tts.spec
[platform/core/uifw/tts.git] / packaging / tts.spec
1 Name:       tts
2 Summary:    Text To Speech client library and daemon
3 Version:    0.2.44
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 BuildRequires:  pkgconfig(bundle)
24
25
26 BuildRequires:  cmake
27
28 %description
29 Text To Speech client library and daemon.
30
31
32 %package devel
33 Summary:    Text To Speech header files for TTS development
34 Group:      libdevel
35 Requires:   %{name} = %{version}-%{release}
36
37 %package setting-devel
38 Summary:    Text To Speech setting header files for TTS development
39 Group:      libdevel
40 Requires:   %{name} = %{version}-%{release}
41
42 %package engine-devel
43 Summary:    Text To Speech engine header files for TTS development
44 Group:      libdevel
45 Requires:   %{name} = %{version}-%{release}
46
47 %description devel
48 Text To Speech header files for TTS development.
49
50 %description setting-devel
51 Text To Speech setting header files for TTS development.
52
53 %description engine-devel
54 Text To Speech engine header files for TTS development.
55
56
57 %prep
58 %setup -q -n %{name}-%{version}
59 cp %{SOURCE1001} %{SOURCE1002} .
60
61
62 %build
63 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
64 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
65 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
66
67 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
68 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
69 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
70
71
72 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
73         -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN
74
75 make %{?jobs:-j%jobs}
76
77 %install
78 rm -rf %{buildroot}
79 mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
80 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
81
82 %make_install
83
84 %post 
85 /sbin/ldconfig
86
87 mkdir -p %{_libdir}/voice
88
89 mkdir -p %{TZ_SYS_RO_SHARE}/voice/test
90
91 %postun -p /sbin/ldconfig
92
93 %files
94 %manifest %{name}.manifest
95 %defattr(-,root,root,-)
96 %{_libdir}/lib*.so
97 %{TZ_SYS_RO_SHARE}/upgrade/scripts/501.tts_upgrade_24to30.sh
98 %{TZ_SYS_RO_SHARE}/voice/tts/1.0/tts-config.xml
99 %{TZ_SYS_RO_SHARE}/dbus-1/services/org.tizen.voice*
100 %{TZ_SYS_RO_SHARE}/voice/test/tts-test
101 %{TZ_SYS_RO_SHARE}/license/%{name}
102 /etc/dbus-1/system.d/tts-server.conf
103
104 %files devel
105 %manifest %{name}-devel.manifest
106 %defattr(-,root,root,-)
107 %{_libdir}/pkgconfig/tts.pc
108 %{_includedir}/tts.h
109
110 %files setting-devel
111 %defattr(-,root,root,-)
112 %{_libdir}/pkgconfig/tts-setting.pc
113 %{_includedir}/tts_setting.h
114
115 %files engine-devel
116 %defattr(-,root,root,-)
117 %{_libdir}/pkgconfig/tts-engine.pc
118 %{_includedir}/ttse.h