LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File flite.spec of Package flite (Project home:inescid:language)

#
# 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:        1.4
Release:        1
License:        BSD-style
Summary:        Small, fast speech synthesis engine (text-to-speech)
Url:            http://www.speech.cs.cmu.edu/flite
Group:          Productivity/Multimedia/Other
Source0:        http://www.speech.cs.cmu.edu/%{name}/packed/%{name}-%{version}/%{name}-%{version}-release.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         flite-1.4-sharedlibs.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  alsa-devel
BuildRequires:  alsa-lib-devel
BuildRequires:  autoconf
BuildRequires:  ed
BuildRequires:  texinfo

%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 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
%patch0


%build
autoconf
%configure \
  --enable-shared \
  --with-audio=alsa

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

%install
make install INSTALLBINDIR=%{buildroot}%{_bindir} INSTALLLIBDIR=%{buildroot}%{_libdir}  INSTALLINCDIR=%{buildroot}%{_includedir}/flite

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc ACKNOWLEDGEMENTS README COPYING doc/html
%{_libdir}/*.so.*
%{_bindir}/*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/flite

%changelog