2024-01-06 10:34:45 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
2024-01-06 10:34:45 +01:00
|
|
|
%define maj3ver %(echo %version | cut -d. -f 1-3)
|
|
|
|
%define gitver %(echo %version | cut -d. -f1-2 | tr . _)
|
|
|
|
%define medver %(echo %version | cut -d. -f2)
|
|
|
|
%define minver %(echo %version | cut -d. -f3)
|
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
Name: ptlib
|
2024-01-06 10:34:45 +01:00
|
|
|
Version: 2.18.8
|
2024-01-06 10:34:45 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 10:34:45 +01:00
|
|
|
Summary: Portable Tools Libary for opal
|
2024-01-06 10:34:45 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 10:34:45 +01:00
|
|
|
URL: https://sourceforge.net/projects/opalvoip
|
|
|
|
Source: https://sourceforge.net/projects/opalvoip/files/v3.%{medver}%20Cygni/Stable%20%{minver}/ptlib-%{version}.tar.bz2
|
|
|
|
#Source: https+git://git.code.sf.net/p/opalvoip/ptlib/v%{gitver}/ptlib-%{version}.tar.bz2
|
|
|
|
#Source: http://ftp.acc.umu.se/pub/GNOME/sources/ptlib/%{majver}/ptlib-%{version}.tar.xz
|
|
|
|
Patch3: ptlib-2.18.8-gcc-12.2.0.patch
|
2024-01-06 10:34:45 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libMagick-devel
|
|
|
|
BuildRequires: libSDL2-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libalsa-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libavcodec-ffmpeg-devel
|
|
|
|
BuildRequires: libavformat-ffmpeg-devel
|
|
|
|
BuildRequires: libavutil-ffmpeg-devel
|
|
|
|
BuildRequires: libesound-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: liblua-devel
|
|
|
|
BuildRequires: libncurses-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libodbc-devel
|
|
|
|
BuildRequires: libopenldap-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libpcap-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libpulseaudio-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libreadline-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libsasl2-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
BuildRequires: libswresample-ffmpeg-devel
|
|
|
|
BuildRequires: libswscale-ffmpeg-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: libraw1394-devel >= 1.2.0
|
|
|
|
|
|
|
|
%description
|
2024-01-06 10:34:45 +01:00
|
|
|
Portable Tools Libary for opal.
|
|
|
|
|
|
|
|
%package -n libpt
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Portable Tools Libary for opal
|
|
|
|
Provides: ptlib
|
|
|
|
Obsoletes: ptlib <= 2.10.11
|
|
|
|
Provides: libpw
|
|
|
|
Obsoletes: libpw < 2.18.8
|
2024-01-06 10:34:45 +01:00
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
%description -n libpt
|
|
|
|
Portable Tools Libary for opal.
|
|
|
|
|
|
|
|
%package -n libpt-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Portable Windows Library development files
|
2024-01-06 10:34:45 +01:00
|
|
|
Requires: libpt = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: ptlib-devel
|
|
|
|
Obsoletes: ptlib-devel <= 2.10.11
|
|
|
|
Provides: libpw-devel
|
|
|
|
Obsoletes: libpw-devel < 2.18.8
|
|
|
|
|
|
|
|
%description -n libpt-devel
|
|
|
|
Header files and libraries for developing applications that use ptlib.
|
2024-01-06 10:34:45 +01:00
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
%debug_package
|
2024-01-06 10:34:45 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-06 10:34:45 +01:00
|
|
|
%setup -q
|
|
|
|
%patch3 -p1
|
2024-01-06 10:34:45 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 10:34:45 +01:00
|
|
|
export PKG_CONFIG_PATH=%{_libdir}/ffmpeg4/pkgconfig
|
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
%configure \
|
|
|
|
--enable-plugins \
|
|
|
|
--enable-alsa \
|
2024-01-06 10:34:45 +01:00
|
|
|
--enable-pulse \
|
2024-01-06 10:34:45 +01:00
|
|
|
--enable-v4l2 \
|
|
|
|
--enable-bsdvideo \
|
|
|
|
--enable-dc \
|
2024-01-06 10:34:45 +01:00
|
|
|
--enable-exceptions \
|
|
|
|
--disable-gstreamer \
|
|
|
|
--disable-avc
|
2024-01-06 10:34:45 +01:00
|
|
|
|
|
|
|
# --enable-exceptions required by ekiga 3.2.0
|
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
%make opt PLATFORM_TYPE="" PTLIB_BASE=pt DSYMUTIL=/bin/true
|
2024-01-06 10:34:45 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:34:45 +01:00
|
|
|
%makeinstall PLATFORM_TYPE="" PTLIB_BASE=pt DSYMUTIL=/bin/true
|
2024-01-06 10:34:45 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
%files -n libpt
|
2024-01-06 10:34:45 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpt.so.*
|
2024-01-06 10:34:45 +01:00
|
|
|
%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 -n libpt-devel
|
2024-01-06 10:34:45 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpt.so
|
|
|
|
%{_libdir}/libpt_s.a
|
|
|
|
%{_includedir}/ptlib.h
|
2024-01-06 10:34:45 +01:00
|
|
|
%{_includedir}/ptlib_config.h
|
|
|
|
%{_includedir}/ptlib_wx.h
|
2024-01-06 10:34:45 +01:00
|
|
|
%dir %{_includedir}/ptlib
|
|
|
|
%{_includedir}/ptlib/*
|
|
|
|
%dir %{_includedir}/ptclib
|
|
|
|
%{_includedir}/ptclib/*
|
|
|
|
%dir %{_datadir}/ptlib
|
|
|
|
%{_datadir}/ptlib/*
|
|
|
|
%{_libdir}/pkgconfig/ptlib.pc
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:34:45 +01:00
|
|
|
* Tue Dec 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.18.8-1mamba
|
|
|
|
- update to 2.18.8
|
|
|
|
|
2024-01-06 10:34:45 +01:00
|
|
|
* Sun Jan 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.11-1mamba
|
|
|
|
- update to 2.10.11
|
|
|
|
|
|
|
|
* Thu Feb 21 2013 Automatic Build System <autodist@mambasoft.it> 2.10.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 03 2012 Automatic Build System <autodist@mambasoft.it> 2.10.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 02 2012 Automatic Build System <autodist@mambasoft.it> 2.10.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Automatic Build System <autodist@mambasoft.it> 2.10.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.1-1mamba
|
|
|
|
- update to 2.10.1
|
|
|
|
|
|
|
|
* Tue Jun 01 2010 Automatic Build System <autodist@mambasoft.it> 2.6.7-1mamba
|
|
|
|
- update to 2.6.7
|
|
|
|
|
|
|
|
* Wed Sep 30 2009 Automatic Build System <autodist@mambasoft.it> 2.6.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 08 2009 Automatic Build System <autodist@mambasoft.it> 2.6.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Jun 04 2009 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat May 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-2mamba
|
|
|
|
- added version.h file
|
|
|
|
- obsolete libpw
|
|
|
|
|
|
|
|
* Mon May 11 2009 gil <puntogil@libero.it> 2.6.1-1mamba
|
|
|
|
- update to 2.6.1
|
|
|
|
|
|
|
|
* Fri Nov 21 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Tue Oct 21 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-1mamba
|
|
|
|
- update to 2.4.2
|
|
|
|
|
|
|
|
* Tue Sep 30 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-1mamba
|
|
|
|
- update to 2.4.1
|
|
|
|
- renamed to libpt; providing and obsoleting libpw
|
|
|
|
|
|
|
|
* Fri Sep 28 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.10-1mamba
|
|
|
|
- update to 1.10.10
|
|
|
|
|
|
|
|
* Mon Sep 17 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.7-1mamba
|
|
|
|
- update to 1.10.7
|
|
|
|
- gcc42 atomic patch added to fix opal build
|
|
|
|
|
|
|
|
* Fri Jan 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.3-1qilnx
|
|
|
|
- update to version 1.10.3 by autospec
|
|
|
|
|
|
|
|
* Tue Sep 19 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-2qilnx
|
|
|
|
- enabled v4l2 plugin
|
|
|
|
|
|
|
|
* Tue Jul 25 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-1qilnx
|
|
|
|
- update to version 1.10.1 by autospec
|
|
|
|
|
|
|
|
* Tue Mar 14 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.10.0-1qilnx
|
|
|
|
- update to version 1.10.0 by autospec
|
|
|
|
|
|
|
|
* Thu Sep 15 2005 Davide Madrisan <davide.madrisan@qilinux.it> 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 <davide.madrisan@qilinux.it> 1.8.4-2qilnx
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Mon Jun 13 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.4-1qilnx
|
|
|
|
- update to version 1.8.4 by autospec
|
|
|
|
|
|
|
|
* Wed Sep 15 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.6.3-1qilnx
|
|
|
|
- new version build (Janus Patch4 from www.voxgratia.org)
|
|
|
|
|
|
|
|
* Wed Sep 15 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.5-1qilnx
|
|
|
|
- new version build
|
|
|
|
|
|
|
|
* Fri Mar 05 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.3-1qilnx
|
|
|
|
- new version build
|
|
|
|
|
|
|
|
* Fri Mar 05 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-1qilnx
|
|
|
|
- new version build
|
|
|
|
|
|
|
|
* Wed May 14 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.4.11-2qilnx
|
|
|
|
- added post ldconfig
|
|
|
|
|
|
|
|
* Wed May 14 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.4.11-1qilnx
|
|
|
|
- first build
|