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