# -*- rpm-spec -*- # # mediastreamer2 -- A mediastreaming library for telephony applications # %ifarch %ix86 %define mediastreamer2_cpu pentium4 %endif Summary: Audio/Video real-time streaming Name: mediastreamer Version: @MEDIASTREAMER_VERSION@ Release: 1 License: LGPL Group: Applications/Communications URL: http://linphone.org/mediastreamer2/ Source0: %{name}-@MEDIASTREAMER_VERSION@.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %ifarch %ix86 BuildArch: i686 %endif %description Mediastreamer2 is a GPL licensed library to make audio and video real-time streaming and processing. Written in pure C, it is based upon the oRTP library. %package devel Summary: Headers, libraries and docs for the mediastreamer2 library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Mediastreamer2 is a GPL licensed library to make audio and video real-time streaming and processing. Written in pure C, it is based upon the ortp library. This package contains header files and development libraries needed to develop programs using the mediastreamer2 library. %ifarch %ix86 %define mediastreamer2_arch_cflags -malign-double -march=i686 -mcpu=%{mediastreamer2_cpu} %else # Must be non-empty %define mediastreamer2_arch_cflags -Wall %endif %define mediastreamer2_cflags %mediastreamer2_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing %prep %setup -q %build %configure \ --enable-gtk-doc=no \ --enable-shared --enable-static make -j$RPM_BUILD_NCPUS CFLAGS="%mediastreamer2_cflags" CXXFLAGS="%mediastreamer2_cflags" %install rm -rf $RPM_BUILD_ROOT %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc docs/html %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir} %changelog * Tue Oct 25 2005 Francois-Xavier Kowalski - Add to mediastreamer2 distribution with "make rpm" target