70a5b16
%global betaver beta3
70a5b16
%global tclver 0.2
70a5b16
%global mainver 2.1
70a5b16
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
70a5b16
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
70a5b16
%global tkphonearch %{_arch}
ec3bc87
ec3bc87
Name:		iaxclient
ec3bc87
Version:	%{mainver}
aa090de
Release:	0.37.%{betaver}%{?dist}
ec3bc87
Summary:	Library for creating telephony solutions that interoperate with Asterisk
ec3bc87
License:	LGPLv2+
ec3bc87
URL:		http://iaxclient.wiki.sourceforge.net/
ec3bc87
Source0:	http://downloads.sourceforge.net/iaxclient/%{name}-%{version}%{betaver}.tar.gz
ec3bc87
Source1:	tkiaxphone.desktop
ec3bc87
Source2:	wxiax.desktop
ec3bc87
Source3:	phone.png
ec3bc87
Source4:	run-tkiaxphone.sh
ec3bc87
Patch0:		iaxclient-2.1beta3-wxGTK28.patch
ec3bc87
Patch1:		iaxclient-2.1beta3-tkphone-cleanups.patch
ec3bc87
Patch2:		iaxclient-2.1beta3-tcl-includedir.patch
ec3bc87
Patch3:		iaxclient-2.1beta3-tcl-libdir.patch
ec3bc87
Patch4:		iaxclient-2.1beta3-tcl-nodoc.patch
ec3bc87
Patch5:		iaxclient-2.1beta3-theora-detection.patch
649b33e
Patch6:		iaxclient-2.1beta3-implicit-DSO-libm.patch
385d9ca
Patch7:		iaxclient-2.1beta3-arm-barriers.patch
6c88097
Patch8:		iaxclient-portable.patch
6c88097
# Link against the locally build iax
6c88097
Patch9:		iaxclient-link-local-iax.patch
6c88097
# Use system ilbc
116397a
Patch10:	iaxclient-system-ilbc.patch
116397a
# Add missing -fPIC to configure.ac test
116397a
Patch11:	iaxclient-2.1beta3-fpic.patch
c6df5af
Patch12:        wxwidgets-3.0.patch
2030feb
Patch13:        gtk3.patch
6c88097
# Fix some makefile issues
6c88097
Patch20:	iax-0.2.3_makefile.patch
6c88097
# Fix format-security issue
6c88097
Patch21:	iax-0.2.3_format-security.patch
6c88097
# Add missing #include <sys/socket.h>
6c88097
Patch22:	iax-0.2.3_socket.patch
6c88097
d252cad
BuildRequires:  gcc-c++
d252cad
BuildRequires:  make
6c88097
BuildRequires:	speex-devel, libtheora-devel, gsm-devel, portaudio-devel
2030feb
BuildRequires:	tk-devel, gtk3-devel, SDL-devel, libogg-devel, liboggz-devel
2030feb
BuildRequires:	wxGTK3-devel, libvidcap-devel, desktop-file-utils, libtool
6c88097
BuildRequires:	spandsp-devel, ilbc-devel, speexdsp-devel
ec3bc87
ec3bc87
%description
ec3bc87
Iaxclient is an open source, multiplatform library for creating telephony 
ec3bc87
solutions that interoperate with Asterisk, the Open Source PBX.
ec3bc87
ec3bc87
Although asterisk supports other VOIP protocols (including SIP, and with 
ec3bc87
patches, H.323), IAX's simple, lightweight nature gives it several advantages, 
ec3bc87
particularly in that it can operate easily through NAT and packet firewalls, 
ec3bc87
and it is easily extensible and simple to understand.
ec3bc87
Iaxclient pulls together the wide array of open source technologies required 
ec3bc87
for telephony applications.
ec3bc87
6c88097
%package libiax
6c88097
Summary:	IAX library
6c88097
Obsoletes:	iax < 0.2.3
6c88097
6c88097
%description libiax
6c88097
The %{name}-libs package contains the IAX library version 0.2.3, an improved
6c88097
version of the abandoned upstream IAX library.
6c88097
6c88097
%package libiax-devel
6c88097
Summary:	IAX library development files
6c88097
Requires:	%{name}-libiax%{?_isa} = %{version}-%{release}
6c88097
Obsoletes:	iax-devel < 0.2.3
6c88097
6c88097
%description libiax-devel
6c88097
The %{name}-libiax-devel package contains libraries and header files for
6c88097
developing applications that use %{name}-libiax.
6c88097
6c88097
ec3bc87
%package devel
ec3bc87
Summary:	Development files for %{name}
ec3bc87
Requires:	pkgconfig
ec3bc87
Requires:	%{name} = %{mainver}-%{release}
ec3bc87
ec3bc87
%description devel
ec3bc87
The %{name}-devel package contains libraries and header files for
ec3bc87
developing applications that use %{name}.
ec3bc87
ec3bc87
%package -n tcl-iaxclient
ec3bc87
Summary:	Tcl interface to iax2 client lib
ec3bc87
Version:	%{tclver}
ec3bc87
License:	BSD
d9b427b
Requires:	tcl(abi) = 8.6
ec3bc87
Requires:	%{name} = %{mainver}-%{release}
ec3bc87
ec3bc87
%description -n tcl-iaxclient
ec3bc87
Tcl extensions to iaxclient libraries.
ec3bc87
ec3bc87
%package -n tkiaxphone
ec3bc87
Summary:	Tk IAX Phone Client
ec3bc87
Version:	%{mainver}
ec3bc87
License:	LGPLv2+
d9b427b
Requires:	tcl(abi) = 8.6
ec3bc87
Requires:	%{name} = %{mainver}-%{release}
ec3bc87
ec3bc87
%description -n tkiaxphone
ec3bc87
Tk IAX Phone Client.
ec3bc87
ec3bc87
%package -n wxiax
ec3bc87
Summary:	wx IAX Phone Client
ec3bc87
Version:	%{mainver}
ec3bc87
License:	LGPLv2+
ec3bc87
Requires:	%{name} = %{mainver}-%{release}
ec3bc87
ec3bc87
%description -n wxiax
ec3bc87
wx IAX Phone Client.
ec3bc87
ec3bc87
%prep
ec3bc87
%setup -q -n %{name}-%{mainver}%{betaver}
ec3bc87
%patch0 -p1 -b .wxGTK28
ec3bc87
%patch1 -p1 -b .tkphone
ec3bc87
%patch2 -p1 -b .includedir
ec3bc87
%patch3 -p1 -b .libdir
ec3bc87
%patch4 -p1 -b .nodoc
ec3bc87
%patch5 -p1 -b .theoradetect
649b33e
%patch6 -p1 -b .DSO
385d9ca
%patch7 -p1 -b .arm
6c88097
%patch8 -p1 -b .portable
6c88097
%patch9 -p1 -b .linkiax
6c88097
%patch10 -p1 -b .ilbc
116397a
%patch11 -p1 -b .fpic
c6df5af
%patch12 -p1 -b .wx3
2030feb
%patch13 -p1 -b .gtk3
6c88097
6c88097
# Delete bundled libraries (except libiax2) just to be sure
6c88097
rm -rf lib/{gsm, portmixer, sox, spandsp}
6c88097
709f38e
autoreconf -vif
6c88097
ec3bc87
chmod -x contrib/tcl/README.txt
ec3bc87
6c88097
(
6c88097
cd lib/libiax2
6c88097
%patch20 -p1 -b .iaxmakefile
6c88097
%patch21 -p1 -b .iaxfmtsecurity
6c88097
%patch22 -p1 -b .iaxsocket
6c88097
6c88097
sed -i 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|g' iax-config.in
6c88097
sed -i 's|/usr/lib|%{_libdir}|g' iax-config.in
6c88097
6c88097
autoreconf -vif
6c88097
)
ec3bc87
ec3bc87
%build
6c88097
(
6c88097
cd lib/libiax2
6c88097
%configure --disable-static
6c88097
make %{?_smp_mflags} UCFLAGS="%{optflags}"
6c88097
)
6c88097
ec3bc87
%configure --disable-static
649b33e
# sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
649b33e
# sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
649b33e
make %{?_smp_mflags} LIBTOOL="%{_bindir}/libtool"
6c88097
6c88097
(
ec3bc87
cd contrib/tcl/
ec3bc87
%configure
649b33e
make %{?_smp_mflags} LIBTOOL="%{_bindir}/libtool"
6c88097
)
ec3bc87
ec3bc87
%install
6c88097
%make_install -C lib/libiax2
6c88097
6c88097
%make_install LIBTOOL="%{_bindir}/libtool"
6c88097
649b33e
find %{buildroot} -name '*.a' -exec rm -f {} ';'
6c88097
find %{buildroot} -name '*.la' -exec rm -f {} ';'
6c88097
ec3bc87
install -d %{buildroot}%{tcl_sitearch}
ec3bc87
mv %{buildroot}%{_libdir}/iaxclient %{buildroot}%{tcl_sitearch}/
6c88097
6c88097
%make_install LIBTOOL="%{_bindir}/libtool" -C contrib/tcl
ec3bc87
mv %{buildroot}%{_libdir}/tcliaxclient0.2 %{buildroot}%{tcl_sitearch}/tcliaxclient0.2
ec3bc87
chmod +x %{buildroot}%{tcl_sitearch}/iaxclient/tkphone/phone.ui.tcl
ec3bc87
chmod +x %{buildroot}%{tcl_sitearch}/iaxclient/tkphone/pref.ui.tcl
ec3bc87
install -p %{SOURCE4} %{buildroot}%{_bindir}
ec3bc87
116397a
install -Dd %{buildroot}%{_datadir}/pixmaps/
ec3bc87
install -p %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/tkiaxphone.png
ec3bc87
install -p %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/wxiax.png
ec3bc87
116397a
install -Dd %{buildroot}%{_datadir}/applications/
ec3bc87
ec3bc87
desktop-file-install --vendor ""			\
ec3bc87
	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
ec3bc87
	%{SOURCE1}
ec3bc87
ec3bc87
desktop-file-install --vendor ""			\
ec3bc87
	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
ec3bc87
	%{SOURCE2}	
ec3bc87
ec3bc87
cd %{buildroot}%{tcl_sitearch}/iaxclient/tkphone/
ec3bc87
ln -s iaxcli iaxcli-Linux-%{tkphonearch}
ec3bc87
ec3bc87
3a49bcc
%ldconfig_scriptlets
ec3bc87
3a49bcc
%ldconfig_scriptlets libiax
6c88097
ec3bc87
%files
70a5b16
%doc AUTHORS ChangeLog README
70a5b16
%license COPYING.LIB
ec3bc87
%{_bindir}/iaxcomm
ec3bc87
%{_bindir}/iaxphone
ec3bc87
%{_datadir}/iaxcomm/
ec3bc87
%{_libdir}/libiaxclient.so.*
ec3bc87
6c88097
%files libiax
6c88097
%doc lib/libiax2/ChangeLog lib/libiax2/COPYING lib/libiax2/COPYING.LIB
6c88097
%{_libdir}/libiax.so.*
6c88097
6c88097
%files libiax-devel
6c88097
%{_bindir}/iax-config
6c88097
%{_includedir}/iax/
6c88097
%{_libdir}/libiax.so
6c88097
ec3bc87
%files devel
ec3bc87
%{_bindir}/stresstest
ec3bc87
%{_bindir}/testcall
ec3bc87
%{_bindir}/vtestcall
ec3bc87
%{_includedir}/iaxclient.h
ec3bc87
%{_libdir}/libiaxclient.so
ec3bc87
%{_libdir}/pkgconfig/iaxclient.pc
ec3bc87
ec3bc87
%files -n tcl-iaxclient
ec3bc87
%doc contrib/tcl/README.txt
ec3bc87
%{tcl_sitearch}/tcliaxclient0.2/
ec3bc87
ec3bc87
%files -n tkiaxphone
ec3bc87
%{_bindir}/run-tkiaxphone.sh
ec3bc87
%{_bindir}/tkiaxphone
ec3bc87
%{tcl_sitearch}/iaxclient/
ec3bc87
%{_datadir}/applications/tkiaxphone.desktop
ec3bc87
%{_datadir}/pixmaps/tkiaxphone.png
ec3bc87
ec3bc87
%files -n wxiax
ec3bc87
%{_bindir}/wxiax
ec3bc87
%{_datadir}/applications/wxiax.desktop
ec3bc87
%{_datadir}/pixmaps/wxiax.png
ec3bc87
ec3bc87
%changelog
aa090de
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.37.beta3
aa090de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
aa090de
5355c15
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.36.beta3
5355c15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5355c15
2030feb
* Fri Oct 25 2019 Scott Talbert <swt@techie.net> - 2.1-0.35.beta3
2030feb
- Rebuild with wxWidgets GTK3 build
2030feb
de23d05
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.34.beta3
de23d05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
de23d05
f6add0d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.33.beta3
f6add0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f6add0d
c6df5af
* Thu Aug 23 2018 Scott Talbert <swt@techie.net> - 2.1-0.32.beta3
c6df5af
- Rebuild with wxWidgets 3.0
c6df5af
da77c10
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.31.beta3
da77c10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
da77c10
d252cad
* Sun Feb 18 2018 Sandro Mani <manisandro@gmail.com> - 2.1-0.30.beta3
d252cad
- Add missing BR: gcc-c++, make
d252cad
12be20b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.29.beta3
12be20b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
12be20b
850a524
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.28.beta3
850a524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
850a524
cbd4cbb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.27.beta3
cbd4cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cbd4cbb
418e501
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.26.beta3
418e501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
418e501
e59266e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-0.25.beta3
e59266e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e59266e
70a5b16
* Tue Jan 19 2016 Tom Callaway <spot@fedoraproject.org> - 2.1-0.24.beta3
70a5b16
- spec file cleanups
70a5b16
4725886
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.23.beta3
4725886
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4725886
116397a
* Mon May 04 2015 Sandro Mani <manisandro@gmail.com> - 2.1-0.22.beta3
116397a
- Rebuild (GCC5)
116397a
6c88097
* Thu Jan 08 2015 Sandro Mani <manisandro@gmail.com> - 2.1-0.21.beta3
6c88097
- Ship bundled libiax2 in -libiax
6c88097
- Use system spandsp
6c88097
- Use system ilbc
6c88097
4c67585
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.20.beta3
4c67585
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4c67585
709f38e
* Thu Jul  3 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.1-0.19.beta3
709f38e
- Add patch to fix build on aarch64
709f38e
29ade84
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.18.beta3
29ade84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
29ade84
d9b427b
* Tue May 27 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.1-0.17.beta3
d9b427b
- Updated requires to require tcl-8.6
d9b427b
ed3316c
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.1-0.16.beta3
ed3316c
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
ed3316c
cbfbeef
* Tue Dec 03 2013 Tom Callaway <spot@fedoraproject.org> - 2.1-0.15.beta3
cbfbeef
- Fix format-security issue (bz 1037126)
cbfbeef
b4ad880
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.14.beta3
b4ad880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b4ad880
385d9ca
* Mon Jul 15 2013 Tom Callaway <spot@fedoraproject.org> - 2.1-0.13.beta3
385d9ca
- add memory barriers for arm (bz 927443)
385d9ca
c2e725c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.12.beta3
c2e725c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c2e725c
2398766
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.11.beta3
2398766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2398766
5042400
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.10.beta3
5042400
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5042400
57bbcdd
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 2.1-0.9.beta3
57bbcdd
- Rebuild for new libpng
57bbcdd
4d66ce8
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.8.beta3
4d66ce8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4d66ce8
9514ca2
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 2.1-0.7.beta3
9514ca2
- rebuilt against wxGTK-2.8.11-2
9514ca2
b410ab3
* Wed Jun 02 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 2.1-0.6.beta3
b410ab3
- Bump for new liboggz lib
b410ab3
649b33e
* Wed Feb 10 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1-0.5.beta3
649b33e
- fix implicit DSO linking issue with libm
649b33e
6ec82cc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-0.4.beta3
6ec82cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6ec82cc
ec3bc87
* Thu Mar 12 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-0.3.beta3
ec3bc87
- fix lib/libiax2/iax-config.in to not use wrong /usr/lib
ec3bc87
ec3bc87
* Mon Nov  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-0.2.beta3
ec3bc87
- fix theora detection
ec3bc87
ec3bc87
* Tue Jun 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-0.1.beta3
ec3bc87
- Initial package for Fedora
ec3bc87