]>
Commit | Line | Data |
---|---|---|
2adf1e07 JB |
1 | # |
2 | # Conditional build: | |
574e0d82 | 3 | %bcond_without bcg729 # support for G279AnnexB in RTC3389 implementation of Comfort Noise Payload |
b49a5518 | 4 | %bcond_without srtp # SRTP (secure RTP) support |
d1086c6e | 5 | %bcond_without zrtp # support for RFC 6189: Media Path Key Agreement for Unicast Secure RTP |
b49a5518 | 6 | %bcond_without matroska # Matroska support via libebml2/libmatroska2 |
2adf1e07 JB |
7 | %bcond_without opengl # X11+OpenGL rendering support |
8 | %bcond_with pcap # audio playing from PCAP files | |
574e0d82 JB |
9 | # audio I/O |
10 | %bcond_without alsa # ALSA sound I/O support | |
11 | %bcond_with arts # aRts sound I/O support | |
12 | %bcond_with portaudio # PortAudio sound I/O support | |
13 | %bcond_without pulseaudio # PulseAudio sound I/O support | |
210be78d | 14 | %bcond_without static_libs # static library |
2adf1e07 | 15 | # |
bbb0ffde | 16 | Summary: Audio/Video real-time streaming |
2adf1e07 | 17 | Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym |
bbb0ffde | 18 | Name: mediastreamer |
c28fe572 | 19 | Version: 2.16.1 |
942bcef8 | 20 | Release: 8 |
2adf1e07 | 21 | License: GPL v2+ |
bbb0ffde | 22 | Group: Libraries |
67eb68d6 | 23 | Source0: https://linphone.org/releases/sources/mediastreamer/%{name}-%{version}.tar.gz |
c28fe572 AM |
24 | # Source0-md5: 15b8b129a922180855d04d58cdd08d43 |
25 | Patch0: build.patch | |
26 | Patch1: libsrtp2.patch | |
b49a5518 | 27 | URL: http://www.linphone.org/technical-corner/mediastreamer2/overview |
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} |
67eb68d6 | 35 | BuildRequires: bctoolbox-devel >= 0.4.0 |
c28fe572 | 36 | %{?with_zrtp:BuildRequires: bzrtp-devel >= 1.0.6} |
bbb0ffde | 37 | BuildRequires: doxygen |
2adf1e07 | 38 | # libavcodec >= 51.0.0, libswscale >= 0.7.0 |
bbb0ffde | 39 | BuildRequires: ffmpeg-devel |
c07fcbab | 40 | BuildRequires: gettext-tools |
2adf1e07 | 41 | %{?with_opengl:BuildRequires: glew-devel >= 1.5} |
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 | |
80e3cac9 | 47 | BuildRequires: libupnp1.6-devel |
bbb0ffde | 48 | BuildRequires: libv4l-devel |
2adf1e07 | 49 | BuildRequires: libvpx-devel >= 0.9.6 |
b49a5518 | 50 | %{?with_matroska:BuildRequires: matroska-foundation-devel} |
2adf1e07 | 51 | BuildRequires: opus-devel >= 0.9.0 |
c28fe572 | 52 | BuildRequires: ortp-devel >= 1.0.0 |
bbb0ffde | 53 | BuildRequires: pkgconfig |
574e0d82 | 54 | %{?with_portaudio:BuildRequires: portaudio-devel} |
2adf1e07 | 55 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.21} |
61d85515 | 56 | BuildRequires: sed >= 4.0 |
2adf1e07 | 57 | BuildRequires: spandsp-devel >= 0.0.6 |
f52b820a | 58 | BuildRequires: speex-devel >= 1:1.2-beta3 |
fed1d2a7 | 59 | BuildRequires: speexdsp-devel >= 1.2-beta3 |
c28fe572 | 60 | %{?with_srtp:BuildRequires: libsrtp2-devel} |
bbb0ffde | 61 | BuildRequires: xorg-lib-libX11-devel |
61d85515 | 62 | BuildRequires: xorg-lib-libXv-devel |
45fa5f14 | 63 | BuildRequires: xxd |
574e0d82 | 64 | %{?with_bcg729:Requires: bcg729 >= 1.0} |
67eb68d6 | 65 | Requires: bctoolbox >= 0.4.0 |
c28fe572 | 66 | %{?with_zrtp:Requires: bzrtp >= 1.0.6} |
2adf1e07 JB |
67 | %{?with_opengl:Requires: glew >= 1.5} |
68 | Requires: libtheora >= 1.0-0.alpha7 | |
80e3cac9 | 69 | Requires: libupnp1.6 |
2adf1e07 JB |
70 | Requires: libvpx >= 0.9.6 |
71 | Requires: opus >= 0.9.0 | |
c28fe572 | 72 | Requires: ortp >= 1.0.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 |
210be78d JB |
90 | Summary: Header files and development documentation for mediastreamer libraries |
91 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek 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} | |
67eb68d6 | 97 | Requires: bctoolbox-devel >= 0.4.0 |
c28fe572 | 98 | %{?with_zrtp:Requires: bzrtp-devel >= 1.0.6} |
2adf1e07 JB |
99 | Requires: ffmpeg-devel |
100 | %{?with_opengl:Requires: glew-devel >= 1.5} | |
101 | Requires: libtheora-devel >= 1.0-0.alpha7 | |
80e3cac9 | 102 | Requires: libupnp1.6-devel |
2adf1e07 JB |
103 | Requires: libv4l-devel |
104 | Requires: libvpx-devel >= 0.9.6 | |
b49a5518 | 105 | %{?with_matroska:Requires: matroska-foundation-devel} |
2adf1e07 | 106 | Requires: opus-devel >= 0.9.0 |
c28fe572 | 107 | Requires: ortp-devel >= 1.0.0 |
574e0d82 | 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 |
c28fe572 | 113 | %{?with_srtp:Requires: libsrtp2-devel} |
2adf1e07 JB |
114 | Requires: xorg-lib-libX11-devel |
115 | Requires: xorg-lib-libXv-devel | |
bbb0ffde AM |
116 | |
117 | %description devel | |
210be78d JB |
118 | Header files and development documentation for mediastreamer |
119 | libraries. | |
2adf1e07 JB |
120 | |
121 | %description devel -l pl.UTF-8 | |
210be78d | 122 | Pliki nagłówkowe i dokumentacja do bibliotek mediastreamer. |
bbb0ffde AM |
123 | |
124 | %package static | |
210be78d JB |
125 | Summary: Static mediastreamer libraries |
126 | Summary(pl.UTF-8): Statyczne biblioteki mediastreamer | |
bbb0ffde | 127 | Group: Development/Libraries |
2adf1e07 | 128 | Requires: %{name}-devel = %{version}-%{release} |
bbb0ffde AM |
129 | |
130 | %description static | |
210be78d | 131 | Static mediastreamer libraries. |
bbb0ffde | 132 | |
2adf1e07 | 133 | %description static -l pl.UTF-8 |
210be78d | 134 | Statyczne biblioteki mediastreamer. |
2adf1e07 | 135 | |
bbb0ffde AM |
136 | %prep |
137 | %setup -q | |
9a501a0e | 138 | %patch0 -p1 |
210be78d | 139 | %patch1 -p1 |
c28fe572 AM |
140 | |
141 | [ ! -e gitversion.h ] && echo '#define MS2_GIT_VERSION "%{version}"' > src/gitversion.h | |
bbb0ffde AM |
142 | |
143 | %build | |
9a501a0e | 144 | %{__libtoolize} |
c28fe572 AM |
145 | %{__gettextize} |
146 | %{__intltoolize} | |
9a501a0e AM |
147 | %{__aclocal} |
148 | %{__autoconf} | |
2adf1e07 | 149 | %{__autoheader} |
9a501a0e | 150 | %{__automake} |
61d85515 | 151 | %configure \ |
e4267767 | 152 | --disable-strict \ |
db2ea059 | 153 | --disable-tests \ |
574e0d82 JB |
154 | --enable-alsa%{!?with_alsa:=no} \ |
155 | %{?with_arts:--enable-artsc} \ | |
156 | %{?with_bcg729:--enable-bcg729} \ | |
2adf1e07 JB |
157 | --enable-external-ortp \ |
158 | %{!?with_opengl:--disable-glx} \ | |
b49a5518 | 159 | %{!?with_matroska:--disable-matroska} \ |
67eb68d6 | 160 | %{!?with_pcap:--disable-pcap} \ |
574e0d82 JB |
161 | %{?with_portaudio:--enable-portaudio} \ |
162 | --enable-pulseaudio%{!?with_pulseaudio:=no} \ | |
2adf1e07 | 163 | --disable-silent-rules \ |
210be78d | 164 | %{?with_static_libs:--enable-static} \ |
d1086c6e | 165 | %{!?with_zrtp:--disable-zrtp} \ |
574e0d82 | 166 | %{!?with_srtp:--with-srtp=none} |
61d85515 | 167 | |
bbb0ffde AM |
168 | %{__make} |
169 | ||
170 | %install | |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
173 | %{__make} install \ | |
ac6cb6d4 JK |
174 | DESTDIR=$RPM_BUILD_ROOT \ |
175 | install_sh=/usr/bin/install | |
bbb0ffde | 176 | |
86721f5d | 177 | # for external plugins |
dcc81caa | 178 | install -d $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins |
86721f5d | 179 | |
61d85515 | 180 | # Remove duplicated documentation |
2adf1e07 | 181 | %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html |
61d85515 | 182 | |
183 | %find_lang %{name} | |
184 | ||
bbb0ffde AM |
185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | %post -p /sbin/ldconfig | |
189 | %postun -p /sbin/ldconfig | |
190 | ||
61d85515 | 191 | %files -f %{name}.lang |
bbb0ffde | 192 | %defattr(644,root,root,755) |
b16f16f5 | 193 | %doc AUTHORS ChangeLog NEWS README.md |
2adf1e07 | 194 | %attr(755,root,root) %{_bindir}/mediastream |
574e0d82 | 195 | %attr(755,root,root) %{_bindir}/msaudiocmp |
2adf1e07 | 196 | %{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback} |
45fa5f14 | 197 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.* |
b16f16f5 | 198 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.10 |
45fa5f14 | 199 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.* |
b16f16f5 | 200 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.10 |
dcc81caa JB |
201 | %dir %{_libdir}/mediastreamer |
202 | %dir %{_libdir}/mediastreamer/plugins | |
67eb68d6 | 203 | %{_pixmapsdir}/nowebcamCIF.jpg |
bbb0ffde AM |
204 | |
205 | %files devel | |
206 | %defattr(644,root,root,755) | |
207 | %doc help/doc/html | |
45fa5f14 JK |
208 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so |
209 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so | |
210 | %{_libdir}/libmediastreamer_base.la | |
211 | %{_libdir}/libmediastreamer_voip.la | |
bbb0ffde AM |
212 | %{_includedir}/mediastreamer2 |
213 | %{_pkgconfigdir}/mediastreamer.pc | |
214 | ||
210be78d | 215 | %if %{with static_libs} |
bbb0ffde AM |
216 | %files static |
217 | %defattr(644,root,root,755) | |
45fa5f14 JK |
218 | %{_libdir}/libmediastreamer_base.a |
219 | %{_libdir}/libmediastreamer_voip.a | |
210be78d | 220 | %endif |