File kiax.spec of Package kiax
#
# spec file for package kiax (Version 0.8.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 http://bugs.opensuse.org/
#
# norootforbuild
Name: kiax
BuildRequires: libdrm-devel libjpeg-devel qt3-devel-tools update-desktop-files
Version: 0.8.4
Release: 227
License: GPL v2 or later
Group: Productivity/Telephony/Clients
PreReq: %install_info_prereq
AutoReqProv: on
Summary: Voive-over-IP client for Asterisk (IAX protocol)
Source: http://mesh.dl.sourceforge.net/sourceforge/kiax/kiax-0.8.4.tar.bz2
Source3: README.SuSE
Source4: iaxclient-20051230.tar.bz2
Patch1: kiax-vararg-reuse.diff
Patch2: kiax-make.diff
Patch3: kiax-iLBC.diff
Patch4: kiax-desktop.diff
Patch5: kiax-gcc43.diff
Patch10: iaxclient-sendto-proto.diff
Patch11: gsm-warnings.diff
Patch12: portaudio-retval.diff
Patch13: iax-ilbc.diff
Patch14: iax2lib-64bit.diff
Patch15: portaudio-echocancel.diff
Patch16: iax-no-audio-abort.diff
Patch17: portaudio-double-free.diff
Patch18: iaxclient-glibc210.diff
Url: http://kiax.sourceforge.net/
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
VoIP has become a hot topic and already is a part of our life.
Different standards and platforms are already in development and use:
H.323 and SIP are only some of the most famous used VoIP protocols. A
marvellous piece of software called Asterisk PBX
(http://www.asterisk.org), developed by Mark Spenser from Digium Inc.
(http://www.digium.com) proved again that the Open Source CAN PRODUCE
QUALITATIVE SOFTWARE for the business and can save money with its full
set of features of an advanced PBX. In the process of the development
of Asterisk a new protocol has gathered the attention among the VoIP
users - the Inter-Asterisk eXchange, or IAX (TM), Protocol, used as a
the native communication protocol between Asterisk PBX Servers. What is
particularly good in it is that it requires only one UDP port per
endpoint to create a successful communication channel for VoIP calls.
This makes it much friendlier for users behind NAT, which is not the
case with SIP and H.323 - they required specific router configurations
for their channel establishment, thus hindering faster spread of VoIP
on the home and corporate desktop. The IAX (TM) protocol is already
adopted by major VoIP providers and Telcos. If you register in Free
World Dialup (http://www.fwdnet.net), IAXTel (http://www.iaxtel.com) or
Freshtel (http://www.freshtel.net) or any other VoIP termination
service like VoIPUser.org (http://www.voipuser.org) or PSTN Termination
Provider like VoIP Jet (http://www.voipjet.com) then you may be
interested in using Kiax. What is Kiax? - Kiax is an IAX client
application (a so called Softphone) which allows PC users to make
ordinary VoIP calls to Asterisk servers, the same way as they do it
with their hardware telephone. It aims to provide a simple and
user-friendly graphical interface and desktop integration for calling,
contact list, call register management and easy configuration. That is
- a simple to use IAX Client.
Authors:
--------
Alexander Vassilev
Boris Borisov
David Anderson
Damian Ivanov
George Danchev
Predrag Tasevski
The Tilix Team
%prep
%setup -b4 -b0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
cd ../iaxclient
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
#autoreconf
%build
mv lib _lib
ln -sf ../iaxclient/lib .
ln -sf ../../kiax-%{version}/_lib/iLBC lib/
export CC=gcc
export QTDIR=/usr/lib/qt3
export CFLAGS="$RPM_OPT_FLAGS -Wno-unused"
%ifarch i386
export CFLAGS="$CFLAGS -momit-leaf-frame-pointer -ffast-math"
%endif
%ifarch x86_64
export CFLAGS="$CFLAGS -momit-leaf-frame-pointer"
#export CFLAGS="$CFLAGS -fvar-tracking"
%endif
echo "$CFLAGS"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
PATH="$PATH:/usr/lib/qt3/bin"
./configure
(cd lib && make %{?jobs:-j %jobs})
make %{?jobs:-j %jobs}
cp -p ../iaxclient/README README.iaxclient
cp -p %SOURCE3 .
%install
#make -k install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
install -m 0755 bin/kiax $RPM_BUILD_ROOT/usr/bin/
%suse_update_desktop_file -i kiax Network Telephony
#mkdir -p $RPM_BUILD_ROOT/usr/share/applications
#install -m 0644 kiax.desktop $RPM_BUILD_ROOT/usr/share/applications/
mkdir -p $RPM_BUILD_ROOT/usr/share/kiax/icons
install -m 0644 icons/*.png $RPM_BUILD_ROOT/usr/share/kiax/icons/
# Translations ???
mkdir -p $RPM_BUILD_ROOT/usr/share/kiax/i18n
install -m 0644 i18n/*.qm $RPM_BUILD_ROOT/usr/share/kiax/i18n/
%files
%defattr(-,root,root)
/usr/bin/kiax
/usr/share/applications/*
/usr/share/kiax
%doc README INSTALL CHANGELOG COPYING README.iaxclient README.SuSE
%clean
#test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
#rm -rf $RPM_BUILD_DIR/kiax-%{version}
#rm -rf $RPM_BUILD_DIR/iaxclient
%changelog
* Fri Jun 12 2009 coolo@novell.com
- fix build with glibc 2.10
* Thu Oct 11 2007 kkeil@suse.de
- fixes for gcc43
- minor cleanups
* Tue Jul 18 2006 dmueller@suse.de
- fix build
* Tue Jun 20 2006 dmueller@suse.de
- build parallel
* Sat Jan 28 2006 kkeil@suse.de
- set and export QTDIR
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006 schwab@suse.de
- Don't strip binaries.
* Tue Jan 03 2006 garloff@suse.de
- Don't set free flag in iaxc_play_sound(), the caller should do
that. Fixes crash in Ringtone output.
* Tue Jan 03 2006 garloff@suse.de
- Fix 64bit problems (read the md5 typdef to have fun).
- Avoid crash with echo cancellation and two-stream sound I/O.
- Avoid one stream for sound I/O if possible.
- Abort rather than segfault if audio device can't be opened.
* Fri Dec 30 2005 garloff@suse.de
- Initial creation of kiax-0.8.4.
- Used iaxclient CVS snapshot to get support for the latest
implementations of the codecs (gsm, speex, iLBC, uLaw).
- Fixed up various places with sloppy coding style (potential
64bit probelms), one of which lead to immediate segfault on
most platforms (vararg misuse).
- Manually make install to get icons and translations in.