# # spec file for package libiax # # Copyright (c) 2013 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/ # Name: libiax %define lname libiax-1466 Summary: Library for the Inter-Asterisk Exchange Protocol # The source contains GPL-2.0 parts, but these are never compiled License: LGPL-2.0 Group: Development/Libraries/C and C++ Version: 0.2.3 Release: 9.4.33 %define svn_revision 1466 Url: https://sf.net/projects/iaxclient/ #SVN-Clone: http://iaxclient.svn.sf.net/svnroot/iaxclient/trunk/lib/libiax2 Source: %name-%version.tar.xz Patch1: libiax-openssl-md5.diff Patch2: libiax-install.diff Patch3: libiax-soversion.diff Patch4: libiax-debug.diff Patch5: libiax-socket-include.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xz %if 0%{?suse_version} >= 1210 || 0%{?fedora_version} BuildRequires: pkgconfig(libcrypto) %endif %if 0%{?suse_version} && 0%{?suse_version} < 1220 BuildRequires: libopenssl-devel %endif %description A lightweight cross platform IP telephony client using the IAX protocol, designed for use with the asterisk open source PBX. %package -n %lname Summary: Library for the Inter-Asterisk Exchange Protocol (IAX) Group: System/Libraries %description -n %lname An implementation of the Inter-Asterisk eXchange protocol. %package devel Summary: Development files for libiax2, a library for the Inter-Asterisk Exchange Protocol Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel An implementation of the Inter-Asterisk eXchange protocol. This package provides the headers and library files needed for developing applications requiring libiax2. %prep %setup -qn %name %patch -P 1 -P 2 -P 3 -P 5 -p1 %build autoreconf -fi export CFLAGS="%optflags -DLIBIAX" %configure --disable-static make %{?_smp_mflags} libiax_la_LDFLAGS="-release %svn_revision" %install b="%buildroot" make install DESTDIR="$b" rm -f "$b/%_libdir"/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %license COPYING.LIB %_libdir/libiax-%svn_revision.so %files devel %defattr(-,root,root) %_bindir/iax-config %_libdir/libiax.so %_includedir/iax %changelog * Wen Jun 2032021 holgerbruenjes@gmx.net - rebuild with glibc-2.33 * Wen Jan 20 2021 holgerbruenjes@gmx.net - rebuild with glibc-2.31 * Sat Jan 26 2013 jengelh@inai.de - Initial package (version 0.2.3+svn1466) for build.opensuse.org