SUNWespeak.spec
changeset 13238 d8d961a1a3fd
parent 13198 690186125954
child 13330 05b169ca0430
--- a/SUNWespeak.spec	Thu Aug 21 17:52:03 2008 +0000
+++ b/SUNWespeak.spec	Thu Aug 21 17:53:58 2008 +0000
@@ -1,3 +1,13 @@
+#
+# spec file for package SUNWespeak
+#
+# Copyright (c) 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: ww36193
+#
+
 %include Solaris.inc
 
 %define src_name espeak
@@ -7,6 +17,7 @@
 Summary:	eSpeak - compact open source software speech synthesizer
 Version:	1.37
 Source:		%{src_url}/%{src_name}-%{version}-source.zip
+Source1:        %{name}-manpages-0.1.tar.gz
 Patch1:         espeak-01-makefile.diff
 SUNW_BaseDir:	%{_basedir}
 SUNW_Copyright: %{name}.copyright
@@ -22,6 +33,7 @@
 %prep
 %setup -q -n %{src_name}-%{version}-source
 %patch1 -p1
+gzcat %SOURCE1 | tar xf -
 
 %build
 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
@@ -33,6 +45,13 @@
 make install EXTRA_LIBS=-lm AUDIO=sada DESTDIR=$RPM_BUILD_ROOT
 rm $RPM_BUILD_ROOT/%{_libdir}/lib*.a
 
+%install
+#Install manpages
+rm -rf $RPM_BUILD_ROOT%{_mandir}
+cd %{_builddir}/%src_name-%version-source/sun-manpages
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -50,6 +69,8 @@
 %{_includedir}
 
 %changelog
+* Thu Aug 21 2008 - Dermot McCluskey
+- added manpages and file header
 * Wed Aug 20 2008 - Willie Walker
 - Migrate to JDS (SFEespeak.spec to SUNWespeak.spec)
 * Tue Aug 12 2008 - Willie Walker