File espeak.spec of Package espeak
#
# spec file for package espeak (Version 1.39)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#
# norootforbuild
Name: espeak
BuildRequires: gcc-c++ portaudio portaudio-devel jack jack-devel pulseaudio-devel
Version: 1.39
Release: 0
License: GPL
Group: Hardware/Other
Source: espeak-1.39.tbz2
Summary: espeak - tts
PreReq: %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
eSpeak is a compact open source software speech synthesizer for English
and other languages.
Authors:
--------
%package devel
Summary: espeak development package
Group: Development/Languages/C and C++
Requires: espeak
%description devel
header file to build applications with espeak support
%prep
%setup -n espeak-1.39/src
#%patch -p2
%build
make CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE" LIB_CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -fPIC"
%install
make LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files devel
%defattr (-,root,root,755)
%{_libdir}/libespeak.so
%dir /usr/include/espeak
/usr/include/espeak/*
%files
%defattr (-,root,root,755)
%doc ../docs/*
%doc ../ChangeLog
/usr/share/espeak-data
%{_libdir}/libespeak.a
%{_libdir}/libespeak.so.1
%{_libdir}/libespeak.so.1.1.39
/usr/bin/espeak
%changelog -n espeak