author | hem |
Mon, 08 Feb 2010 06:46:00 +0000 | |
branch | opensolaris-2009-06 |
changeset 14354 | c3d6244280dc |
parent 13654 | c8faa3142749 |
child 15650 | dbcf7e3715dd |
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_swift %(test -d /opt/swift && echo 1 || echo 0) |
9397 | 16 |
|
17 |
%use gnome_speech = gnome-speech.spec |
|
18 |
||
19 |
Name: SUNWgnome-a11y-speech |
|
20 |
Summary: GNOME text-to-speech engine |
|
21 |
Version: %{default_pkg_version} |
|
13018 | 22 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 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 |
%package espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
55 |
Summary: %{summary} - eSpeak Synthesis Driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
56 |
SUNW_BaseDir: %{_basedir} |
13198 | 57 |
Requires: SUNWespeak |
9397 | 58 |
Requires: SUNWgnome-a11y-speech |
13198 | 59 |
BuildRequires: SUNWespeak-devel |
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
60 |
%include default-depend.inc |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
61 |
|
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
62 |
%if %build_swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
63 |
%package swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
64 |
Summary: %{summary} - Cepstral Swift Synthesis Driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
65 |
SUNW_BaseDir: %{_basedir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
66 |
Requires: SUNWgnome-a11y-speech |
9397 | 67 |
%include default-depend.inc |
68 |
%endif |
|
69 |
||
70 |
%package devel |
|
71 |
Summary: %{summary} - development files |
|
72 |
SUNW_BaseDir: %{_basedir} |
|
73 |
%include default-depend.inc |
|
74 |
||
75 |
%prep |
|
76 |
rm -rf %name-%version |
|
77 |
mkdir %name-%version |
|
78 |
%gnome_speech.prep -d %name-%version |
|
13018 | 79 |
cd %{_builddir}/%name-%version |
80 |
gzcat %SOURCE0 | tar xf - |
|
9397 | 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 |
||
13018 | 99 |
# install man page |
100 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
101 |
cd %{_builddir}/%name-%version/sun-manpages |
|
102 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
103 |
||
104 |
||
9397 | 105 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
106 |
||
107 |
%clean |
|
108 |
rm -rf $RPM_BUILD_ROOT |
|
109 |
||
110 |
%files |
|
111 |
%defattr (-, root, bin) |
|
112 |
%dir %attr (0755, root, bin) %{_bindir} |
|
113 |
%{_bindir}/test-speech |
|
114 |
%dir %attr (0755, root, bin) %{_libdir} |
|
115 |
%{_libdir}/libgnomespeech.so* |
|
116 |
%{_libdir}/orbit-2.0/GNOME_Speech_module.* |
|
117 |
%dir %attr (0755, root, sys) %{_datadir} |
|
13654 | 118 |
%doc -d gnome-speech-%{gnome_speech.version} README AUTHORS |
119 |
%doc(bzip2) -d gnome-speech-%{gnome_speech.version} COPYING NEWS ChangeLog |
|
120 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 121 |
%{_datadir}/idl/gnome-speech-*/GNOME_Speech*.idl |
13018 | 122 |
%dir %attr(0755, root, bin) %{_mandir} |
123 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
124 |
%{_mandir}/*/* |
|
10572 | 125 |
%if %option_with_java |
9397 | 126 |
%{_datadir}/jar/gnome-speech.jar |
10572 | 127 |
%endif |
9397 | 128 |
|
129 |
%files festival |
|
130 |
%defattr (-, root, bin) |
|
131 |
%dir %attr (0755, root, bin) %{_bindir} |
|
132 |
%{_bindir}/festival-synthesis-driver |
|
133 |
%dir %attr (0755, root, bin) %{_libdir} |
|
134 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server |
|
135 |
||
10572 | 136 |
%if %option_with_java |
9397 | 137 |
%files freetts |
138 |
%defattr (-, root, bin) |
|
139 |
%dir %attr (0755, root, bin) %{_bindir} |
|
140 |
%{_bindir}/freetts-synthesis-driver |
|
141 |
%dir %attr (0755, root, bin) %{_libdir} |
|
142 |
%{_libdir}/libfreettsdriver.* |
|
143 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_FreeTTS.server |
|
144 |
%dir %attr (0755, root, sys) %{_datadir} |
|
145 |
%{_datadir}/jar/freetts-synthesis-driver.jar |
|
146 |
%{_datadir}/gnome-speech/drivers/freetts/user_addenda.txt |
|
10572 | 147 |
%endif |
9397 | 148 |
|
149 |
%if %build_dectalk |
|
150 |
%files dectalk |
|
151 |
%defattr (-, root, bin) |
|
152 |
%dir %attr (0755, root, bin) %{_bindir} |
|
153 |
%{_bindir}/dectalk-synthesis-driver |
|
154 |
%dir %attr (0755, root, bin) %{_libdir} |
|
155 |
%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Dectalk.server |
|
156 |
%endif |
|
157 |
||
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
158 |
%files espeak |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
159 |
%defattr (-, root, bin) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
160 |
%dir %attr (0755, root, bin) %{_bindir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
161 |
%{_bindir}/espeak-synthesis-driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
162 |
%dir %attr (0755, root, bin) %{_libdir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
163 |
%{_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
|
164 |
|
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
165 |
%if %build_swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
166 |
%files swift |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
167 |
%defattr (-, root, bin) |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
168 |
%dir %attr (0755, root, bin) %{_bindir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
169 |
%{_bindir}/swift-synthesis-driver |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
170 |
%dir %attr (0755, root, bin) %{_libdir} |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
171 |
%{_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
|
172 |
%endif |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
173 |
|
9397 | 174 |
%files devel |
175 |
%defattr (-, root, bin) |
|
176 |
%dir %attr (0755, root, bin) %{_includedir} |
|
177 |
%{_includedir}/gnome-speech-*/gnome-speech/*.h |
|
178 |
||
179 |
%dir %attr (0755, root, bin) %{_libdir} |
|
180 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
181 |
%{_libdir}/pkgconfig/* |
|
182 |
||
183 |
%changelog |
|
13654 | 184 |
* Thu Sep 18 2008 - [email protected] |
185 |
- Added %doc to %files for copyright. |
|
13198 | 186 |
* Wed Aug 20 2008 - [email protected] |
13201
2ba3d54b58ff
Force SUNWespeak to be built prior to SUNWgnome-a11y-speech.
ww36193
parents:
13198
diff
changeset
|
187 |
- Require SUNWespeak.spec so it will be built prior to |
2ba3d54b58ff
Force SUNWespeak to be built prior to SUNWgnome-a11y-speech.
ww36193
parents:
13198
diff
changeset
|
188 |
SUNWgnome-a11y-speech. |
2ba3d54b58ff
Force SUNWespeak to be built prior to SUNWgnome-a11y-speech.
ww36193
parents:
13198
diff
changeset
|
189 |
* Wed Aug 20 2008 - [email protected] |
13198 | 190 |
- Migrate SFEespeak.spec to SUNWespeak.spec |
13018 | 191 |
* Tue Aug 05 2008 - [email protected] |
192 |
- Add manpages. |
|
12184
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
193 |
* Thu Apr 21 2008 - [email protected] |
ae608219405c
Add new optional espeak and swift packages. Also change the way
ww36193
parents:
11976
diff
changeset
|
194 |
- 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
|
195 |
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
|
196 |
different ways of shipping/installing their product. |
11976 | 197 |
* Mon Mar 31 2008 - [email protected] |
198 |
- Add copyright file |
|
10572 | 199 |
* Fri Sep 28 2007 - [email protected] |
200 |
- disable packaging java stuff if the --without-java option is used |
|
9397 | 201 |
* Thu Jul 13 2006 - [email protected] |
202 |
- Add new packaging scheme |
|
203 |
* Sun Jun 11 2006 - [email protected] |
|
204 |
- change group from other to bin/sys |
|
205 |
* Tue May 09 2006 - [email protected] |
|
206 |
- merge -share pkg(s) into the base pkg(s) |
|
207 |
* Mon Feb 20 2006 - [email protected] |
|
208 |
- Update Build/Requires after running check-deps.pl script. |
|
209 |
* Sat Oct 02 2004 - [email protected] |
|
210 |
- added %pkgbuild_postprocess |
|
211 |
* Wed Sep 22 2004 - [email protected] |
|
212 |
- Correct JDK path in CFLAGS so jni.h can be found. |
|
213 |
* Fri Jul 23 2004 - [email protected] |
|
214 |
- Move freetts to SUNWgnome-a11y-libs. |
|
215 |
* Tue Jun 22 2004 - [email protected] |
|
216 |
- changed install location to /usr/lib and /usr/bin |
|
217 |
* Thu Mar 11 2004 - [email protected] |
|
218 |
- Add jar files that come from freetts module. |
|
219 |
* Mon Mar 02 2004 - [email protected] |
|
220 |
- add LD_RUN_PATH since -R{%_libdir} doesn't seem to work |
|
221 |
* Mon Mar 01 2004 - [email protected] |
|
222 |
- add share, devel subpkgs |