File bayonne2.spec of Package bayonne2
#
# spec file for package bayonne2 (Version 1.5.19)
#
# Copyright (c) 2009 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
Name: bayonne2
BuildRequires: SDL-devel ccaudio2-devel ccscript3-devel doxygen gcc-c++ libccrtp-devel libdv openh323-devel openldap2 openldap2-devel pam-devel pkgconfig pwlib-devel python-devel sox-devel speex-devel
%ifnarch s390 s390x
BuildRequires: capi4linux capi4linux-devel
%endif
Version: 1.5.19
Release: 250
Summary: the telephony server of the GNU project
Url: http://www.gnu.org/software/bayonne
License: GPL v2 or later
Group: Productivity/Telephony/Servers
AutoReqProv: on
PreReq: %insserv_prereq %fillup_prereq
Recommends: logrotate cron
Provides: bayonne
Obsoletes: bayonne
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: %{name}-%{version}.dif
Patch1: bayonne2-1.5.19-const_char.dif
%description
Bayonne offers a script programmable modular server for deploying
multi-line telephony voice response and computer telephony
applications.
Authors:
--------
David Sugar <dyfet@ostel.com>
David Rowe <david@dspace.com>
Kai Germaschewski <kai.germaschewski@gmx.de>
%package devel
License: GPL v2 or later
Summary: the telephony server of the GNU project
Group: Development/Libraries/Other
Requires: %{name} = %{version} ccscript3-devel ccaudio2-devel
Provides: bayonne-devel
Obsoletes: bayonne-devel
%description devel
the telephony server of the GNU project
Authors:
--------
David Sugar <dyfet@ostel.com>
David Rowe <david@dspace.com>
Kai Germaschewski <kai.germaschewski@gmx.de>
%package UsEng
License: GPL v2 or later
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
%patch
%patch1
%build
autoreconf --force --install
CXXFLAGS="$RPM_OPT_FLAGS" \
%configure --with-pic \
--disable-static \
--libexecdir=%{_datadir}/bayonne/exec \
--without-openh323
make CFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}
%install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
make DESTDIR=$RPM_BUILD_ROOT install
ln -s ../../etc/init.d/bayonne $RPM_BUILD_ROOT%{_sbindir}/rcbayonne
rm -f %{buildroot}%{_libdir}/libbayonne.la
%clean
rm -rf $RPM_BUILD_ROOT
%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 /etc/bayonne
%config(noreplace) /etc/bayonne/*.conf
%config /etc/logrotate.d/bayonne
%config /etc/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
%dir %{_datadir}/bayonne
%{_datadir}/bayonne/*
%{_libdir}/libbayonne*.so.*
%dir %{_libdir}/bayonne-1.5
%{_libdir}/bayonne-1.5/*
%{_mandir}/man1/*.1*
%files devel
%defattr(-,root,root)
%{_prefix}/include/cc++/*.h
%{_libdir}/libbayonne.so
%{_libdir}/pkgconfig/libbayonne.pc
%doc docs/html/*
%files UsEng
%defattr(-,root,root)
%dir %{_datadir}/phrasebook
%{_datadir}/phrasebook/*
%changelog