File bayonne2.spec of Package bayonne2
#
# spec file for package bayonne2
#
# 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: bayonne2
BuildRequires: SDL-devel
BuildRequires: ccaudio2-devel
BuildRequires: ccrtp-devel
BuildRequires: ccscript3-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libdv
BuildRequires: openh323-devel
BuildRequires: openldap2
BuildRequires: openldap2-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: pwlib-devel
BuildRequires: python-devel
BuildRequires: sox-devel
BuildRequires: speex-devel
%ifnarch s390 s390x
BuildRequires: capi4linux
BuildRequires: capi4linux-devel
%endif
Version: 1.5.19
Release: 250
License: GPLv2+
Summary: the telephony server of the GNU project
Url: http://www.gnu.org/software/bayonne
Group: Productivity/Telephony/Servers
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}.dif
Patch1: bayonne2-1.5.19-const_char.dif
PreReq: %fillup_prereq
PreReq: %insserv_prereq
Recommends: cron
Recommends: logrotate
Provides: bayonne
Obsoletes: bayonne
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bayonne offers a script programmable modular server for deploying
multi-line telephony voice response and computer telephony
applications.
%package devel
License: GPLv2+
Summary: the telephony server of the GNU project
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: ccaudio2-devel
Requires: ccscript3-devel
Provides: bayonne-devel
Obsoletes: bayonne-devel
%description devel
the telephony server of the GNU project
%package UsEng
License: GPLv2+
Summary: voice library for US English Male speaker
Group: Productivity/Telephony/Servers
Requires: %{name} = %{version}
Provides: bayonne-UsEng
Obsoletes: bayonne-UsEng
%description UsEng
The US English speaker library offers default voice prompts for the
Bayonne telephony server.
%prep
%setup -q
%patch0
%patch1
%build
autoreconf --force --install
CXXFLAGS="%{optflags}" \
%configure --with-pic \
--disable-static \
--libexecdir=%{_datadir}/bayonne/exec \
--without-openh323
make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_sysconfdir}/init.d
mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_sbindir}
%make_install
ln -s ../../etc/init.d/bayonne %{buildroot}%{_sbindir}/rcbayonne
rm -f %{buildroot}%{_libdir}/libbayonne.la
%preun
%stop_on_removal bayonne
%post
/sbin/ldconfig
%{fillup_and_insserv bayonne}
%postun
/sbin/ldconfig
%restart_on_update bayonne
%{insserv_cleanup}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%dir %{_sysconfdir}/bayonne
%config(noreplace) %{_sysconfdir}/bayonne/*.conf
%config %{_sysconfdir}/logrotate.d/bayonne
%config %{_sysconfdir}/init.d/bayonne
%{_sbindir}/bayonne
%{_sbindir}/rcbayonne
%{_bindir}/audiosync
%{_bindir}/btsencode
%{_bindir}/btsexec
%{_bindir}/btsexec-perl
%{_bindir}/btsexec-php
%{_bindir}/btsexec-python
%{_bindir}/btsmusic
%{_bindir}/ttstool
%{_datadir}/bayonne/
%{_libdir}/libbayonne*.so.*
%{_libdir}/bayonne-1.5/
%{_mandir}/man1/*.1*
%files devel
%defattr(-,root,root)
%{_includedir}/cc++/*.h
%{_libdir}/libbayonne.so
%{_libdir}/pkgconfig/libbayonne.pc
%doc docs/html/*
%files UsEng
%defattr(-,root,root)
%{_datadir}/phrasebook/
%changelog