#%define ekiga_ver 3.0.1 %define gitver %(echo %version | cut -d. -f 1-2 | tr . _) %define majver %(echo %version | cut -d. -f 1-2) %define maj3ver %(echo %version | cut -d. -f 1-3) %define MINver %(echo %version | cut -d. -f 2-3) %define dirname %20Procyon/Release%20Candidate Name: libopal Version: 3.16.3.20170721git Release: 1mamba Summary: Opal Library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.ekiga.org Source: git://git.code.sf.net/p/opalvoip/opal/v%{gitver}/opal-%{version}.tar.bz2 Patch0: %{name}-3.6.1-noilbc.patch Patch1: %{name}-3.6.2.patch Patch2: %{name}-3.6.1-gcc44.patch Patch3: %{name}-3.10.2-ffmpeg-1.patch License: MPL 1.0 ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel BuildRequires: libgcc BuildRequires: libogg-devel BuildRequires: libopus-devel BuildRequires: libpt-devel BuildRequires: libstdc++6-devel BuildRequires: libswresample-ffmpeg-devel BuildRequires: libtheora-devel BuildRequires: libvpx-devel BuildRequires: libx264_120-devel ## AUTOBUILDREQ-END BuildRequires: libpt-devel >= 2.%{MINver} BuildRequires: libspeex-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is a Open Source class library for the development of applications that wish to use SIP / H.323 protocols for multi-media communications over packet based networks. %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version} %description devel This is a Open Source class library for the development of applications that wish to use SIP / H.323 protocols for multi-media communications over packet based networks. This package contains static libraries and header files need for development. %prep %setup -q -n opal-%{version} ## non-free iLBC codec. #rm -rf plugins/audio/iLBC/ #rm -rf src/codec/iLBCmf.cxx #%patch0 -p1 -b .noilbc #%patch1 -p1 -b .3.6.2 #%patch2 -p1 #%patch3 -p1 %build # FIXME: "--enable-localspeex" has been enabled to bypass the error # "checking Speex versions... Died at t.pl line 16." %configure --enable-localspeex --enable-h263avcodec %make opt -j1 SYSLIBS="-L/usr/share/pwlib/lib -lpt" %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall rm -f %{buildroot}%{_datadir}/opal/opal_inc.mak #rm -f %{buildroot}%{_libdir}/libopal_s.a %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libopal.so.* %dir %{_libdir}/opal-%{maj3ver} %dir %{_libdir}/opal-%{maj3ver}/codecs %dir %{_libdir}/opal-%{maj3ver}/codecs/audio %{_libdir}/opal-%{maj3ver}/codecs/audio/*_ptplugin.so %dir %{_libdir}/opal-%{maj3ver}/codecs/video %{_libdir}/opal-%{maj3ver}/codecs/video/h264_video_pwplugin_helper %{_libdir}/opal-%{maj3ver}/codecs/video/*_ptplugin.so %files devel %defattr(-,root,root) %{_libdir}/libopal_s.a %dir %{_includedir}/opal %{_includedir}/opal/* %{_libdir}/libopal.so %dir %{_datadir}/opal %dir %{_datadir}/opal/make %{_datadir}/opal/make/opal.mak %{_datadir}/opal/make/opal_config.mak %{_datadir}/opal/make/toplevel.mak %{_libdir}/pkgconfig/opal.pc %changelog * Fri Jul 21 2017 Silvan Calarco 3.16.3.20170721git-1mamba - update to 3.16.3.20170721git * Sat Jan 16 2016 Silvan Calarco 3.16.0-1mamba - update to 3.16.0 * Wed Oct 15 2014 Silvan Calarco 3.14.3-2mamba - rebuilt with libpt 2.14.3-2mamba with gstreamer disabled * Tue Oct 14 2014 Silvan Calarco 3.14.3-1mamba - update to 3.14.3 * Tue Oct 14 2014 Silvan Calarco 3.12.9-1mamba - update to 3.12.9 * Mon Nov 25 2013 Silvan Calarco 3.12.8-1mamba - update to 3.12.8 * Sun Feb 24 2013 Automatic Build System 3.10.10-1mamba - automatic version update by autodist * Mon Dec 03 2012 Automatic Build System 3.10.9-1mamba - automatic version update by autodist * Fri Oct 19 2012 Automatic Build System 3.10.7-1mamba - automatic version update by autodist * Fri Apr 27 2012 Silvan Calarco 3.10.2-1mamba - update to 3.10.2 * Fri Apr 27 2012 Silvan Calarco 3.6.8-2mamba - rebuilt with libpt 2.10.2 * Wed Jun 02 2010 Automatic Build System 3.6.8-1mamba - automatic update to 3.6.8 by autodist * Mon Mar 08 2010 Automatic Build System 3.6.6-5mamba - automatic rebuild by autodist * Sat Oct 31 2009 Automatic Build System 3.6.6-4mamba - automatic rebuild by autodist * Thu Oct 15 2009 Automatic Build System 3.6.6-3mamba - automatic rebuild by autodist * Tue Oct 13 2009 Automatic Build System 3.6.6-2mamba - automatic rebuild by autodist * Fri Oct 02 2009 Automatic Build System 3.6.6-1mamba - automatic update by autodist * Wed Aug 19 2009 Automatic Build System 3.6.4-4mamba - automatic rebuild by autodist * Wed Aug 12 2009 Automatic Build System 3.6.4-3mamba - automatic rebuild by autodist * Fri Jul 10 2009 Automatic Build System 3.6.4-2mamba - automatic rebuild by autodist * Thu Jul 09 2009 Automatic Build System 3.6.4-1mamba - automatic update by autodist * Thu Jun 04 2009 Automatic Build System 3.6.2-1mamba - automatic update by autodist * Sat May 16 2009 Silvan Calarco 3.6.1-2mamba - rebuilt * Mon May 11 2009 gil 3.6.1-1mamba - update to 3.6.1 * Fri Nov 14 2008 Silvan Calarco 3.4.2-2mamba - automatic rebuild by autodist * Tue Oct 21 2008 Silvan Calarco 3.4.2-1mamba - update to 3.4.2 * Tue Sep 30 2008 Silvan Calarco 3.4.1-1mamba - update to 3.4.1 * Fri Sep 28 2007 Silvan Calarco 2.2.11-1mamba - update to 2.2.11 * Mon Sep 17 2007 Silvan Calarco 2.2.8-1mamba - update to 2.2.8 * Fri Jan 26 2007 Silvan Calarco 2.2.4-1qilnx - update to version 2.2.4 by autospec * Tue Jul 25 2006 Silvan Calarco 2.2.2-2qilnx - ... add a changelog entry * Tue Jul 25 2006 Silvan Calarco 2.2.2-1qilnx - update to version 2.2.2 by autospec * Tue Mar 14 2006 Davide Madrisan 2.2.1-1qilnx - package created by autospec