author | halton |
Tue, 10 Feb 2009 08:45:33 +0000 | |
changeset 15051 | 6f635a5829a0 |
parent 13677 | 488541dec2e1 |
child 15715 | 5e3636a97cb7 |
permissions | -rw-r--r-- |
13238 | 1 |
# |
2 |
# spec file for package SUNWespeak |
|
3 |
# |
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
# Owner: ww36193 |
|
9 |
# |
|
10 |
||
13198 | 11 |
%include Solaris.inc |
12 |
||
13 |
%define src_name espeak |
|
14 |
%define src_url http://downloads.sourceforge.net/%{src_name} |
|
15 |
||
16 |
Name: SUNWespeak |
|
17 |
Summary: eSpeak - compact open source software speech synthesizer |
|
18 |
Version: 1.37 |
|
19 |
Source: %{src_url}/%{src_name}-%{version}-source.zip |
|
13238 | 20 |
Source1: %{name}-manpages-0.1.tar.gz |
13330 | 21 |
# date:2008-08-15 owner:ww36193 type:bug |
13198 | 22 |
Patch1: espeak-01-makefile.diff |
13349 | 23 |
# date:2008-08-29 owner:ww36193 type:bug bugster:6741969 |
13330 | 24 |
Patch2: espeak-02-endian.diff |
13198 | 25 |
SUNW_BaseDir: %{_basedir} |
26 |
SUNW_Copyright: %{name}.copyright |
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
15051 | 28 |
|
13198 | 29 |
%include default-depend.inc |
13677
488541dec2e1
Add BuildRequires: SUNWaudh. OpenSolaris doesn't install SUNWaudh by default.
ww36193
parents:
13349
diff
changeset
|
30 |
BuildRequires: SUNWaudh |
15051 | 31 |
Requires: SUNWlibC |
32 |
Requires: SUNWlibmsr |
|
13198 | 33 |
|
34 |
%package devel |
|
35 |
Summary: %{summary} - development files |
|
36 |
SUNW_BaseDir: %{_basedir} |
|
37 |
%include default-depend.inc |
|
38 |
Requires: %name |
|
39 |
||
40 |
%prep |
|
41 |
%setup -q -n %{src_name}-%{version}-source |
|
42 |
%patch1 -p1 |
|
13330 | 43 |
%patch2 -p1 |
13238 | 44 |
gzcat %SOURCE1 | tar xf - |
13198 | 45 |
|
46 |
%build |
|
47 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
48 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
49 |
CPUS=1 |
|
50 |
fi |
|
13330 | 51 |
%ifarch sparc |
52 |
%define endian_macro "-DBYTE_ORDER=BIG_ENDIAN" |
|
53 |
cd platforms/big_endian |
|
54 |
make -j$CPUS CFLAGS="%{endian_macro}" |
|
55 |
./espeak-phoneme-data ../../espeak-data ../../espeak-data phondata-manifest |
|
56 |
cd ../.. |
|
57 |
%else |
|
58 |
%define endian_macro "" |
|
59 |
%endif |
|
13198 | 60 |
cd src |
13330 | 61 |
make -j$CPUS EXTRA_LIBS=-lm AUDIO=sada CXXFLAGS="-O2 %{endian_macro}" |
62 |
make install EXTRA_LIBS=-lm AUDIO=sada DESTDIR=$RPM_BUILD_ROOT CXXFLAGS="-O2 %{endian_macro}" |
|
13198 | 63 |
rm $RPM_BUILD_ROOT/%{_libdir}/lib*.a |
64 |
||
13238 | 65 |
%install |
66 |
#Install manpages |
|
67 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
68 |
cd %{_builddir}/%src_name-%version-source/sun-manpages |
|
69 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
70 |
||
71 |
||
13198 | 72 |
%clean |
73 |
rm -rf $RPM_BUILD_ROOT |
|
74 |
||
75 |
%files |
|
76 |
%defattr (-, root, bin) |
|
77 |
%dir %attr (0755, root, bin) %{_bindir} |
|
78 |
%{_bindir}/* |
|
79 |
%dir %attr (0755, root, bin) %{_libdir} |
|
80 |
%{_libdir}/lib*.so* |
|
81 |
%dir %attr (0755, root, sys) %{_datadir} |
|
82 |
%{_datadir}/* |
|
83 |
||
84 |
%files devel |
|
85 |
%defattr (-, root, bin) |
|
86 |
%{_includedir} |
|
87 |
||
88 |
%changelog |
|
15051 | 89 |
* Tue Feb 10 2009 - [email protected] |
90 |
- Add dependency on SUNWlibC and SUNWlibmsr, CR #6755918 |
|
13677
488541dec2e1
Add BuildRequires: SUNWaudh. OpenSolaris doesn't install SUNWaudh by default.
ww36193
parents:
13349
diff
changeset
|
91 |
* Fri Sep 19 2008 - Willie Walker |
488541dec2e1
Add BuildRequires: SUNWaudh. OpenSolaris doesn't install SUNWaudh by default.
ww36193
parents:
13349
diff
changeset
|
92 |
- Add BuildRequires: SUNWaudh |
13349 | 93 |
* Mon Sep 02 2008 - Harry Lu |
94 |
- Add bug ID for espeak-02-endian.diff |
|
13330 | 95 |
* Fri Aug 29 2008 - Willie Walker |
96 |
- Fix SPARC build endian-ness |
|
13238 | 97 |
* Thu Aug 21 2008 - Dermot McCluskey |
98 |
- added manpages and file header |
|
13198 | 99 |
* Wed Aug 20 2008 - Willie Walker |
100 |
- Migrate to JDS (SFEespeak.spec to SUNWespeak.spec) |
|
101 |
* Tue Aug 12 2008 - Willie Walker |
|
102 |
- Port to SunStudio (thanks Brian Cameron!) |
|
103 |
* Tue Apr 15 2008 - Willie Walker |
|
104 |
- Upgrade to version 1.37 which contains direct SADA support and eliminates |
|
105 |
all PulseAudio and other dependencies. |
|
106 |
* Tue Jan 29 2008 - Willie Walker |
|
107 |
- Initial spec |