Compare commits

..

No commits in common. "rawhide" and "f40" have entirely different histories.

View file

@ -1,15 +1,15 @@
%global betaver beta3
%global tclver 0.2
%global mainver 2.1
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh8.6)}
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
%global tkphonearch %{_arch}
Name: iaxclient
Version: %{mainver}
Release: 0.53.%{betaver}%{?dist}
Release: 0.48.%{betaver}%{?dist}
Summary: Library for creating telephony solutions that interoperate with Asterisk
License: LGPL-2.0-or-later
License: LGPLv2+
URL: http://iaxclient.wiki.sourceforge.net/
Source0: http://downloads.sourceforge.net/iaxclient/%{name}-%{version}%{betaver}.tar.gz
Source1: tkiaxphone.desktop
@ -43,24 +43,12 @@ Patch21: iax-0.2.3_format-security.patch
Patch22: iax-0.2.3_socket.patch
Patch23: iaxclient-c99.patch
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: gsm-devel
BuildRequires: gtk3-devel
BuildRequires: ilbc-devel
BuildRequires: libogg-devel
BuildRequires: liboggz-devel
BuildRequires: libtheora-devel
BuildRequires: libtool
BuildRequires: libvidcap-devel
BuildRequires: make
BuildRequires: portaudio-devel
BuildRequires: SDL-devel
BuildRequires: spandsp-devel
BuildRequires: speex-devel
BuildRequires: speexdsp-devel
BuildRequires: tk-devel < 1:9
BuildRequires: wxGTK-devel
BuildRequires: speex-devel, libtheora-devel, gsm-devel, portaudio-devel
BuildRequires: tk-devel, gtk3-devel, SDL-devel, libogg-devel, liboggz-devel
BuildRequires: wxGTK-devel, libvidcap-devel, desktop-file-utils, libtool
BuildRequires: spandsp-devel, ilbc-devel, speexdsp-devel
%description
Iaxclient is an open source, multiplatform library for creating telephony
@ -103,7 +91,7 @@ developing applications that use %{name}.
%package -n tcl-iaxclient
Summary: Tcl interface to iax2 client lib
Version: %{tclver}
License: BSD-3-Clause-No-Nuclear-License
License: BSD
Requires: tcl(abi) = 8.6
Requires: %{name} = %{mainver}-%{release}
@ -113,7 +101,7 @@ Tcl extensions to iaxclient libraries.
%package -n tkiaxphone
Summary: Tk IAX Phone Client
Version: %{mainver}
License: LGPL-2.0-or-later
License: LGPLv2+
Requires: tcl(abi) = 8.6
Requires: %{name} = %{mainver}-%{release}
@ -123,7 +111,7 @@ Tk IAX Phone Client.
%package -n wxiax
Summary: wx IAX Phone Client
Version: %{mainver}
License: LGPL-2.0-or-later
License: LGPLv2+
Requires: %{name} = %{mainver}-%{release}
%description -n wxiax
@ -131,21 +119,21 @@ wx IAX Phone Client.
%prep
%setup -q -n %{name}-%{mainver}%{betaver}
%patch -P0 -p1 -b .wxGTK28
%patch -P1 -p1 -b .tkphone
%patch -P2 -p1 -b .includedir
%patch -P3 -p1 -b .libdir
%patch -P4 -p1 -b .nodoc
%patch -P5 -p1 -b .theoradetect
%patch -P6 -p1 -b .DSO
%patch -P7 -p1 -b .arm
%patch -P8 -p1 -b .portable
%patch -P9 -p1 -b .linkiax
%patch -P10 -p1 -b .ilbc
%patch -P11 -p1 -b .fpic
%patch -P12 -p1 -b .wx3
%patch -P13 -p1 -b .gtk3
%patch -P14 -p1 -b .gcc14
%patch0 -p1 -b .wxGTK28
%patch1 -p1 -b .tkphone
%patch2 -p1 -b .includedir
%patch3 -p1 -b .libdir
%patch4 -p1 -b .nodoc
%patch5 -p1 -b .theoradetect
%patch6 -p1 -b .DSO
%patch7 -p1 -b .arm
%patch8 -p1 -b .portable
%patch9 -p1 -b .linkiax
%patch10 -p1 -b .ilbc
%patch11 -p1 -b .fpic
%patch12 -p1 -b .wx3
%patch13 -p1 -b .gtk3
%patch14 -p1 -b .gcc14
# Delete bundled libraries (except libiax2) just to be sure
rm -rf lib/{gsm, portmixer, sox, spandsp}
@ -156,9 +144,9 @@ chmod -x contrib/tcl/README.txt
(
cd lib/libiax2
%patch -P20 -p1 -b .iaxmakefile
%patch -P21 -p1 -b .iaxfmtsecurity
%patch -P22 -p1 -b .iaxsocket
%patch20 -p1 -b .iaxmakefile
%patch21 -p1 -b .iaxfmtsecurity
%patch22 -p1 -b .iaxsocket
sed -i 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|g' iax-config.in
sed -i 's|/usr/lib|%{_libdir}|g' iax-config.in
@ -166,7 +154,7 @@ sed -i 's|/usr/lib|%{_libdir}|g' iax-config.in
autoreconf -vif
)
%patch -P23 -p1 -b .c99
%patch23 -p1 -b .c99
%build
(
@ -175,7 +163,7 @@ cd lib/libiax2
make %{?_smp_mflags} UCFLAGS="%{optflags}"
)
%configure --disable-static --with-wish=%{_bindir}/wish8.6
%configure --disable-static
# sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
# sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags} LIBTOOL="%{_bindir}/libtool"
@ -221,6 +209,10 @@ cd %{buildroot}%{tcl_sitearch}/iaxclient/tkphone/
ln -s iaxcli iaxcli-Linux-%{tkphonearch}
%ldconfig_scriptlets
%ldconfig_scriptlets libiax
%files
%doc AUTHORS ChangeLog README
%license COPYING.LIB
@ -263,21 +255,6 @@ ln -s iaxcli iaxcli-Linux-%{tkphonearch}
%{_datadir}/pixmaps/wxiax.png
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.53.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Sandro Mani <manisandro@gmail.com> - 2.1-0.52.beta3
- BR: tk-devel < 1:9
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.51.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 2.1-0.50.beta3
- convert license to SPDX
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.49.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.48.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild