3 %bcond_without opengl # X11+OpenGL rendering support
4 %bcond_with pcap # audio playing from PCAP files
5 %bcond_without pulseaudio # PulseAudio support
7 Summary: Audio/Video real-time streaming
8 Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym
14 Source0: http://download-mirror.savannah.gnu.org/releases/linphone/mediastreamer/%{name}-%{version}.tar.gz
15 # Source0-md5: f2ea0fe731a363749a81b6eaac22a62c
16 Patch0: %{name}-imagedir.patch
17 URL: http://www.linphone.org/eng/documentation/dev/mediastreamer2.html
18 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
19 BuildRequires: SDL-devel >= 1.2.0
20 BuildRequires: alsa-lib-devel
21 BuildRequires: autoconf >= 2.53
22 BuildRequires: automake
23 BuildRequires: doxygen
24 # libavcodec >= 51.0.0, libswscale >= 0.7.0
25 BuildRequires: ffmpeg-devel
26 BuildRequires: gettext-devel
27 %{?with_opengl:BuildRequires: glew-devel >= 1.5}
28 BuildRequires: jack-audio-connection-kit-devel
29 BuildRequires: intltool >= 0.40
30 BuildRequires: libgsm-devel
31 %{?with_pcap:BuildRequires: libpcap-devel}
32 BuildRequires: libtheora-devel >= 1.0-0.alpha7
33 BuildRequires: libtool >= 2:2
34 BuildRequires: libupnp-devel >= 1.6
35 BuildRequires: libupnp-devel < 1.7
36 BuildRequires: libv4l-devel
37 BuildRequires: libvpx-devel >= 0.9.6
38 BuildRequires: opus-devel >= 0.9.0
39 BuildRequires: ortp-devel >= 0.21.0
40 BuildRequires: pkgconfig
41 %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.21}
42 BuildRequires: sed >= 4.0
43 BuildRequires: spandsp-devel >= 0.0.6
44 BuildRequires: speex-devel >= 1.2-beta3
45 BuildRequires: xorg-lib-libX11-devel
46 BuildRequires: xorg-lib-libXv-devel
48 %{?with_opengl:Requires: glew >= 1.5}
49 Requires: libtheora >= 1.0-0.alpha7
50 Requires: libupnp >= 1.6
51 Requires: libvpx >= 0.9.6
52 Requires: opus >= 0.9.0
53 Requires: ortp >= 0.21.0
54 %{?with_pulseaudio:Requires: pulseaudio-libs >= 0.9.21}
55 Requires: spandsp-libs >= 0.0.6
56 Requires: speex >= 1.2-beta3
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 Mediastreamer2 is a GPL licensed library to make audio and video
61 real-time streaming and processing. Written in pure C, it is based
62 upon the oRTP library.
64 %description -l pl.UTF-8
65 Mediastreamer2 to udostępniona na licencji GPL biblioteka do
66 przesyłania i przetwarzania strumieni audio/video w czasie
67 rzeczywistym. Jest napisana w czystym C, oparta na bibliotece oRTP.
70 Summary: Header files and development documentation for mediastreamer library
71 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 %{?with_opengl:Requires: OpenGL-devel}
75 Requires: alsa-lib-devel
76 Requires: ffmpeg-devel
77 %{?with_opengl:Requires: glew-devel >= 1.5}
78 Requires: libtheora-devel >= 1.0-0.alpha7
79 Requires: libupnp-devel >= 1.6
80 Requires: libupnp-devel < 1.7
81 Requires: libv4l-devel
82 Requires: libvpx-devel >= 0.9.6
83 Requires: opus-devel >= 0.9.0
84 Requires: ortp-devel >= 0.21.0
85 %{?with_pulseaudio:Requires: pulseaudio-devel >= 0.9.21}
86 Requires: spandsp-devel >= 0.0.6
87 Requires: speex-devel >= 1.2-beta3
88 Requires: xorg-lib-libX11-devel
89 Requires: xorg-lib-libXv-devel
92 Header files and development documentation for mediastreamer library.
94 %description devel -l pl.UTF-8
95 Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer.
98 Summary: Static mediastreamer library
99 Summary(pl.UTF-8): Statyczna biblioteka mediastreamer
100 Group: Development/Libraries
101 Requires: %{name}-devel = %{version}-%{release}
104 Static mediastreamer library.
106 %description static -l pl.UTF-8
107 Statyczna biblioteka mediastreamer.
120 --enable-external-ortp \
121 %{!?with_opengl:--disable-glx} \
122 %{?with_pcap:--enable-pcap} \
123 %{?with_pulseaudio:--enable-pulseaudio} \
124 --disable-silent-rules \
130 rm -rf $RPM_BUILD_ROOT
133 DESTDIR=$RPM_BUILD_ROOT
135 # Remove duplicated documentation
136 %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
146 %files -f %{name}.lang
147 %defattr(644,root,root,755)
148 %doc AUTHORS ChangeLog NEWS README
149 %attr(755,root,root) %{_bindir}/mediastream
150 %{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback}
151 %attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.*
152 %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.3
153 %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.*
154 %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.3
155 %{_pixmapsdir}/%{name}
158 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/libmediastreamer_base.so
161 %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so
162 %{_libdir}/libmediastreamer_base.la
163 %{_libdir}/libmediastreamer_voip.la
164 %{_includedir}/mediastreamer2
165 %{_pkgconfigdir}/mediastreamer.pc
168 %defattr(644,root,root,755)
169 %{_libdir}/libmediastreamer_base.a
170 %{_libdir}/libmediastreamer_voip.a