File isdngw.spec of Package isdngw

# spec file for package isdngw (Version 0.3.4)
# 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

# norootforbuild

Name:           isdngw
BuildRequires:  SDL-devel gcc-c++ krb5 libdv openh323-devel openldap2 openldap2-devel pwlib-devel sgml-skel sgmltool speex-devel
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Group:          Productivity/Telephony/H323/Utilities
PreReq:         %insserv_prereq %fillup_prereq
Requires:       pwlib openh323
Obsoletes:      isdn2h323
Summary:        An ISDN to H.323 Gateway
Version:        0.3.4
Release:        248
Source0:        isdngw-%{version}.tar.bz2
Source1:        rc.isdngw
#Patch:        openh323gk.dif

isdngw is a gateway between telephony on ISDN and telephony on IP
networks using H.323. It is based on OpenH323 and ISDN4Linux. The
gateway uses ISDN to make and receive calls but any type of phone
(pots, mobiles, etc.) can call and be called.

    Jan Willamowius <>

%setup -n isdngw

%{?suse_update_config:%{suse_update_config -f}}
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fexceptions" OPENH323DIR=/usr/share/openh323 PREFIX=/usr OH323_LIBDIR=%{_libdir} opt

export M=`uname -m`
# only ix86 have problematic unames.
if [ `uname -m | cut -b 3-` == "86" ]; then
  export M="x86"
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/isdngw
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 755 obj_linux_"$M"_r/isdngw $RPM_BUILD_ROOT%{_sbindir}
install -m 644 sample_conf/directory $RPM_BUILD_ROOT/etc/isdngw
install -m 644 sample_conf/isdngw.conf $RPM_BUILD_ROOT/etc/isdngw
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/isdngw
ln -s ../../etc/init.d/isdngw $RPM_BUILD_ROOT%{_sbindir}/rcisdngw
# Create symbolic run level links during installation
mkdir -p $RPM_BUILD_ROOT/var/log/isdngw
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
cat << EOF > $RPM_BUILD_ROOT/etc/logrotate.d/isdngw
/var/log/isdngw/isdngw.log {
    rotate 30
        kill -HUP \`cat /var/run/\`

%{insserv_force_if_yast etc/init.d/isdngw }


# Clear up the mess

%dir /etc/isdngw
%config /etc/init.d/isdngw
%config /etc/isdngw/directory
%config /etc/isdngw/isdngw.conf
%dir /var/log/isdngw

* Sat May 12 2007
- remove unused libavc1394-devel libdc1394-devel from Buildrequires
* Mon May 22 2006
- Don't strip binaries.
* Fri Jan 27 2006
- fixed BuildRequires
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed May 11 2005
- fix logrotate name (gk -> isdngw) [75799]
* Fri Jan 07 2005
- update to 0.3.4
  now builds with newest pwlib/openh323 packages
* Mon Mar 08 2004
- added libdc1394-devel to neededforbuild
* Sun Feb 22 2004
- updated make-flags and neededforbuild
* Sun Jan 11 2004
- add %%defattr
* Tue Jul 22 2003
- Initial version 0.3.2
  replacing former 'isdn2h323' package