File espeak.spec of Package espeak

#
# spec file for package espeak (Version 1.39)
#
# Copyright (c) 2008 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/
#

# norootforbuild

Url:            http://espeak.sourceforge.net

Name:           espeak
BuildRequires:  gcc-c++ jack jack-devel portaudio portaudio-devel pulseaudio-devel
Version:        1.39
Release:        2
License:        GPL v3 or later
Group:          Productivity/Other
Source:         espeak-1.39.tbz2
Summary:        TTS system for English/German and other languages
PreReq:         %insserv_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
espeak is a multi-lingual text-to-speach system



Authors:
--------
    Jonathan Duddington <jonsd@users.sourceforge.net>

%package devel
License:        GPL v3 or later
Summary:        TTS system for English/German and other languages
Group:          Productivity/Other
Requires:       espeak

%description devel
espeak is a multi-lingual text-to-speach system



Authors:
--------
    Jonathan Duddington <jonsd@users.sourceforge.net>

%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
* Tue Oct 14 2008 marco@suse.de
- enabled pulseaudio support and disabled portaudio
* Thu Sep 11 2008 marco@suse.de
- updated to 1.39
- split the package in espeak and espeak-devel
* Fri Feb 15 2008 marco@suse.de
- updated to 1.31.11
* Fri Feb 15 2008 marco@suse.de
- updated to 1.31
  Tue Jan  8 20:05:57 CET 2008
- added compiler option -Wno-variadic-macros to avoid build errors
  Tue Jan  8 14:23:20 CET 2008
- updated to espeak 1.30
* Mon Jul 23 2007 marco@suse.de
- fixed build-prblems for x86_64
- added LIBDIR variable to Makefile
openSUSE Build Service is sponsored by