Name: festdoc Summary: HTML, Postscript, and Texinfo documentation for Festival Version: 1.4.2 Release: 0.1%{?dist} URL: http://www.cstr.ed.ac.uk/projects/festival/ Group: Documentation License: MIT-style Source: http://festvox.org/packed/festival/%{version}/festdoc-%{version}.tar.gz BuildRequires: tetex Requires(post): /sbin/install-info Requires(postun): /sbin/install-info BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Provides: festival-docs Obsoletes: festival-docs <= 1.4.2 BuildArch: noarch %description HTML, Postscript, and Texinfo documentation for the Festival text-to-speech and speech synthesis system. %prep %setup -q %build echo Removing zero-length files: find . -size 0 -delete echo done # moving speech_tools html files to their own directory mkdir -p speech-tools/html # The -- is needed because of the file which begins # with a "-". Nice, huh? mv -- speech_tools/doc/*.{html,gif,css,jpg} speech-tools/html %install # info pages -- the rest is all done with the docs macro mkdir -p $RPM_BUILD_ROOT%{_infodir} cp -p festival/info/* $RPM_BUILD_ROOT%{_infodir} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_infodir}/festival.info.gz %{_infodir}/dir --section "Accessibility" > /dev/null 2>&1 : %postun if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/festival.info.gz %{_infodir}/dir --section "Accessibility" > /dev/null 2>&1 fi : %files %defattr(-,root,root) %doc festival/html/*html %doc festival/festival.ps %doc speech-tools/html/* %{_infodir}/* %changelog * Wed Apr 4 2007 Matthew Miller 1.4.2-0.1 - split from festival package into its own subpackage - package the speech-tools docs better - package the postscript version of the festival docs - noarch