]> git.pld-linux.org Git - packages/mediastreamer.git/blame - mediastreamer.spec
- build with libupnp 1.14
[packages/mediastreamer.git] / mediastreamer.spec
CommitLineData
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 16Summary: Audio/Video real-time streaming
2adf1e07 17Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym
bbb0ffde 18Name: mediastreamer
c28fe572 19Version: 2.16.1
d8296b8a 20Release: 9
2adf1e07 21License: GPL v2+
bbb0ffde 22Group: Libraries
67eb68d6 23Source0: https://linphone.org/releases/sources/mediastreamer/%{name}-%{version}.tar.gz
c28fe572
AM
24# Source0-md5: 15b8b129a922180855d04d58cdd08d43
25Patch0: build.patch
26Patch1: libsrtp2.patch
d8296b8a 27Patch2: libupnp-1.14.patch
b49a5518 28URL: http://www.linphone.org/technical-corner/mediastreamer2/overview
2adf1e07
JB
29%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
30BuildRequires: SDL-devel >= 1.2.0
574e0d82
JB
31%{?with_alsa:BuildRequires: alsa-lib-devel}
32%{?with_arts:BuildRequires: artsc-devel}
bbb0ffde 33BuildRequires: autoconf >= 2.53
aa0ebe9a 34BuildRequires: automake >= 1:1.9
574e0d82 35%{?with_bcg729:BuildRequires: bcg729-devel >= 1.0}
67eb68d6 36BuildRequires: bctoolbox-devel >= 0.4.0
c28fe572 37%{?with_zrtp:BuildRequires: bzrtp-devel >= 1.0.6}
bbb0ffde 38BuildRequires: doxygen
2adf1e07 39# libavcodec >= 51.0.0, libswscale >= 0.7.0
bbb0ffde 40BuildRequires: ffmpeg-devel
c07fcbab 41BuildRequires: gettext-tools
2adf1e07 42%{?with_opengl:BuildRequires: glew-devel >= 1.5}
2adf1e07 43BuildRequires: intltool >= 0.40
bbb0ffde 44BuildRequires: libgsm-devel
2adf1e07
JB
45%{?with_pcap:BuildRequires: libpcap-devel}
46BuildRequires: libtheora-devel >= 1.0-0.alpha7
47BuildRequires: libtool >= 2:2
d8296b8a 48BuildRequires: libupnp-devel
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
c28fe572 53BuildRequires: ortp-devel >= 1.0.0
bbb0ffde 54BuildRequires: pkgconfig
574e0d82 55%{?with_portaudio:BuildRequires: portaudio-devel}
2adf1e07 56%{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.21}
61d85515 57BuildRequires: sed >= 4.0
2adf1e07 58BuildRequires: spandsp-devel >= 0.0.6
f52b820a 59BuildRequires: speex-devel >= 1:1.2-beta3
fed1d2a7 60BuildRequires: speexdsp-devel >= 1.2-beta3
c28fe572 61%{?with_srtp:BuildRequires: libsrtp2-devel}
bbb0ffde 62BuildRequires: xorg-lib-libX11-devel
61d85515 63BuildRequires: xorg-lib-libXv-devel
45fa5f14 64BuildRequires: xxd
574e0d82 65%{?with_bcg729:Requires: bcg729 >= 1.0}
67eb68d6 66Requires: bctoolbox >= 0.4.0
c28fe572 67%{?with_zrtp:Requires: bzrtp >= 1.0.6}
2adf1e07
JB
68%{?with_opengl:Requires: glew >= 1.5}
69Requires: libtheora >= 1.0-0.alpha7
d8296b8a 70Requires: libupnp
2adf1e07
JB
71Requires: libvpx >= 0.9.6
72Requires: opus >= 0.9.0
c28fe572 73Requires: ortp >= 1.0.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
210be78d
JB
91Summary: Header files and development documentation for mediastreamer libraries
92Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek 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}
67eb68d6 98Requires: bctoolbox-devel >= 0.4.0
c28fe572 99%{?with_zrtp:Requires: bzrtp-devel >= 1.0.6}
2adf1e07
JB
100Requires: ffmpeg-devel
101%{?with_opengl:Requires: glew-devel >= 1.5}
102Requires: libtheora-devel >= 1.0-0.alpha7
d8296b8a 103Requires: libupnp-devel
2adf1e07
JB
104Requires: libv4l-devel
105Requires: libvpx-devel >= 0.9.6
b49a5518 106%{?with_matroska:Requires: matroska-foundation-devel}
2adf1e07 107Requires: opus-devel >= 0.9.0
c28fe572 108Requires: ortp-devel >= 1.0.0
574e0d82 109%{?with_portaudio:Requires: portaudio-devel}
2adf1e07
JB
110%{?with_pulseaudio:Requires: pulseaudio-devel >= 0.9.21}
111Requires: spandsp-devel >= 0.0.6
f52b820a 112Requires: speex-devel >= 1:1.2-beta3
fed1d2a7 113Requires: speexdsp-devel >= 1.2-beta3
c28fe572 114%{?with_srtp:Requires: libsrtp2-devel}
2adf1e07
JB
115Requires: xorg-lib-libX11-devel
116Requires: xorg-lib-libXv-devel
bbb0ffde
AM
117
118%description devel
210be78d
JB
119Header files and development documentation for mediastreamer
120libraries.
2adf1e07
JB
121
122%description devel -l pl.UTF-8
210be78d 123Pliki nagłówkowe i dokumentacja do bibliotek mediastreamer.
bbb0ffde
AM
124
125%package static
210be78d
JB
126Summary: Static mediastreamer libraries
127Summary(pl.UTF-8): Statyczne biblioteki mediastreamer
bbb0ffde 128Group: Development/Libraries
2adf1e07 129Requires: %{name}-devel = %{version}-%{release}
bbb0ffde
AM
130
131%description static
210be78d 132Static mediastreamer libraries.
bbb0ffde 133
2adf1e07 134%description static -l pl.UTF-8
210be78d 135Statyczne biblioteki mediastreamer.
2adf1e07 136
bbb0ffde
AM
137%prep
138%setup -q
9a501a0e 139%patch0 -p1
210be78d 140%patch1 -p1
d8296b8a 141%patch2 -p1
c28fe572
AM
142
143[ ! -e gitversion.h ] && echo '#define MS2_GIT_VERSION "%{version}"' > src/gitversion.h
bbb0ffde
AM
144
145%build
9a501a0e 146%{__libtoolize}
c28fe572
AM
147%{__gettextize}
148%{__intltoolize}
9a501a0e
AM
149%{__aclocal}
150%{__autoconf}
2adf1e07 151%{__autoheader}
9a501a0e 152%{__automake}
61d85515 153%configure \
e4267767 154 --disable-strict \
db2ea059 155 --disable-tests \
574e0d82
JB
156 --enable-alsa%{!?with_alsa:=no} \
157 %{?with_arts:--enable-artsc} \
158 %{?with_bcg729:--enable-bcg729} \
2adf1e07
JB
159 --enable-external-ortp \
160 %{!?with_opengl:--disable-glx} \
b49a5518 161 %{!?with_matroska:--disable-matroska} \
67eb68d6 162 %{!?with_pcap:--disable-pcap} \
574e0d82
JB
163 %{?with_portaudio:--enable-portaudio} \
164 --enable-pulseaudio%{!?with_pulseaudio:=no} \
2adf1e07 165 --disable-silent-rules \
210be78d 166 %{?with_static_libs:--enable-static} \
d1086c6e 167 %{!?with_zrtp:--disable-zrtp} \
574e0d82 168 %{!?with_srtp:--with-srtp=none}
61d85515 169
bbb0ffde
AM
170%{__make}
171
172%install
173rm -rf $RPM_BUILD_ROOT
174
175%{__make} install \
ac6cb6d4
JK
176 DESTDIR=$RPM_BUILD_ROOT \
177 install_sh=/usr/bin/install
bbb0ffde 178
86721f5d 179# for external plugins
dcc81caa 180install -d $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins
86721f5d 181
61d85515 182# Remove duplicated documentation
2adf1e07 183%{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html
61d85515 184
185%find_lang %{name}
186
bbb0ffde
AM
187%clean
188rm -rf $RPM_BUILD_ROOT
189
190%post -p /sbin/ldconfig
191%postun -p /sbin/ldconfig
192
61d85515 193%files -f %{name}.lang
bbb0ffde 194%defattr(644,root,root,755)
b16f16f5 195%doc AUTHORS ChangeLog NEWS README.md
2adf1e07 196%attr(755,root,root) %{_bindir}/mediastream
574e0d82 197%attr(755,root,root) %{_bindir}/msaudiocmp
2adf1e07 198%{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback}
45fa5f14 199%attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.*
b16f16f5 200%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.10
45fa5f14 201%attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.*
b16f16f5 202%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.10
dcc81caa
JB
203%dir %{_libdir}/mediastreamer
204%dir %{_libdir}/mediastreamer/plugins
67eb68d6 205%{_pixmapsdir}/nowebcamCIF.jpg
bbb0ffde
AM
206
207%files devel
208%defattr(644,root,root,755)
209%doc help/doc/html
45fa5f14
JK
210%attr(755,root,root) %{_libdir}/libmediastreamer_base.so
211%attr(755,root,root) %{_libdir}/libmediastreamer_voip.so
212%{_libdir}/libmediastreamer_base.la
213%{_libdir}/libmediastreamer_voip.la
bbb0ffde
AM
214%{_includedir}/mediastreamer2
215%{_pkgconfigdir}/mediastreamer.pc
216
210be78d 217%if %{with static_libs}
bbb0ffde
AM
218%files static
219%defattr(644,root,root,755)
45fa5f14
JK
220%{_libdir}/libmediastreamer_base.a
221%{_libdir}/libmediastreamer_voip.a
210be78d 222%endif
This page took 0.060473 seconds and 4 git commands to generate.