| |
@@ -1,21 +1,26 @@
|
| |
Name: ptlib
|
| |
Summary: Portable Tools Library
|
| |
- Version: 2.10.11
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 2.16.2
|
| |
+ Release: 0.1%{?dist}
|
| |
URL: http://www.opalvoip.org/
|
| |
License: MPLv1.0
|
| |
|
| |
- Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.10/%{name}-%{version}.tar.xz
|
| |
- Patch1: ptlib-2.10.10-mga-bison-parameter.patch
|
| |
- Patch2: ptlib-gcc5.patch
|
| |
- Patch3: ptlib-gcc8.patch
|
| |
-
|
| |
- BuildRequires: gcc gcc-c++
|
| |
- BuildRequires: pkgconfig expat-devel flex bison
|
| |
- BuildRequires: alsa-lib-devel libv4l-devel
|
| |
- BuildRequires: openldap-devel SDL-devel compat-openssl10-devel
|
| |
- BuildRequires: boost-devel pulseaudio-libs-devel
|
| |
- BuildRequires: perl-interpreter
|
| |
+ Source0: https://downloads.sourceforge.net/opalvoip/V3.16%20Procyon/Stable%202/%{name}-%{version}.tar.bz2
|
| |
+
|
| |
+ BuildRequires: gcc
|
| |
+ BuildRequires: gcc-c++
|
| |
+ BuildRequires: bison
|
| |
+ BuildRequires: pkgconfig
|
| |
+ BuildRequires: expat-devel
|
| |
+ BuildRequires: alsa-lib-devel
|
| |
+ BuildRequires: pulseaudio-libs-devel
|
| |
+ BuildRequires: SDL-devel
|
| |
+ BuildRequires: openldap-devel
|
| |
+ BuildRequires: gstreamer1-plugins-base-devel
|
| |
+ BuildRequires: compat-openssl10-devel
|
| |
+ BuildRequires: libjpeg-turbo-devel
|
| |
+ BuildRequires: libpcap-devel
|
| |
+ BuildRequires: sed
|
| |
|
| |
%description
|
| |
PTLib (Portable Tools Library) is a moderately large class library that
|
| |
@@ -29,62 +34,57 @@
|
| |
|
| |
%package devel
|
| |
Summary: Development package for ptlib
|
| |
- Requires: ptlib = %{version}-%{release}
|
| |
+ Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
Requires: pkgconfig
|
| |
+ Requires: expat-devel
|
| |
+ Requires: SDL-devel
|
| |
+ Requires: openldap-devel
|
| |
+ Requires: gstreamer1-plugins-base-devel
|
| |
+ Requires: libjpeg-turbo-devel
|
| |
+ Requires: libpcap-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
|
| |
-
|
| |
- 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
|
| |
- export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
|
| |
- export CXXFLAGS="%{optflags} -std=gnu++98"
|
| |
- export STDCXXFLAGS="%{optflags} -std=gnu++98"
|
| |
- %configure --prefix=%{_prefix} --disable-static --enable-plugins --disable-oss --enable-v4l2 --disable-avc --disable-v4l --enable-pulse
|
| |
- make %{?_smp_mflags} V=1
|
| |
+ %configure --disable-oss --enable-pulse
|
| |
+ # Avoid "-O3 -ggdb3" in CFLAGS and strip(1) usage
|
| |
+ sed -e '/^\(DEBUG_CFLAGS\|OPT_CFLAGS\|STRIP\)[[:space:]]/d' -i make/ptlib_config.mak
|
| |
+ %make_build V=1
|
| |
|
| |
%install
|
| |
- make PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install
|
| |
-
|
| |
- perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' %{buildroot}%{_datadir}/ptlib/make/ptbuildopts.mak
|
| |
-
|
| |
- # hack to fixup things for bug 197318
|
| |
- find %{buildroot}%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
|
| |
-
|
| |
- #Remove static libs
|
| |
- find %{buildroot} -name '*.a' -delete
|
| |
+ # Avoid installing static library
|
| |
+ %make_install PTLIB_OPT_STATIC_FILE=""
|
| |
+ chmod -R u+w %{buildroot}
|
| |
|
| |
%ldconfig_scriptlets
|
| |
|
| |
%files
|
| |
%license mpl-1.0.htm
|
| |
%doc History.txt ReadMe.txt
|
| |
- %attr(755,root,root) %{_libdir}/libpt*.so.*
|
| |
+ %{_libdir}/libpt.so.2*
|
| |
%dir %{_libdir}/%{name}-%{version}
|
| |
- %dir %{_libdir}/%{name}-%{version}/devices
|
| |
- %dir %{_libdir}/%{name}-%{version}/devices/sound
|
| |
- %dir %{_libdir}/%{name}-%{version}/devices/videoinput
|
| |
+ %dir %{_libdir}/%{name}-%{version}/device
|
| |
+ %dir %{_libdir}/%{name}-%{version}/device/sound
|
| |
+ %dir %{_libdir}/%{name}-%{version}/device/videoinput
|
| |
# List these explicitly so we don't get any surprises
|
| |
- %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/alsa_pwplugin.so
|
| |
- %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/pulse_pwplugin.so
|
| |
- %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/v4l2_pwplugin.so
|
| |
+ %{_libdir}/%{name}-%{version}/device/sound/alsa_ptplugin.so
|
| |
+ %{_libdir}/%{name}-%{version}/device/sound/pulse_ptplugin.so
|
| |
+ %{_libdir}/%{name}-%{version}/device/videoinput/v4l2_ptplugin.so
|
| |
|
| |
%files devel
|
| |
- %{_libdir}/libpt*.so
|
| |
+ %{_libdir}/libpt.so
|
| |
%{_includedir}/*
|
| |
%{_datadir}/ptlib
|
| |
%{_libdir}/pkgconfig/ptlib.pc
|
| |
- %attr(755,root,root) %{_bindir}/*
|
| |
|
| |
%changelog
|
| |
+ * Sun May 12 2019 Robert Scheck <robert@fedoraproject.org> - 2.16.2-0.1
|
| |
+ - Upgrade to 2.16.2 (#1674843)
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.11-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
Update ptlib to 2.16.2 (pre-release?) in order to hopefully build ekiga 4.1.0 (pre-release) at a later point…