author | davelam |
Thu, 07 Aug 2008 02:31:31 +0000 | |
branch | gnome-2-22 |
changeset 12491 | b2fc226f1836 |
parent 12184 | ae608219405c |
child 13018 | f2e9d53afe1b |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-a11y-speech |
|
3 |
# |
|
4 |
# includes module(s): gnome-speech |
|
5 |
# |
|
10572 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
11928 | 10 |
# Owner: liyuan |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
14 |
%define build_dectalk %(test -f /usr/bin/say && echo 1 || echo 0) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
15 |
%define build_espeak %(pkginfo -q SFEespeak && echo 1 || echo 0) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
16 |
%define build_swift %(test -d /opt/swift && echo 1 || echo 0) |
9397 | 17 |
|
18 |
%use gnome_speech = gnome-speech.spec |
|
19 |
||
20 |
Name: SUNWgnome-a11y-speech |
|
21 |
Summary: GNOME text-to-speech engine |
|
22 |
Version: %{default_pkg_version} |
|
23 |
SUNW_BaseDir: %{_basedir} |
|
11976 | 24 |
SUNW_Copyright: %{name}.copyright |
9397 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
26 |
||
27 |
%include default-depend.inc |
|
28 |
Requires: SUNWgnome-a11y-libs |
|
29 |
Requires: SUNWgnome-base-libs |
|
30 |
Requires: SUNWgnome-component |
|
31 |
BuildRequires: SUNWgnome-base-libs-devel |
|
32 |
BuildRequires: SUNWgnome-component-devel |
|
33 |
||
34 |
%package festival |
|
35 |
Summary: %{summary} - Festival Synthesis Driver |
|
36 |
SUNW_BaseDir: %{_basedir} |
|
37 |
Requires: SUNWgnome-a11y-speech |
|
38 |
%include default-depend.inc |
|
39 |
||
40 |
%package freetts |
|
41 |
Summary: %{summary} - FreeTTS Synthesis Driver |
|
42 |
SUNW_BaseDir: %{_basedir} |
|
43 |
Requires: SUNWgnome-a11y-speech |
|
44 |
%include default-depend.inc |
|
45 |
||
46 |
%if %build_dectalk |
|
47 |
%package dectalk |
|
48 |
Summary: %{summary} - Fonix DECtalk Synthesis Driver |
|
49 |
SUNW_BaseDir: %{_basedir} |
|
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
50 |
Requires: SUNWgnome-a11y-speech |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
51 |
%include default-depend.inc |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
52 |
%endif |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
53 |
|
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
54 |
%if %build_espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
55 |
%package espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
56 |
Summary: %{summary} - eSpeak Synthesis Driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
57 |
SUNW_BaseDir: %{_basedir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
58 |
Requires: SFEespeak |
9397 | 59 |
Requires: SUNWgnome-a11y-speech |
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
60 |
BuildRequires: SFEespeak-devel |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
61 |
%include default-depend.inc |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
62 |
%endif |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
63 |
|
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
64 |
%if %build_swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
65 |
%package swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
66 |
Summary: %{summary} - Cepstral Swift Synthesis Driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
67 |
SUNW_BaseDir: %{_basedir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
68 |
Requires: SUNWgnome-a11y-speech |
9397 | 69 |
%include default-depend.inc |
70 |
%endif |
|
71 |
||
72 |
%package devel |
|
73 |
Summary: %{summary} - development files |
|
74 |
SUNW_BaseDir: %{_basedir} |
|
75 |
%include default-depend.inc |
|
76 |
||
77 |
%prep |
|
78 |
rm -rf %name-%version |
|
79 |
mkdir %name-%version |
|
80 |
%gnome_speech.prep -d %name-%version |
|
81 |
||
82 |
%build |
|
83 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
84 |
export MSGFMT="/usr/bin/msgfmt" |
|
85 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
86 |
if [ `uname -r` = 5.9 ]; then |
|
87 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/j2se/include -I/usr/j2se/include/solaris" |
|
88 |
else |
|
89 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/jdk/instances/jdk1.5.0/include -I/usr/jdk/instances/jdk1.5.0/include/solaris" |
|
90 |
fi |
|
91 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
92 |
export LD_RUN_PATH="%{_libdir}" |
|
93 |
export LDFLAGS="%_ldflags" |
|
94 |
%gnome_speech.build -d %name-%version |
|
95 |
||
96 |
%install |
|
97 |
%gnome_speech.install -d %name-%version |
|
98 |
||
99 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
100 |
||
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%files |
|
105 |
%defattr (-, root, bin) |
|
106 |
%dir %attr (0755, root, bin) %{_bindir} |
|
107 |
%{_bindir}/test-speech |
|
108 |
%dir %attr (0755, root, bin) %{_libdir} |
|
109 |
%{_libdir}/libgnomespeech.so* |
|
110 |
%{_libdir}/orbit-2.0/GNOME_Speech_module.* |
|
111 |
%dir %attr (0755, root, sys) %{_datadir} |
|
112 |
%{_datadir}/idl/gnome-speech-*/GNOME_Speech*.idl |
|
10572 | 113 |
%if %option_with_java |
9397 | 114 |
%{_datadir}/jar/gnome-speech.jar |
10572 | 115 |
%endif |
9397 | 116 |
|
117 |
%files festival |
|
118 |
%defattr (-, root, bin) |
|
119 |
%dir %attr (0755, root, bin) %{_bindir} |
|
120 |
%{_bindir}/festival-synthesis-driver |
|
121 |
%dir %attr (0755, root, bin) %{_libdir} |
|
122 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server |
|
123 |
||
10572 | 124 |
%if %option_with_java |
9397 | 125 |
%files freetts |
126 |
%defattr (-, root, bin) |
|
127 |
%dir %attr (0755, root, bin) %{_bindir} |
|
128 |
%{_bindir}/freetts-synthesis-driver |
|
129 |
%dir %attr (0755, root, bin) %{_libdir} |
|
130 |
%{_libdir}/libfreettsdriver.* |
|
131 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_FreeTTS.server |
|
132 |
%dir %attr (0755, root, sys) %{_datadir} |
|
133 |
%{_datadir}/jar/freetts-synthesis-driver.jar |
|
134 |
%{_datadir}/gnome-speech/drivers/freetts/user_addenda.txt |
|
10572 | 135 |
%endif |
9397 | 136 |
|
137 |
%if %build_dectalk |
|
138 |
%files dectalk |
|
139 |
%defattr (-, root, bin) |
|
140 |
%dir %attr (0755, root, bin) %{_bindir} |
|
141 |
%{_bindir}/dectalk-synthesis-driver |
|
142 |
%dir %attr (0755, root, bin) %{_libdir} |
|
143 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Dectalk.server |
|
144 |
%endif |
|
145 |
||
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
146 |
%if %build_espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
147 |
%files espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
148 |
%defattr (-, root, bin) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
149 |
%dir %attr (0755, root, bin) %{_bindir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
150 |
%{_bindir}/espeak-synthesis-driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
151 |
%dir %attr (0755, root, bin) %{_libdir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
152 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Espeak.server |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
153 |
%endif |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
154 |
|
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
155 |
%if %build_swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
156 |
%files swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
157 |
%defattr (-, root, bin) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
158 |
%dir %attr (0755, root, bin) %{_bindir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
159 |
%{_bindir}/swift-synthesis-driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
160 |
%dir %attr (0755, root, bin) %{_libdir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
161 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Swift.server |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
162 |
%endif |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
163 |
|
9397 | 164 |
%files devel |
165 |
%defattr (-, root, bin) |
|
166 |
%dir %attr (0755, root, bin) %{_includedir} |
|
167 |
%{_includedir}/gnome-speech-*/gnome-speech/*.h |
|
168 |
||
169 |
%dir %attr (0755, root, bin) %{_libdir} |
|
170 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
171 |
%{_libdir}/pkgconfig/* |
|
172 |
||
173 |
%changelog |
|
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
174 |
* Thu Apr 21 2008 - [email protected] |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
175 |
- Add new optional espeak and swift packages. Also change the way |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
176 |
the DECtalk package was created since the DECtalk folks have |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
177 |
different ways of shipping/installing their product. |
11976 | 178 |
* Mon Mar 31 2008 - [email protected] |
179 |
- Add copyright file |
|
10572 | 180 |
* Fri Sep 28 2007 - [email protected] |
181 |
- disable packaging java stuff if the --without-java option is used |
|
9397 | 182 |
* Thu Jul 13 2006 - [email protected] |
183 |
- Add new packaging scheme |
|
184 |
* Sun Jun 11 2006 - [email protected] |
|
185 |
- change group from other to bin/sys |
|
186 |
* Tue May 09 2006 - [email protected] |
|
187 |
- merge -share pkg(s) into the base pkg(s) |
|
188 |
* Mon Feb 20 2006 - [email protected] |
|
189 |
- Update Build/Requires after running check-deps.pl script. |
|
190 |
* Sat Oct 02 2004 - [email protected] |
|
191 |
- added %pkgbuild_postprocess |
|
192 |
* Wed Sep 22 2004 - [email protected] |
|
193 |
- Correct JDK path in CFLAGS so jni.h can be found. |
|
194 |
* Fri Jul 23 2004 - [email protected] |
|
195 |
- Move freetts to SUNWgnome-a11y-libs. |
|
196 |
* Tue Jun 22 2004 - [email protected] |
|
197 |
- changed install location to /usr/lib and /usr/bin |
|
198 |
* Thu Mar 11 2004 - [email protected] |
|
199 |
- Add jar files that come from freetts module. |
|
200 |
* Mon Mar 02 2004 - [email protected] |
|
201 |
- add LD_RUN_PATH since -R{%_libdir} doesn't seem to work |
|
202 |
* Mon Mar 01 2004 - [email protected] |
|
203 |
- add share, devel subpkgs |