#
# Conditional build:
-%bcond_with gcrypt # use libgcrypt instead of OpenSSL (ucommon in PLD uses OpenSSL by default)
-#
+%bcond_without gcrypt # use libgcrypt instead of OpenSSL (ucommon in PLD uses OpenSSL by default)
+
Summary: Common C++ class framework for RTP packets
Summary(pl.UTF-8): Szkielet klas C++ dla pakietów RTP
Name: ccrtp
-Version: 2.0.3
-Release: 1
+Version: 2.1.2
+Release: 5
License: GPL v2+ with runtime exception
Group: Libraries
Source0: http://ftp.gnu.org/gnu/ccrtp/%{name}-%{version}.tar.gz
-# Source0-md5: 0d57da1b8e212fb634b8951067fbc1e0
+# Source0-md5: e6792cbd8b705901c205a509bd7f812f
Patch0: %{name}-info.patch
Patch1: %{name}-openssl.patch
+Patch2: %{name}-am.patch
URL: http://www.gnu.org/software/ccrtp/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
-BuildRequires: doxygen
+BuildRequires: doxygen >= 1.8.0
%{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.2.3}
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:1.5
%{!?with_gcrypt:BuildRequires: openssl-devel}
BuildRequires: pkgconfig
-BuildRequires: ucommon-devel >= 5.0.0
+BuildRequires: ucommon-devel >= 6.2.2
+Requires: ucommon >= 6.2.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%{?with_gcrypt:Requires: libgcrypt-devel >= 1.2.3}
Requires: libstdc++-devel
%{!?with_gcrypt:Requires: openssl-devel}
-Requires: ucommon-devel >= 5.0.0
+Requires: ucommon-devel >= 6.2.2
%description devel
Header files for ccrtp library.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%post devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING.addendum ChangeLog NEWS README TODO
%attr(755,root,root) %{_libdir}/libccrtp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libccrtp.so.0
+%attr(755,root,root) %ghost %{_libdir}/libccrtp.so.3
%files devel
%defattr(644,root,root,755)