]>
Commit | Line | Data |
---|---|---|
574e0d82 JB |
1 | # TODO: |
2 | # - libebml2, libmatroska2 (Matroska support) | |
574e0d82 | 3 | # - dtls (polarssl/mbedtls >= 1.4 when released) |
2adf1e07 JB |
4 | # |
5 | # Conditional build: | |
574e0d82 | 6 | %bcond_without bcg729 # support for G279AnnexB in RTC3389 implementation of Comfort Noise Payload |
d1086c6e | 7 | %bcond_without zrtp # support for RFC 6189: Media Path Key Agreement for Unicast Secure RTP |
2adf1e07 JB |
8 | %bcond_without opengl # X11+OpenGL rendering support |
9 | %bcond_with pcap # audio playing from PCAP files | |
574e0d82 JB |
10 | %bcond_without srtp # SRTP (secure RTP) support |
11 | # audio I/O | |
12 | %bcond_without alsa # ALSA sound I/O support | |
13 | %bcond_with arts # aRts sound I/O support | |
14 | %bcond_with portaudio # PortAudio sound I/O support | |
15 | %bcond_without pulseaudio # PulseAudio sound I/O support | |
2adf1e07 | 16 | # |
bbb0ffde | 17 | Summary: Audio/Video real-time streaming |
2adf1e07 | 18 | Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym |
bbb0ffde | 19 | Name: mediastreamer |
574e0d82 | 20 | Version: 2.11.2 |
e8796edf | 21 | Release: 1.1 |
2adf1e07 | 22 | License: GPL v2+ |
bbb0ffde | 23 | Group: Libraries |
2adf1e07 | 24 | Source0: http://download-mirror.savannah.gnu.org/releases/linphone/mediastreamer/%{name}-%{version}.tar.gz |
574e0d82 | 25 | # Source0-md5: 8b654c3e8938d50df9e83d2e353888a6 |
45fa5f14 | 26 | Patch0: %{name}-imagedir.patch |
9a501a0e | 27 | URL: http://www.linphone.org/eng/documentation/dev/mediastreamer2.html |
2adf1e07 JB |
28 | %{?with_opengl:BuildRequires: OpenGL-GLX-devel} |
29 | BuildRequires: SDL-devel >= 1.2.0 | |
574e0d82 JB |
30 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
31 | %{?with_arts:BuildRequires: artsc-devel} | |
bbb0ffde | 32 | BuildRequires: autoconf >= 2.53 |
aa0ebe9a | 33 | BuildRequires: automake >= 1:1.9 |
574e0d82 | 34 | %{?with_bcg729:BuildRequires: bcg729-devel >= 1.0} |
d1086c6e | 35 | %{?with_zrtp:BuildRequires: bzrtp-devel >= 1.0.0} |
bbb0ffde | 36 | BuildRequires: doxygen |
2adf1e07 | 37 | # libavcodec >= 51.0.0, libswscale >= 0.7.0 |
bbb0ffde | 38 | BuildRequires: ffmpeg-devel |
c07fcbab | 39 | BuildRequires: gettext-tools |
2adf1e07 | 40 | %{?with_opengl:BuildRequires: glew-devel >= 1.5} |
bbb0ffde | 41 | BuildRequires: jack-audio-connection-kit-devel |
2adf1e07 | 42 | BuildRequires: intltool >= 0.40 |
bbb0ffde | 43 | BuildRequires: libgsm-devel |
2adf1e07 JB |
44 | %{?with_pcap:BuildRequires: libpcap-devel} |
45 | BuildRequires: libtheora-devel >= 1.0-0.alpha7 | |
46 | BuildRequires: libtool >= 2:2 | |
47 | BuildRequires: libupnp-devel >= 1.6 | |
48 | BuildRequires: libupnp-devel < 1.7 | |
bbb0ffde | 49 | BuildRequires: libv4l-devel |
2adf1e07 JB |
50 | BuildRequires: libvpx-devel >= 0.9.6 |
51 | BuildRequires: opus-devel >= 0.9.0 | |
574e0d82 | 52 | BuildRequires: ortp-devel >= 0.24.0 |
bbb0ffde | 53 | BuildRequires: pkgconfig |
574e0d82 JB |
54 | BuildRequires: polarssl-devel |
55 | %{?with_portaudio:BuildRequires: portaudio-devel} | |
2adf1e07 | 56 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.21} |
61d85515 | 57 | BuildRequires: sed >= 4.0 |
2adf1e07 | 58 | BuildRequires: spandsp-devel >= 0.0.6 |
f52b820a | 59 | BuildRequires: speex-devel >= 1:1.2-beta3 |
fed1d2a7 | 60 | BuildRequires: speexdsp-devel >= 1.2-beta3 |
574e0d82 | 61 | %{?with_srtp:BuildRequires: srtp-devel} |
bbb0ffde | 62 | BuildRequires: xorg-lib-libX11-devel |
61d85515 | 63 | BuildRequires: xorg-lib-libXv-devel |
45fa5f14 | 64 | BuildRequires: xxd |
574e0d82 | 65 | %{?with_bcg729:Requires: bcg729 >= 1.0} |
d1086c6e | 66 | %{?with_zrtp:Requires: bzrtp >= 1.0.0} |
2adf1e07 JB |
67 | %{?with_opengl:Requires: glew >= 1.5} |
68 | Requires: libtheora >= 1.0-0.alpha7 | |
69 | Requires: libupnp >= 1.6 | |
70 | Requires: libvpx >= 0.9.6 | |
71 | Requires: opus >= 0.9.0 | |
574e0d82 | 72 | Requires: ortp >= 0.24.0 |
2adf1e07 | 73 | %{?with_pulseaudio:Requires: pulseaudio-libs >= 0.9.21} |
e6d0cfff | 74 | Requires: spandsp >= 0.0.6 |
f52b820a | 75 | Requires: speex >= 1:1.2-beta3 |
fed1d2a7 | 76 | Requires: speexdsp >= 1.2-beta3 |
bbb0ffde AM |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
79 | %description | |
80 | Mediastreamer2 is a GPL licensed library to make audio and video | |
81 | real-time streaming and processing. Written in pure C, it is based | |
82 | upon the oRTP library. | |
83 | ||
2adf1e07 JB |
84 | %description -l pl.UTF-8 |
85 | Mediastreamer2 to udostępniona na licencji GPL biblioteka do | |
86 | przesyłania i przetwarzania strumieni audio/video w czasie | |
87 | rzeczywistym. Jest napisana w czystym C, oparta na bibliotece oRTP. | |
88 | ||
bbb0ffde | 89 | %package devel |
2adf1e07 JB |
90 | Summary: Header files and development documentation for mediastreamer library |
91 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer | |
bbb0ffde | 92 | Group: Development/Libraries |
2adf1e07 JB |
93 | Requires: %{name} = %{version}-%{release} |
94 | %{?with_opengl:Requires: OpenGL-devel} | |
574e0d82 JB |
95 | %{?with_alsa:Requires: alsa-lib-devel} |
96 | %{?with_bcg729:Requires: bcg729-devel >= 1.0} | |
d1086c6e | 97 | %{?with_zrtp:Requires: bzrtp-devel >= 1.0.0} |
2adf1e07 JB |
98 | Requires: ffmpeg-devel |
99 | %{?with_opengl:Requires: glew-devel >= 1.5} | |
100 | Requires: libtheora-devel >= 1.0-0.alpha7 | |
101 | Requires: libupnp-devel >= 1.6 | |
102 | Requires: libupnp-devel < 1.7 | |
103 | Requires: libv4l-devel | |
104 | Requires: libvpx-devel >= 0.9.6 | |
105 | Requires: opus-devel >= 0.9.0 | |
574e0d82 JB |
106 | Requires: ortp-devel >= 0.24.0 |
107 | Requires: polarssl-devel | |
108 | %{?with_portaudio:Requires: portaudio-devel} | |
2adf1e07 JB |
109 | %{?with_pulseaudio:Requires: pulseaudio-devel >= 0.9.21} |
110 | Requires: spandsp-devel >= 0.0.6 | |
f52b820a | 111 | Requires: speex-devel >= 1:1.2-beta3 |
fed1d2a7 | 112 | Requires: speexdsp-devel >= 1.2-beta3 |
574e0d82 | 113 | %{?with_srtp:Requires: srtp-devel} |
2adf1e07 JB |
114 | Requires: xorg-lib-libX11-devel |
115 | Requires: xorg-lib-libXv-devel | |
bbb0ffde AM |
116 | |
117 | %description devel | |
2adf1e07 JB |
118 | Header files and development documentation for mediastreamer library. |
119 | ||
120 | %description devel -l pl.UTF-8 | |
121 | Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer. | |
bbb0ffde AM |
122 | |
123 | %package static | |
124 | Summary: Static mediastreamer library | |
2adf1e07 | 125 | Summary(pl.UTF-8): Statyczna biblioteka mediastreamer |
bbb0ffde | 126 | Group: Development/Libraries |
2adf1e07 | 127 | Requires: %{name}-devel = %{version}-%{release} |
bbb0ffde AM |
128 | |
129 | %description static | |
130 | Static mediastreamer library. | |
131 | ||
2adf1e07 JB |
132 | %description static -l pl.UTF-8 |
133 | Statyczna biblioteka mediastreamer. | |
134 | ||
bbb0ffde AM |
135 | %prep |
136 | %setup -q | |
9a501a0e | 137 | %patch0 -p1 |
bbb0ffde AM |
138 | |
139 | %build | |
9a501a0e AM |
140 | %{__libtoolize} |
141 | %{__aclocal} | |
142 | %{__autoconf} | |
2adf1e07 | 143 | %{__autoheader} |
9a501a0e | 144 | %{__automake} |
61d85515 | 145 | %configure \ |
574e0d82 JB |
146 | --enable-alsa%{!?with_alsa:=no} \ |
147 | %{?with_arts:--enable-artsc} \ | |
148 | %{?with_bcg729:--enable-bcg729} \ | |
2adf1e07 JB |
149 | --enable-external-ortp \ |
150 | %{!?with_opengl:--disable-glx} \ | |
151 | %{?with_pcap:--enable-pcap} \ | |
574e0d82 JB |
152 | %{?with_portaudio:--enable-portaudio} \ |
153 | --enable-pulseaudio%{!?with_pulseaudio:=no} \ | |
2adf1e07 | 154 | --disable-silent-rules \ |
574e0d82 | 155 | --enable-static \ |
d1086c6e | 156 | %{!?with_zrtp:--disable-zrtp} \ |
574e0d82 | 157 | %{!?with_srtp:--with-srtp=none} |
61d85515 | 158 | |
bbb0ffde AM |
159 | %{__make} |
160 | ||
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %{__make} install \ | |
165 | DESTDIR=$RPM_BUILD_ROOT | |
166 | ||
86721f5d | 167 | # for external plugins |
dcc81caa | 168 | install -d $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins |
86721f5d | 169 | |
61d85515 | 170 | # Remove duplicated documentation |
2adf1e07 | 171 | %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html |
61d85515 | 172 | |
173 | %find_lang %{name} | |
174 | ||
bbb0ffde AM |
175 | %clean |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
178 | %post -p /sbin/ldconfig | |
179 | %postun -p /sbin/ldconfig | |
180 | ||
61d85515 | 181 | %files -f %{name}.lang |
bbb0ffde | 182 | %defattr(644,root,root,755) |
2adf1e07 JB |
183 | %doc AUTHORS ChangeLog NEWS README |
184 | %attr(755,root,root) %{_bindir}/mediastream | |
574e0d82 | 185 | %attr(755,root,root) %{_bindir}/msaudiocmp |
2adf1e07 | 186 | %{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback} |
45fa5f14 | 187 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.* |
574e0d82 | 188 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.4 |
45fa5f14 | 189 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.* |
574e0d82 | 190 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.4 |
dcc81caa JB |
191 | %dir %{_libdir}/mediastreamer |
192 | %dir %{_libdir}/mediastreamer/plugins | |
45fa5f14 | 193 | %{_pixmapsdir}/%{name} |
bbb0ffde AM |
194 | |
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
197 | %doc help/doc/html | |
45fa5f14 JK |
198 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so |
199 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so | |
200 | %{_libdir}/libmediastreamer_base.la | |
201 | %{_libdir}/libmediastreamer_voip.la | |
bbb0ffde AM |
202 | %{_includedir}/mediastreamer2 |
203 | %{_pkgconfigdir}/mediastreamer.pc | |
204 | ||
205 | %files static | |
206 | %defattr(644,root,root,755) | |
45fa5f14 JK |
207 | %{_libdir}/libmediastreamer_base.a |
208 | %{_libdir}/libmediastreamer_voip.a |