#%define ekiga_ver 3.0.1 %define gitver %(echo %version | cut -d. -f1-2 | tr . _) %define majver %(echo %version | cut -d. -f 1-2) %define maj3ver %(echo %version | cut -d. -f 1-3) %define dirname V3.16%20Procyon/Release%20Candidate Name: libpt Version: 2.16.3.20170717git Release: 1mamba Summary: Portable Windows Library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.ekiga.org Source: https+git://git.code.sf.net/p/opalvoip/ptlib/v%{gitver}/ptlib-%{version}.tar.bz2 Patch0: libpw-1.10.7-so_link.patch Patch1: %{name}-2.6.1-odbc-2.2.14.patch Patch2: libpt-2.6.3.20170717git-buildfix.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libSDL-devel BuildRequires: libalsa-devel BuildRequires: libavc1394-devel BuildRequires: libdv-devel BuildRequires: libesound-devel BuildRequires: libexpat-devel BuildRequires: libgcc BuildRequires: libjpeg-devel BuildRequires: libncurses-devel BuildRequires: libodbc-devel BuildRequires: libopenldap-devel BuildRequires: libopenssl-devel BuildRequires: libpcap-devel BuildRequires: libpulseaudio-devel BuildRequires: libraw1394-devel BuildRequires: libsasl2-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: libraw1394-devel >= 1.2.0 Provides: pwlib Provides: libpw Obsoletes: libpw BuildRoot: %{_tmppath}/%{name}-%{version}-root %description PWLib is a moderately large class library that has its genesis many years ago as a method to product applications to run on both Microsoft Windows and Unix X-Window systems. It also was to have a Macintosh port as well but this never eventuated. %package devel Group: Development/Libraries Summary: Portable Windows Library development files Requires: %{name} = %{version}-%{release} Obsoletes: libpw-devel Conflicts: ptlib-devel %description devel Header files and libraries for developing applications that use pwlib. %prep %setup -q -n ptlib-%{version} %patch2 -p1 %build #autoconf %configure \ --enable-plugins \ --enable-alsa \ --enable-pulse \ --enable-v4l2 \ --enable-bsdvideo \ --enable-dc \ --enable-exceptions \ --disable-gstreamer # --disable-avc \ # --enable-exceptions required by ekiga 3.2.0 %make opt PLATFORM_TYPE="" PTLIB_BASE=pt %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall PLATFORM_TYPE="" PTLIB_BASE=pt install -d %{buildroot}%{_bindir} perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' %{buildroot}%{_datadir}/ptlib/make/ptbuildopts.mak install version.h %{buildroot}%{_datadir}/ptlib # fix library permissions find %{buildroot}%{_libdir} -name \*.so* -exec chmod 755 {} \; %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libpt.so.* %dir %{_libdir}/ptlib-%{maj3ver} %dir %{_libdir}/ptlib-%{maj3ver}/device %dir %{_libdir}/ptlib-%{maj3ver}/device/sound %{_libdir}/ptlib-%{maj3ver}/device/sound/alsa_ptplugin.so %{_libdir}/ptlib-%{maj3ver}/device/sound/esd_ptplugin.so %{_libdir}/ptlib-%{maj3ver}/device/sound/oss_ptplugin.so %{_libdir}/ptlib-%{maj3ver}/device/sound/pulse_ptplugin.so %dir %{_libdir}/ptlib-%{maj3ver}/device/videoinput %{_libdir}/ptlib-%{maj3ver}/device/videoinput/avc_ptplugin.so %{_libdir}/ptlib-%{maj3ver}/device/videoinput/v4l2_ptplugin.so %files devel %defattr(-,root,root) %{_libdir}/libpt.so %{_libdir}/libpt_s.a %{_includedir}/ptlib.h %{_includedir}/ptlib_config.h %{_includedir}/ptlib_wx.h %dir %{_includedir}/ptlib %{_includedir}/ptlib/* %dir %{_includedir}/ptclib %{_includedir}/ptclib/* %dir %{_datadir}/ptlib %{_datadir}/ptlib/* %{_libdir}/pkgconfig/ptlib.pc #%doc History.txt ReadMe.txt %changelog * Fri Jul 21 2017 Silvan Calarco 2.16.3.20170717git-1mamba - update to 2.16.3.20170717git * Sun Jan 17 2016 Silvan Calarco 2.16.0-2mamba - remove broken symlink ptlib-config * Sat Jan 16 2016 Silvan Calarco 2.16.0-1mamba - update to 2.16.0 * Wed Oct 15 2014 Silvan Calarco 2.14.3-2mamba - disable gstreamer to fix current ekiga build * Tue Oct 14 2014 Silvan Calarco 2.14.3-1mamba - update to 2.14.3 * Tue Oct 14 2014 Silvan Calarco 2.12.9-1mamba - update to 2.12.9 * Mon Nov 25 2013 Silvan Calarco 2.12.8-1mamba - update to 2.12.8 * Thu Feb 21 2013 Automatic Build System 2.10.10-1mamba - automatic version update by autodist * Mon Dec 03 2012 Automatic Build System 2.10.9-1mamba - automatic version update by autodist * Sun Sep 02 2012 Automatic Build System 2.10.7-1mamba - automatic version update by autodist * Mon Oct 03 2011 Automatic Build System 2.10.2-1mamba - automatic version update by autodist * Sat Jul 30 2011 Silvan Calarco 2.10.1-1mamba - update to 2.10.1 * Tue Jun 01 2010 Automatic Build System 2.6.7-1mamba - update to 2.6.7 * Wed Sep 30 2009 Automatic Build System 2.6.5-1mamba - automatic update by autodist * Wed Jul 08 2009 Automatic Build System 2.6.4-1mamba - automatic update by autodist * Thu Jun 04 2009 Automatic Build System 2.6.2-1mamba - automatic update by autodist * Sat May 16 2009 Silvan Calarco 2.6.1-2mamba - added version.h file - obsolete libpw * Mon May 11 2009 gil 2.6.1-1mamba - update to 2.6.1 * Fri Nov 21 2008 Silvan Calarco 2.4.2-2mamba - automatic rebuild by autodist * Tue Oct 21 2008 Silvan Calarco 2.4.2-1mamba - update to 2.4.2 * Tue Sep 30 2008 Silvan Calarco 2.4.1-1mamba - update to 2.4.1 - renamed to libpt; providing and obsoleting libpw * Fri Sep 28 2007 Silvan Calarco 1.10.10-1mamba - update to 1.10.10 * Mon Sep 17 2007 Silvan Calarco 1.10.7-1mamba - update to 1.10.7 - gcc42 atomic patch added to fix opal build * Fri Jan 26 2007 Silvan Calarco 1.10.3-1qilnx - update to version 1.10.3 by autospec * Tue Sep 19 2006 Silvan Calarco 1.10.1-2qilnx - enabled v4l2 plugin * Tue Jul 25 2006 Silvan Calarco 1.10.1-1qilnx - update to version 1.10.1 by autospec * Tue Mar 14 2006 Davide Madrisan 1.10.0-1qilnx - update to version 1.10.0 by autospec * Thu Sep 15 2005 Davide Madrisan 1.8.7-1qilnx - update to version 1.8.7 by autospec - do not move 'ptlib-config' to the %{_bindir} directory * Tue Aug 02 2005 Davide Madrisan 1.8.4-2qilnx - rebuilt * Mon Jun 13 2005 Silvan Calarco 1.8.4-1qilnx - update to version 1.8.4 by autospec * Wed Sep 15 2004 Silvan Calarco 1.6.6.3-1qilnx - new version build (Janus Patch4 from www.voxgratia.org) * Wed Sep 15 2004 Silvan Calarco 1.6.5-1qilnx - new version build * Fri Mar 05 2004 Silvan Calarco 1.6.3-1qilnx - new version build * Fri Mar 05 2004 Silvan Calarco 1.5.2-1qilnx - new version build * Wed May 14 2003 Silvan Calarco 1.4.11-2qilnx - added post ldconfig * Wed May 14 2003 Silvan Calarco 1.4.11-1qilnx - first build