%define ortp_glib 1 %define major 8 %define libname %mklibname %{name} %{major} %define libnamedev %mklibname %{name} -d Summary: Real-time Transport Protocol Stack Name: ortp Version: 0.16.1 Release: %mkrel 4 License: LGPLv2+ Group: Communications URL: http://linphone.org/ortp/ Source0: http://www.linphone.org/ortp/sources/%{name}-%{version}.tar.gz Patch0: ortp-ppcfix.patch Patch1: ortp_stun_rand.patch %if %ortp_glib BuildRequires: glib2-devel %endif BuildRequires: gtk-doc BuildRequires: openssl-devel BuildRequires: doxygen BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It is available for most unix clones (primilarly Linux and HP-UX), and Microsoft Windows. %package -n %{libname} Summary: Real-time Transport Protocol Stack Group: System/Libraries %description -n %{libname} oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It is available for most unix clones (primilarly Linux and HP-UX), and Microsoft Windows. %package -n %{libnamedev} Summary: Headers, libraries and docs for the oRTP library Group: Development/Other Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} Requires: %{libname} = %{version} Obsoletes: %{libname}5-devel %description -n %{libnamedev} oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It is available for most unix clones (primilarly Linux and HP-UX), and Microsoft Windows. This package contains header files and development libraries needed to develop programs using the oRTP library. #define ortp_cflags %ortp_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing %prep %setup -q #%patch0 -p0 %patch1 -p1 %build %configure2_5x \ --enable-shared \ --enable-static \ --enable-glib \ --enable-glibtest \ --enable-gtk-doc \ --enable-ipv6 %make #CXXFLAGS="%ortp_cflags" %install rm -rf %{buildroot} %makeinstall %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root,-) %{_libdir}/*.so.%{major}* %files -n %{libnamedev} %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog INSTALL README TODO %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/%{name} %if %ortp_glib # `--enable-gtk-doc' does not work : cannot be disabled %{_docdir}/%{name}/%{name}-%{version}/html %endif %changelog * Wed Apr 07 2010 Funda Wang <fwang@mandriva.org> 0.16.1-4mdv2010.1 + Revision: 532520 - rebuild * Fri Feb 26 2010 Oden Eriksson <oeriksson@mandriva.com> 0.16.1-3mdv2010.1 + Revision: 511607 - rebuilt against openssl-0.9.8m * Sun Sep 27 2009 Olivier Blin <oblin@mandriva.com> 0.16.1-2mdv2010.0 + Revision: 450190 - fix build by adding missing read() check on non-x86, because it fallbacks to reading /dev/random to get random data and never checks read() return value; as we're building with Werror, it fails to build (from Arnaud Patard) * Sun Sep 20 2009 Funda Wang <fwang@mandriva.org> 0.16.1-1mdv2010.0 + Revision: 444862 - New version 0.16.1 * Tue May 05 2009 Funda Wang <fwang@mandriva.org> 0.16.0-1mdv2010.0 + Revision: 372136 - New version 0.16.0 * Wed Feb 18 2009 Emmanuel Andry <eandry@mandriva.org> 0.15.0-1mdv2009.1 + Revision: 342649 - BR doxygen - New version 0.15.0 - New major 8 - apply devel library policy - fix license - disable P0 (doesn't apply, and can't check if still needed because of ppc arch - BR openssl-devel - enable ipv6 - package doc * Sat Oct 25 2008 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.13.1-1mdv2009.1 + Revision: 297027 - Fix File list - Fix File list - New version (needed by kdenetwork 4.1.71) * Sat Jun 28 2008 Oden Eriksson <oeriksson@mandriva.com> 0.10.0-5mdv2009.0 + Revision: 229672 - rebuild + Thierry Vignaud <tv@mandriva.org> - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Tue Mar 04 2008 Oden Eriksson <oeriksson@mandriva.com> 0.10.0-3mdv2008.1 + Revision: 179114 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Wed Jan 03 2007 Emmanuel Blindauer <blindauer@mandriva.org> 0.10.0-2mdv2007.0 + Revision: 103558 - fix ppc build (patch 0) - Import ortp * Fri Jun 16 2006 Austin Acton <austin@mandriva.org> 0.10.0-2mdv2007.0 - major 5 * Fri Jun 16 2006 Austin Acton <austin@mandriva.org> 0.10.0-1mdv2007.0 - New release 0.10.0 * Thu Mar 09 2006 Austin Acton <austin@mandriva.org> 0.9.0-1mdk - New release 0.9.0 - major 4 - move docs to devel package - buildrequires gtk-doc * Mon Feb 13 2006 Oden Eriksson <oeriksson@mandriva.com> 0.8.1-1mdk - 0.8.1 * Tue Dec 20 2005 Lenny Cartier <lenny@mandriva.com> 0.8.0-1mdk - 0.8.0 * Wed Oct 26 2005 Francois-Xavier Kowalski <fix@hp.com> - Add to oRTP distribution with "make rpm" target