Name: webrtc Version: 0 Release: 0.7.svn1950%{?dist} Summary: Web-based real-time communication stack Group: Development/Libraries License: BSD URL: http://sites.google.com/site/webrtc/ ## svn export -r 1950 http://webrtc.googlecode.com/svn/trunk/ webrtc-0 ## tar cjf webrtc-0.tar.bz2 webrtc-0 Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.resources.tar Patch1: webrtc-0001-Build-against-external-libyuv.patch Patch2: webrtc-0002-Fix-paths-for-audio_coding-unit-tests.patch Patch3: webrtc-0003-No-such-macro-GSMAMR-use-AMR-instead.patch Patch4: webrtc-0004-Disable-several-failed-tests-for-now-FIXME.patch Patch5: webrtc-0005-Kill-unused-class-member.patch Patch6: webrtc-0006-Use-system-wide-gmock-include.patch Patch7: webrtc-0007-Fix-path-to-protobuf-generated-includes.patch Patch8: webrtc-0008-Fix-linking-on-x86.patch Patch9: webrtc-0009-Kill-videocodec-related-hardcoded-defines.patch Patch10: webrtc-0010-Kill-audiocodec-related-hardcoded-defines.patch Patch11: webrtc-0011-Initial-commit-of-autotools.patch Patch12: webrtc-0012-Fix-failing-test-on-RHEL-5.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libyuv-devel BuildRequires: libvpx-devel BuildRequires: libjpeg-devel BuildRequires: alsa-lib-devel BuildRequires: pulseaudio-libs-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: automake autoconf libtool BuildRequires: gtest-devel BuildRequires: gmock-devel BuildRequires: gflags-devel BuildRequires: protobuf-compiler BuildRequires: protobuf-devel BuildRequires: zlib-devel %description WebRTC is an open source project that enables web browsers with Real-Time Communications (RTC) capabilities via simple Javascript APIs. The WebRTC components have been optimized to best serve this purpose. WebRTC implements WHATWG's proposal for video conferencing on the web. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel Development files for %{name}. %prep %setup -q %patch1 -p1 -b .ext_libuv %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 -b .autotools %if 0%{?el5} %patch12 -p1 %endif tar xf %{SOURCE1} touch NEWS README ChangeLog %build autoreconf -ivf %if 0%{?el5} %configure --disable-static --with-pulseaudio --with-protobuf --with-videocodec-vp8=no %else %configure --disable-static --with-pulseaudio --with-protobuf %endif make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %check %if 0%{?el5} %configure --disable-static --with-pulseaudio --with-protobuf --with-videocodec-vp8=no --with-test %else %configure --disable-static --with-pulseaudio --with-protobuf --with-test %endif make make check %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS src/LICENSE src/LICENSE_THIRD_PARTY src/PATENTS %{_libdir}/*.so.0 %{_libdir}/*.so.0.0.0 %files devel %defattr(-,root,root,-) %{_includedir}/webrtc %{_libdir}/*.so %{_libdir}/pkgconfig/webrtc.pc %changelog * Wed Mar 28 2012 Peter Lemenkov - 0-0.7.svn1950 - svn ver. 1950 * Thu Mar 22 2012 Peter Lemenkov - 0-0.6.svn1922 - svn ver. 1922 * Fri Feb 10 2012 Peter Lemenkov - 0-0.5.svn1662 - svn ver. 1662 * Tue Feb 07 2012 Peter Lemenkov - 0-0.4.svn1607 - svn ver. 1607 - lifted libvpx version restriction * Thu Feb 02 2012 Peter Lemenkov - 0-0.3.svn1592 - svn ver. 1593 - libvpx-devel >= 1.0.0 * Tue Jan 31 2012 Peter Lemenkov - 0-0.2.svn1578 - svn ver. 1578 * Wed Dec 21 2011 Peter Lemenkov - 0-0.1.svn1260 - Initial build