Summary: Portable Tools Library Name: ptlib Version: 2.10.11 Release: 1%{?_dist_release} Vendor: Project Vine Distribution: Vine Linux License: MPLv1.0 Group: System Environment/Libraries URL: http://www.opalvoip.org/ %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') Source0: https://download.gnome.org/sources/ptlib/%{shortver}/%{name}-%{version}.tar.xz Patch1: ptlib-2.10.10-mga-bison-parameter.patch Patch2: ptlib-gcc5.patch Patch3: ptlib-gcc8.patch Patch4: ptlib-2.10.11-signed_int_overflow.patch Patch5: ptlib-2.10.11-openssl11.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel BuildRequires: alsa-lib-devel BuildRequires: openldap-devel BuildRequires: expat-devel BuildRequires: SDL-devel BuildRequires: pulseaudio-libs-devel BuildRequires: flex BuildRequires: bison BuildRequires: lua-devel Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l %description PTLib (Portable Tools Library) is a moderately large class library that has it's genesis many years ago as PWLib (portable Windows Library), a method to product applications to run on both Microsoft Windows and Unix systems. It has also been ported to other systems such as Mac OSX, VxWorks and other embedded systems. It is supplied mainly to support the OPAL project, but that shouldn't stop you from using it in whatever project you have in mind if you so desire. %package devel Summary: Development package for ptlib Group: Development/Libraries Requires: ptlib = %{version}-%{release} Requires: pkgconfig Requires: cyrus-sasl-devel Requires: openldap-devel Requires: openssl-devel Requires: expat-devel Requires: lua-devel Requires: SDL-devel Obsoletes: pwlib-devel %description devel The ptlib-devel package includes the libraries and header files for ptlib. %prep %setup -q %patch1 -p1 -b .bison %patch2 -p1 -b .gcc5 %patch3 -p1 -b .gcc8 %patch4 -p1 -b .signed_int_overflow %patch5 -p1 -b .openssl11 sed -i 's#bits/atomicity.h#ext/atomicity.h#g' configure* sed -i 's#bits/atomicity.h#ext/atomicity.h#g' include/ptlib/critsec.h %build NOWARN="-Wno-unused-function -Wno-misleading-indentation -Wno-deprecated-declarations" export CFLAGS="%{optflags} -DLDAP_DEPRECATED $NOWARN" export CXXFLAGS="%{optflags} -std=gnu++98 $NOWARN" export STDCXXFLAGS="%{optflags} -std=gnu++98 $NOWARN" %configure \ --prefix=%{_prefix} \ --disable-static \ --enable-plugins \ --disable-oss \ --enable-v4l2 \ --disable-avc \ --disable-v4l \ --enable-pulse make %{?_smp_mflags} V=1 %install rm -rf $RPM_BUILD_ROOT make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak # hack to fixup things for bug 197318 find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \; # rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %license mpl-1.0.htm %doc History.txt ReadMe.txt %attr(755,root,root) %{_libdir}/libpt*.so.* %dir %{_libdir}/ptlib-%{version} %dir %{_libdir}/ptlib-%{version}/devices %dir %{_libdir}/ptlib-%{version}/devices/sound %dir %{_libdir}/ptlib-%{version}/devices/videoinput # List these explicitly so we don't get any surprises %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so %files devel %defattr(-,root,root) %{_libdir}/libpt*.so %{_includedir}/* %{_datadir}/ptlib %{_libdir}/pkgconfig/ptlib.pc %attr(755,root,root) %{_bindir}/* %changelog * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO 2.10.11-1 - new upstream release. - dropped Patch0. - imported Patch1-5 from rawhide. * Sat Jul 02 2016 Yoji TOYODA 2.10.10-5 - rebuild with gcc-5.4.0 * Sun May 15 2016 Yoji TOYODA 2.10.10-4 - rebuild with openssl-1.0.2 * Thu Jan 22 2015 Ryoichi INAGAKI 2.10.10-3 - rebuilt with cyrus-sasl 2.1.26 - added BR: lua-devel and unixODBC-devel * Sat Jan 04 2014 Yoji TOYODA 2.10.10-2 - rebuild with VineSeed environment * Sun Mar 03 2013 Yoji TOYODA 2.10.10-1 - new upstream release * Fri Jan 04 2013 Yoji TOYODA 2.10.9-1 - new upstream release - add BuildRequires: pulseaudio-libs-devel * Sat Oct 20 2012 Yoji TOYODA 2.10.7-2 - rebuild with libraw1394-2.1.0 - add Patch0 (libpt2-fix-avc-plugin.patch) from suse * Sun Sep 30 2012 Yoji TOYODA 2.10.7-1 - new upstream release * Fri Sep 23 2011 Yoji TOYODA 2.10.2-1 - new upstream release * Tue Aug 16 2011 Yoji TOYODA 2.10.1-1 - new upstream release * Mon Jan 10 2011 Yoji TOYODA 2.6.7-2 - rebuild with openssl-1.0.0c * Mon Jun 21 2010 Yoji TOYODA 2.6.7-1 - new upstream release - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package) * Sun Mar 21 2010 Yoji TOYODA 2.6.6-1 - new upstream release - add BuildRequires: expat-devel - remove configure option (--enable-opal) * Sun Mar 14 2010 Yoji TOYODA 2.6.5-1 - new upstream release - add BuildRequires: libavc1394-devel - add configure option (--enable-avc) * Wed Jun 24 2009 MATSUBAYASHI Kohji - 2.6.2-3 - rebuilt on ppc w/o libdc1394-devel * Sun Jun 14 2009 Daisuke SUZUKI 2.6.2-2 - remove dc_pwplugin - remove BR: libdc1394-devel * Thu May 28 2009 Daisuke SUZUKI 2.6.2-1 - new upstream release * Sat Apr 4 2009 MATSUBAYASHI Kohji - 2.4.4-1 - new upstream release * Wed Oct 29 2008 Daisuke SUZUKI 2.4.2-1 - new upstream release * Mon Sep 29 2008 Daisuke SUZUKI 2.4.1-1 - initial build for Vine Linux - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc} * Wed Sep 10 2008 Peter Robinson - 2.3.1-2 - Build fixes from package review * Sun Jun 8 2008 Peter Robinson - 2.3.1-1 - Initial version of ptlib