# # spec file for package iaxmodem # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Michael Kromer (mkromer) # (c) 2010 Mi||enux # # 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: iaxmodem Version: 1.3.2 Release: 1.33 Summary: Software modem for interfacing Asterisk and Hylafax via IAX2 License: GPL-2.0+ Group: Productivity/Telephony/Servers Url: http://sf.net/projects/iaxmodem/ Source: http://downloads.sf.net/%name/%name-%version.tar.gz Source2: iaxmodem.logrotate.d Patch1: iaxmodem-init-lsb.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libiax2-devel BuildRequires: pkgconfig(libtiff-4) BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(spandsp) Requires: asterisk Requires: hylafax BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(pre): %_sbindir/useradd %description IAXmodem is a software modem written in C that uses an IAX channel (commonly provided by an Asterisk PBX system) instead of a traditional phone line and uses a DSP library instead of DSP hardware chipsets. To accomplish this, then, IAXmodem interfaces an IAX library known as libiax2 with a DSP library known as spandsp, and then IAXmodem interfaces the DSP library with a tty device node for interfacing with modem applications. %prep %setup -q %patch -P 1 -p1 %build export CFLAGS="%optflags" ./build #%configure --disable-static #make %{?_smp_mflags} %install b="%buildroot" mkdir -p "$b/%_sysconfdir/logrotate.d" "$b/%_sysconfdir/iaxmodem" "$b/%_bindir" install -m0644 "%{S:2}" "$b/%_sysconfdir/logrotate.d/iaxmodem" install -Dm0755 iaxmodem "$b/%_sbindir/iaxmodem" install -Dm0644 iaxmodem.1 "$b/%_mandir/man1/iaxmodem.1" perl -i -pe 's{/usr/local/}{/usr/}g' iaxmodem.init.fedora install -Dm0755 iaxmodem.init.suse "$b/%_initddir/iaxmodem" mkdir -p "$b/%_localstatedir/log/iaxmodem" %pre # Line taken from hylafax.spec %_sbindir/useradd -r -o -g uucp -u 33 -s /bin/bash -c "Facsimile agent" \ -d /var/spool/fax fax 2>/dev/null || : %files %defattr(-,root,root) %doc CHANGES FAQ README TODO %_sbindir/iaxmodem %_mandir/man1/iaxmodem.1.gz %config %_sysconfdir/logrotate.d/iaxmodem %_sysconfdir/iaxmodem %attr(0755,root,root) %_initddir/iaxmodem %attr(-,fax,root) %_localstatedir/log/iaxmodem %changelog * Thu Jun 24 2021 holgerbruenjes@gmx.net - rebuild with glibc-2.33 * Wen Jan 20 2021 holgerbruenjes@gmx.net - Update to version 1.3.2 * Fri Feb 19 2016 joop.boonen@opensuse.org - Update to version 1.3.0 * improve logging for dspdebug * buffer audio when modem is in command-mode and process it when not * improve pty read speed * improve logging detail * allow spandsp-v17rx fast-train to be more-permissive * update to spandsp-0.0.6 * fix problem on some platforms triggered by large clock skips * avoid a bug in libiax2 sometimes after a call ends * patch libiax2 to recognize (but ignore) CallToken * use the S7 register instead of a hard 45-second answer timeout * refactored process management (Federico Heinz) * move call to closedir to resolve problems on BSD (John Bayly) * if the timestamp jumps too much the jitterbuffer ignores it (Ivan Tikhonov) * update to spandsp-20100228 * some changes for FreeBSD support to iaxmodem.c * fix more unaligned problems for big-endian systems (libiax2) * if we hang up on a call that is ringing then answer+hangup with IAX2 (Travis Schafer) - Cleaned the spec file up * Sat Jan 26 2013 jengelh@inai.de - Rework patches to use system libiax and spandsp * Sat Feb 5 2011 jengelh@medozas.de - Run spec-beautifier