File bayonne2.spec of Package bayonne2
#
# spec file for package bayonne2 (Version 1.5.19)
#
# 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
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: 248
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
%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
%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
* Thu Nov 06 2008 ro@suse.de
- reduce buildrequires
* Tue Sep 09 2008 hvogel@suse.de
- use libccrtp-devel in buidlrequires
* Wed May 14 2008 crrodriguez@suse.de
- add missing remote_fs dependency on the init script
- correct -devel subpackage requires
- remove useless "la" file (static libraries were already gone)
* Thu Oct 11 2007 coolo@suse.de
- sox split out sox-devel
* Thu May 24 2007 kkeil@suse.de
- add capi4linux-devel to Buildrequires
* Sat May 12 2007 olh@suse.de
- remove unused libdc1394-devel from Buildrequires
* Wed Nov 01 2006 meissner@suse.de
- use RPM_OPT_FLAGS
* Tue Jul 18 2006 kkaempf@suse.de
- update to 1.5.9
- use given init script, patched for lsb compatibility
* Thu Mar 09 2006 bk@suse.de
- Use explicit gcc-c++ in BuildRequires (was implicit by SDL-devel)
* Tue Jan 31 2006 ro@suse.de
- added pkgconfig to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 27 2005 kkaempf@suse.de
- Version 1.0.0 of bayonne2