]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without opengl # X11+OpenGL rendering support | |
4 | %bcond_with pcap # audio playing from PCAP files | |
5 | %bcond_without pulseaudio # PulseAudio support | |
6 | # | |
7 | Summary: Audio/Video real-time streaming | |
8 | Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym | |
9 | Name: mediastreamer | |
10 | Version: 2.9.0 | |
11 | Release: 2 | |
12 | License: GPL v2+ | |
13 | Group: Libraries | |
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 | |
47 | BuildRequires: xxd | |
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 >= 0.0.6 | |
56 | Requires: speex >= 1.2-beta3 | |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
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. | |
63 | ||
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. | |
68 | ||
69 | %package devel | |
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 | |
90 | ||
91 | %description devel | |
92 | Header files and development documentation for mediastreamer library. | |
93 | ||
94 | %description devel -l pl.UTF-8 | |
95 | Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer. | |
96 | ||
97 | %package static | |
98 | Summary: Static mediastreamer library | |
99 | Summary(pl.UTF-8): Statyczna biblioteka mediastreamer | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | ||
103 | %description static | |
104 | Static mediastreamer library. | |
105 | ||
106 | %description static -l pl.UTF-8 | |
107 | Statyczna biblioteka mediastreamer. | |
108 | ||
109 | %prep | |
110 | %setup -q | |
111 | %patch0 -p1 | |
112 | ||
113 | %build | |
114 | %{__libtoolize} | |
115 | %{__aclocal} | |
116 | %{__autoconf} | |
117 | %{__autoheader} | |
118 | %{__automake} | |
119 | %configure \ | |
120 | --enable-external-ortp \ | |
121 | %{!?with_opengl:--disable-glx} \ | |
122 | %{?with_pcap:--enable-pcap} \ | |
123 | %{?with_pulseaudio:--enable-pulseaudio} \ | |
124 | --disable-silent-rules \ | |
125 | --enable-static | |
126 | ||
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
135 | # for external plugins | |
136 | install -d $RPM_BUILD_ROOT%{_libdir}/mediaserver/plugins | |
137 | ||
138 | # Remove duplicated documentation | |
139 | %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html | |
140 | ||
141 | %find_lang %{name} | |
142 | ||
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post -p /sbin/ldconfig | |
147 | %postun -p /sbin/ldconfig | |
148 | ||
149 | %files -f %{name}.lang | |
150 | %defattr(644,root,root,755) | |
151 | %doc AUTHORS ChangeLog NEWS README | |
152 | %attr(755,root,root) %{_bindir}/mediastream | |
153 | %{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback} | |
154 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.* | |
155 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.3 | |
156 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.* | |
157 | %attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.3 | |
158 | %dir %{_libdir}/mediaserver | |
159 | %dir %{_libdir}/mediaserver/plugins | |
160 | %{_pixmapsdir}/%{name} | |
161 | ||
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
164 | %doc help/doc/html | |
165 | %attr(755,root,root) %{_libdir}/libmediastreamer_base.so | |
166 | %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so | |
167 | %{_libdir}/libmediastreamer_base.la | |
168 | %{_libdir}/libmediastreamer_voip.la | |
169 | %{_includedir}/mediastreamer2 | |
170 | %{_pkgconfigdir}/mediastreamer.pc | |
171 | ||
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libmediastreamer_base.a | |
175 | %{_libdir}/libmediastreamer_voip.a |