File isdngw.spec of Package isdngw
#
# spec file for package isdngw (Version 0.3.4)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: isdngw
BuildRequires: SDL-devel gcc-c++ krb5 libdv openh323-devel openldap2 openldap2-devel pwlib-devel sgml-skel sgmltool speex-devel
URL: http://www.gnugk.org/h323-isdn-gw.html
License: GNU General Public License (GPL)
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: 72
Source0: isdngw-%{version}.tar.bz2
Source1: rc.isdngw
#Patch: openh323gk.dif
%description
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.
Authors:
--------
Jan Willamowius <jan@willamowius.de>
%prep
%setup -n isdngw
#%patch
%build
%{?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
%install
export M=`uname -m`
# only ix86 have problematic unames.
if [ `uname -m | cut -b 3-` == "86" ]; then
export M="x86"
fi
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
size=100M
notifempty
missingok
postrotate
kill -HUP \`cat /var/run/isdngw.pid\`
endscript
}
EOF
%post
%{insserv_force_if_yast etc/init.d/isdngw }
%postun
%{insserv_cleanup}
%clean
# Clear up the mess
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /etc/isdngw
%config /etc/init.d/isdngw
%config /etc/isdngw/directory
%config /etc/isdngw/isdngw.conf
%{_sbindir}/isdngw
%{_sbindir}/rcisdngw
/etc/logrotate.d/isdngw
%dir /var/log/isdngw
%changelog
* Sat May 12 2007 - olh@suse.de
- remove unused libavc1394-devel libdc1394-devel from Buildrequires
* Mon May 22 2006 - schwab@suse.de
- Don't strip binaries.
* Fri Jan 27 2006 - nadvornik@suse.cz
- fixed BuildRequires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed May 11 2005 - kkaempf@suse.de
- fix logrotate name (gk -> isdngw) [75799]
* Fri Jan 07 2005 - kkaempf@suse.de
- update to 0.3.4
now builds with newest pwlib/openh323 packages
* Mon Mar 08 2004 - ro@suse.de
- added libdc1394-devel to neededforbuild
* Sun Feb 22 2004 - ro@suse.de
- updated make-flags and neededforbuild
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Tue Jul 22 2003 - kkaempf@suse.de
- Initial version 0.3.2
replacing former 'isdn2h323' package