File flite.spec of Package flite

#
# spec file for package flite
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           flite
Version:        2.0.0
Release:        0
License:        BSD-style
Summary:        Small, fast speech synthesis engine (text-to-speech)
URL:            http://www.festvox.org/flite/
Group:          Productivity/Multimedia/Other
Source:         http://www.festvox.org/flite/packed/flite-2.0/%name-%version-release.tar.bz2
Patch1:         flite-1.4-doc-Makefile.patch
Patch2:         flite-kill-rpath.dif
BuildRoot:      %_tmppath/%name-%version-build
BuildRequires:  alsa-devel
BuildRequires:  alsa-lib-devel
BuildRequires:  autoconf
BuildRequires:  ed
BuildRequires:  texinfo
BuildRequires:  texi2html

%description
Flite (festival-lite) is a small, fast run-time speech synthesis engine
developed at CMU and primarily designed for small embedded machines and/or
large servers. Flite is designed as an alternative synthesis engine to
Festival for voices built using the FestVox suite of voice building tools.

%package -n libflite1
Summary:        A
Group:          System/Libraries

%description -n libflite1

%package -n libflite_cmu_grapheme_lang1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_grapheme_lang1

%package -n libflite_cmu_grapheme_lex1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_grapheme_lex1

%package -n libflite_cmu_indic_lang1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_indic_lang1

%package -n libflite_cmu_indic_lex1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_indic_lex1

%package -n libflite_cmu_time_awb1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_time_awb1

%package -n libflite_cmu_us_awb1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_us_awb1

%package -n libflite_cmu_us_kal1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_us_kal1

%package -n libflite_cmu_us_kal16-1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_us_kal16-1

%package -n libflite_cmu_us_rms1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_us_rms1

%package -n libflite_cmu_us_slt1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmu_us_slt1

%package -n libflite_cmulex1
Summary:        A
Group:          System/Libraries

%description -n libflite_cmulex1

%package -n libflite_usenglish1
Summary:        A
Group:          System/Libraries

%description -n libflite_usenglish1

%package devel
Summary:        Development files for flite
Group:          Development/Libraries/C and C++
Requires:       flite = %version

%description devel
Development files for Flite, a small, fast speech synthesis engine.

%prep
%setup -q -n %name-%version-release
%patch -P 1 -P 2 -p1

%build
autoconf
%configure --enable-shared --disable-static --with-audio=alsa

# This package fails parallel make (thus cannot be built using "_smp_flags")
make %{?_smp_mflags}
# Build documentation
cd doc
make flite.html

%install
make install INSTALLBINDIR="%buildroot/%_bindir" \
	INSTALLLIBDIR="%buildroot/%_libdir" \
	INSTALLINCDIR="%buildroot/%_includedir/flite"
rm -f "%buildroot/%_libdir"/*.a

%post   -n libflite1 -p /sbin/ldconfig
%postun -n libflite1 -p /sbin/ldconfig
%post   -n libflite_cmu_grapheme_lang1 -p /sbin/ldconfig
%postun -n libflite_cmu_grapheme_lang1 -p /sbin/ldconfig
%post   -n libflite_cmu_grapheme_lex1 -p /sbin/ldconfig
%postun -n libflite_cmu_grapheme_lex1 -p /sbin/ldconfig
%post   -n libflite_cmu_indic_lang1 -p /sbin/ldconfig
%postun -n libflite_cmu_indic_lang1 -p /sbin/ldconfig
%post   -n libflite_cmu_indic_lex1 -p /sbin/ldconfig
%postun -n libflite_cmu_indic_lex1 -p /sbin/ldconfig
%post   -n libflite_cmu_time_awb1 -p /sbin/ldconfig
%postun -n libflite_cmu_time_awb1 -p /sbin/ldconfig
%post   -n libflite_cmu_us_awb1 -p /sbin/ldconfig
%postun -n libflite_cmu_us_awb1 -p /sbin/ldconfig
%post   -n libflite_cmu_us_kal1 -p /sbin/ldconfig
%postun -n libflite_cmu_us_kal1 -p /sbin/ldconfig
%post   -n libflite_cmu_us_kal16-1 -p /sbin/ldconfig
%postun -n libflite_cmu_us_kal16-1 -p /sbin/ldconfig
%post   -n libflite_cmu_us_rms1 -p /sbin/ldconfig
%postun -n libflite_cmu_us_rms1 -p /sbin/ldconfig
%post   -n libflite_cmu_us_slt1 -p /sbin/ldconfig
%postun -n libflite_cmu_us_slt1 -p /sbin/ldconfig
%post   -n libflite_cmulex1 -p /sbin/ldconfig
%postun -n libflite_cmulex1 -p /sbin/ldconfig
%post   -n libflite_usenglish1 -p /sbin/ldconfig
%postun -n libflite_usenglish1 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%_bindir/*

%files -n libflite1
%defattr(-,root,root)
%_libdir/libflite.so.*

%files -n libflite_cmu_grapheme_lang1
%defattr(-,root,root)
%_libdir/libflite_cmu_grapheme_lang.so.*

%files -n libflite_cmu_grapheme_lex1
%defattr(-,root,root)
%_libdir/libflite_cmu_grapheme_lex.so.*

%files -n libflite_cmu_indic_lang1
%defattr(-,root,root)
%_libdir/libflite_cmu_indic_lang.so.*

%files -n libflite_cmu_indic_lex1
%defattr(-,root,root)
%_libdir/libflite_cmu_indic_lex.so.*

%files -n libflite_cmu_time_awb1
%defattr(-,root,root)
%_libdir/libflite_cmu_time_awb.so.*

%files -n libflite_cmu_us_awb1
%defattr(-,root,root)
%_libdir/libflite_cmu_us_awb.so.*

%files -n libflite_cmu_us_kal1
%defattr(-,root,root)
%_libdir/libflite_cmu_us_kal.so.*

%files -n libflite_cmu_us_kal16-1
%defattr(-,root,root)
%_libdir/libflite_cmu_us_kal16.so.*

%files -n libflite_cmu_us_rms1
%defattr(-,root,root)
%_libdir/libflite_cmu_us_rms.so.*

%files -n libflite_cmu_us_slt1
%defattr(-,root,root)
%_libdir/libflite_cmu_us_slt.so.*

%files -n libflite_cmulex1
%defattr(-,root,root)
%_libdir/libflite_cmulex.so.*

%files -n libflite_usenglish1
%defattr(-,root,root)
%_libdir/libflite_usenglish.so.*

%files devel
%defattr(-,root,root)
%_includedir/flite/
%_libdir/*.so
%doc ACKNOWLEDGEMENTS README COPYING doc/html

%changelog