2 # How to deal with ffmpeg/opencv/chromaprint checken-egg problem:
3 # 1. make-request -r --with bootstrap ffmpeg.spec
4 # 2 bump release of opencv.spec and chromaprint.spec
5 # 3. make-request -r opencv.spec chromaprint.spec
6 # 4. bump release of ffmpeg.spec
7 # 5. make-request -r ffmpeg.spec
10 %bcond_with bootstrap # disable features to able to build without installed ffmpeg
11 %bcond_with nonfree # non free options of package (currently: faac, fdk_aac, nvenc)
12 %bcond_with fdk_aac # AAC de/encoding via libfdk_aac (requires nonfree)
13 %bcond_with faac # faac (requires nonfree)
14 %bcond_without bs2b # BS2B audio filter support
15 %bcond_without caca # textual display using libcaca
16 %bcond_without chromaprint # audio fingerprinting with chromaprint
17 %bcond_without decklink # Blackmagic DeskLink output support
18 %bcond_without flite # flite voice synthesis support
19 %bcond_without frei0r # frei0r video filtering
20 %bcond_without fribidi # fribidi support
21 %bcond_without gme # Game Music Emu support
22 %bcond_without ilbc # iLBC de/encoding via WebRTC libilbc
23 %bcond_without kvazaar # Kvazaar HEVC encoder support
24 %bcond_without ladspa # LADSPA audio filtering
25 %bcond_with mfx # MFX hardware acceleration support
26 %bcond_with nvenc # NVIDIA NVENC support (requires nonfree)
27 %bcond_without openal # OpenAL 1.1 capture support
28 %bcond_without opencl # OpenCL 1.2 code
29 %bcond_without opencv # OpenCV video filtering
30 %bcond_without opengl # OpenGL rendering support
31 %bcond_with openh264 # OpenH264 H.264 encoder
32 %bcond_without pulseaudio # PulseAudio input support
33 %bcond_without rubberband # rubberband filter
34 %bcond_without shine # shine fixed-point MP3 encoder
35 %bcond_without snappy # Snappy compression support (needed for hap encoding)
36 %bcond_without ssh # SFTP protocol support via libssh
37 %bcond_with smb # SMB support via libsmbclient
38 %bcond_without soxr # SoX Resampler support
39 %bcond_with tesseract # OCR filter based on Tesseract
40 %bcond_without x264 # H.264 x264 encoder
41 %bcond_without x265 # H.265/HEVC x265 encoder
42 %bcond_without va # VAAPI (Video Acceleration API)
43 %bcond_without vidstab # vid.stab video stabilization support
44 %bcond_without vpx # VP8, a high-quality video codec
45 %bcond_without wavpack # wavpack encoding support
46 %bcond_without webp # WebP encoding support
47 %bcond_without zimg # zscale filter based on z.lib
48 %bcond_without zmq # 0MQ message passing
49 %bcond_without zvbi # teletext via libzvbi
50 %bcond_without doc # don't build docs
51 %bcond_with tests # "make check" (some tests fail as of 2.5)
55 %undefine with_chromaprint
58 %ifnarch %{ix86} %{x8664} arm
64 Summary: FFmpeg - a very fast video and audio converter
65 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
69 # LGPL or GPL, chosen at configure time (GPL version is more featured)
70 # (postprocessing, some filters, x264, x265, xavs, xvid, x11grab)
71 # using v3 allows Apache-licensed libs (opencore-amr, libvo-*enc)
72 License: GPL v3+ with LGPL v3+ parts
73 Group: Applications/Multimedia
74 Source0: http://ffmpeg.org/releases/%{name}-%{version}.tar.xz
75 # Source0-md5: 24ef0c0d541c857c8bc39215619b126f
76 Source1: ffserver.init
77 Source2: ffserver.sysconfig
78 Source3: ffserver.conf
79 Patch0: %{name}-openjpeg-build.patch
80 URL: http://www.ffmpeg.org/
81 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK}
82 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
83 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
84 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
85 BuildRequires: SDL-devel >= 1.2.1
86 BuildRequires: alsa-lib-devel
87 BuildRequires: bzip2-devel
88 BuildRequires: celt-devel >= 0.11.0
89 %{?with_faac:BuildRequires: faac-devel}
90 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
91 %{?with_flite:BuildRequires: flite-devel >= 1.4}
92 BuildRequires: fontconfig-devel
93 BuildRequires: freetype-devel
94 %{?with_frei0r:BuildRequires: frei0r-devel}
95 %{?with_fribidi:BuildRequires: fribidi-devel}
96 %{?with_gme:BuildRequires: game-music-emu-devel}
98 # require version with altivec support fixed
99 BuildRequires: gcc >= 5:3.3.2-3
101 BuildRequires: gmp-devel
102 BuildRequires: gnutls-devel
103 BuildRequires: jack-audio-connection-kit-devel
104 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 0.8.1}
105 %{?with_ladspa:BuildRequires: ladspa-devel}
106 BuildRequires: lame-libs-devel >= 3.98.3
107 BuildRequires: libass-devel
108 BuildRequires: libavc1394-devel
109 %{?with_bs2b:BuildRequires: libbs2b-devel}
110 BuildRequires: libbluray-devel
111 %{?with_caca:BuildRequires: libcaca-devel}
112 BuildRequires: libcdio-paranoia-devel >= 0.90-2
113 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
114 BuildRequires: libdc1394-devel >= 2
115 BuildRequires: libgsm-devel
116 BuildRequires: libiec61883-devel
117 BuildRequires: libmodplug-devel
118 BuildRequires: libnut-devel
119 BuildRequires: libraw1394-devel >= 2
120 BuildRequires: librtmp-devel
121 %{?with_ssh:BuildRequires: libssh-devel}
122 %{?with_smb:BuildRequires: libsmbclient-devel}
123 BuildRequires: libtheora-devel >= 1.0-0.beta3
124 BuildRequires: libtool >= 2:1.4d-3
125 BuildRequires: libv4l-devel
126 %{?with_va:BuildRequires: libva-devel >= 1.0.3}
127 BuildRequires: libvdpau-devel >= 0.2
128 BuildRequires: libvorbis-devel
129 %{?with_vpx:BuildRequires: libvpx-devel >= 1.3.0}
130 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
132 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20111212_2245}
134 %{?with_x265:BuildRequires: libx265-devel >= 1.3-0.20150610.1}
135 # libxcb xcb-shm xcb-xfixes xcb-shape
136 BuildRequires: libxcb-devel >= 1.4
137 %{?with_mfx:BuildRequires: mfx_dispatch-devel}
144 #%{?with_nvenc:BuildRequires: NVIDIA-NVENC-API}
145 BuildRequires: opencore-amr-devel
146 %{?with_opencv:BuildRequires: opencv-devel}
147 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
148 BuildRequires: openjpeg-devel >= 1.5
149 BuildRequires: opus-devel
150 BuildRequires: perl-Encode
151 BuildRequires: perl-tools-pod
152 BuildRequires: pkgconfig
153 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
154 BuildRequires: rpmbuild(macros) >= 1.470
155 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
156 BuildRequires: schroedinger-devel
157 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
158 %{?with_snappy:BuildRequires: snappy-devel}
159 %{?with_soxr:BuildRequires: soxr-devel}
160 BuildRequires: speex-devel >= 1:1.2-rc1
161 %{?with_tesseract:BuildRequires: tesseract-devel}
162 %{?with_doc:BuildRequires: tetex}
163 %{?with_doc:BuildRequires: texi2html}
164 %{?with_doc:BuildRequires: texinfo}
165 BuildRequires: twolame-devel
166 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
167 BuildRequires: vo-amrwbenc-devel
168 %{?with_wavpack:BuildRequires: wavpack-devel}
169 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
170 BuildRequires: xavs-devel
171 BuildRequires: xorg-lib-libX11-devel
172 BuildRequires: xorg-lib-libXext-devel
173 BuildRequires: xorg-lib-libXfixes-devel
174 BuildRequires: xvid-devel >= 1:1.1.0
176 %{?with_zmq:BuildRequires: zeromq-devel}
177 %{?with_zimg:BuildRequires: zimg-devel}
178 BuildRequires: zlib-devel
179 %{?with_zvbi:BuildRequires: zvbi-devel}
180 %{?with_autoreqdep:BuildConflicts: libpostproc}
181 # overflows maximum hash table size
182 BuildConflicts: pdksh < 5.2.14-57
183 Requires: %{name}-libs = %{version}-%{release}
184 %{?with_ilbc:Requires: webrtc-libilbc}
185 Requires: xvid >= 1:1.1.0
186 Obsoletes: libpostproc
187 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
189 %define _noautoreqdep libGL.so.1 libGLU.so.1
191 %define specflags -fno-strict-aliasing
193 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
194 %define specflags_ia32 -fomit-frame-pointer
195 # -mmmx is needed to enable <mmintrin.h> code.
196 %define specflags_i586 -mmmx
197 %define specflags_i686 -mmmx
198 %define specflags_ppc -fPIC
201 FFmpeg is a complete solution to record, convert and stream audio and
202 video. It is a command line tool to convert one video file format to
203 another. It also supports grabbing and encoding in real time from a TV
206 %description -l pl.UTF-8
207 FFmpeg to kompletne rozwiązanie nagrywania, konwersji i transmisji
208 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
209 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
210 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
214 Summary: ffmpeg libraries
215 Summary(pl.UTF-8): Biblioteki ffmpeg
217 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
218 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
219 Requires: gnutls-libs >= 3.0.20
221 %{?with_vpx:Requires: libvpx >= 1.3.0}
222 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
225 This package contains the ffmpeg shared libraries:
226 - the codec library (libavcodec). It supports most existing encoding
227 formats (MPEG, DivX, MPEG4, AC3, DV...),
228 - demuxer library (libavformat). It supports most existing file
229 formats (AVI, MPEG, OGG, Matroska, ASF...),
230 - video postprocessing library (libpostproc).
232 %description libs -l pl.UTF-8
233 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
234 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
235 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
236 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
237 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
238 - bibliotekę postprocessingu (libpostproc).
241 Summary: ffmpeg header files
242 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
243 Group: Development/Libraries
244 Requires: %{name}-libs = %{version}-%{release}
245 # Libs.private from *.pc (unreasonably they are all the same)
246 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
247 %{?with_opengl:Requires: OpenGL-devel}
248 Requires: SDL-devel >= 1.2.1
249 Requires: alsa-lib-devel
250 Requires: bzip2-devel
251 Requires: celt-devel >= 0.11.0
252 %{?with_faac:Requires: faac-devel}
253 %{?with_fdk_aac:Requires: fdk-aac-devel}
254 %{?with_flite:Requires: flite-devel >= 1.4}
255 Requires: fontconfig-devel
256 Requires: freetype-devel
257 %{?with_fribidi:Requires: fribidi-devel}
258 %{?with_gme:Requires: game-music-emu-devel}
259 Requires: jack-audio-connection-kit-devel
260 %{?with_kvazaar:Requires: kvazaar-devel >= 0.7}
261 Requires: lame-libs-devel >= 3.98.3
262 Requires: libass-devel
263 Requires: libavc1394-devel
264 Requires: libbluray-devel
265 %{?with_bs2b:Requires: libbs2b-devel}
266 %{?with_caca:Requires: libcaca-devel}
267 Requires: libcdio-paranoia-devel >= 0.90-2
268 %{?with_chromaprint:Requires: libchromaprint-devel}
269 Requires: libdc1394-devel >= 2
270 Requires: libgsm-devel
271 Requires: libiec61883-devel
272 Requires: libmodplug-devel
273 Requires: libnut-devel
274 Requires: libraw1394-devel >= 2
275 Requires: librtmp-devel
276 %{?with_smb:Requires: libsmbclient-devel}
277 Requires: libtheora-devel >= 1.0-0.beta3
278 %{?with_va:Requires: libva-devel >= 1.0.3}
279 Requires: libvorbis-devel
280 %{?with_vpx:Requires: libvpx-devel >= 1.3.0}
281 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
282 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20110625_2245}
283 %{?with_x265:Requires: libx265-devel >= 1.3-0.20150610.1}
284 %{?with_mfx:Requires: mfx_dispatch-devel}
285 Requires: opencore-amr-devel
286 %{?with_opencv:Requires: opencv-devel}
287 %{?with_openh264:Requires: openh264-devel >= 1.3}
288 Requires: openjpeg-devel >= 1.5
289 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
290 Requires: schroedinger-devel
291 %{?with_shine:Requires: shine-devel >= 3.0.0}
292 %{?with_snappy:Requires: snappy-devel}
293 %{?with_soxr:Requires: soxr-devel}
294 Requires: speex-devel >= 1:1.2-rc1
295 %{?with_tesseract:Requires: tesseract-devel}
296 Requires: twolame-devel
297 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
298 Requires: vo-amrwbenc-devel
299 %{?with_wavpack:Requires: wavpack-devel}
300 %{?with_ilbc:Requires: webrtc-libilbc-devel}
302 Requires: xorg-lib-libXext-devel
303 Requires: xorg-lib-libXfixes-devel
304 Requires: xvid-devel >= 1:1.1.0
305 %{?with_zmq:Requires: zeromq-devel}
306 %{?with_zimg:Requires: zimg-devel}
308 Obsoletes: libpostproc-devel
313 %description devel -l pl.UTF-8
314 Pliki nagłówkowe ffmpeg.
317 Summary: ffmpeg static libraries
318 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
319 Group: Development/Libraries
320 Requires: %{name}-devel = %{version}-%{release}
323 ffmpeg static libraries (libavcodec and libavformat).
325 %description static -l pl.UTF-8
326 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
329 Summary: FFplay - SDL-based media player
330 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
331 Group: Applications/Multimedia
332 Requires: %{name}-libs = %{version}-%{release}
335 FFplay is a very simple and portable media player using the FFmpeg
336 libraries and the SDL library. It is mostly used as a test bench for
337 the various APIs of FFmpeg.
339 %description ffplay -l pl.UTF-8
340 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
341 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
342 testowania różnych API FFmpeg.
345 Summary: FFserver video server
346 Summary(pl.UTF-8): FFserver - serwer strumieni obrazu
348 Requires(post,preun): /sbin/chkconfig
349 Requires: %{name}-libs = %{version}-%{release}
350 Requires: rc-scripts >= 0.4.0.10
352 %description ffserver
353 FFserver is a streaming server for both audio and video. It supports
354 several live feeds, streaming from files and time shifting on live
355 feeds (you can seek to positions in the past on each live feed,
356 provided you specify a big enough feed storage in ffserver.conf).
358 %description ffserver -l pl.UTF-8
359 FFserver to serwer strumieni dla dźwięku i obrazu. Obsługuje kilka
360 źródeł na żywo, przekazywanie strumieni z plików i przesuwanie w
361 czasie dla źródeł na żywo (można przeskakiwać na położenia w
362 przeszłości dla każdego źródła na żywo, pod warunkiem odpowiednio
363 dużej przestrzeni na dane skonfigurowanej w ffserver.conf).
366 Summary: FFmpeg documentation in HTML format
367 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
369 %if "%{_rpmversion}" >= "5"
374 FFmpeg documentation in HTML format.
376 %description doc -l pl.UTF-8
377 Dokumentacja pakietu FFmpeg w formacie HTML.
383 # package the grep result for mplayer, the result formatted as ./mplayer/configure
384 cat <<EOF > ffmpeg-avconfig
386 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
387 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
388 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
389 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
390 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
391 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
392 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
393 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
394 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
396 cat <<'EOF' >> ffmpeg-avconfig
400 echo $libavdecoders_all
403 echo $libavencoders_all
406 echo $libavparsers_all
412 echo $libavdemuxers_all
415 echo $libavmuxers_all
418 echo $libavprotocols_all
421 echo $libavhwaccels_all
424 echo $libavfilters_all
448 # - it's not autoconf configure
449 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
451 --arch=%{_target_base_arch} \
452 --prefix=%{_prefix} \
453 --libdir=%{_libdir} \
454 --shlibdir=%{_libdir} \
455 --mandir=%{_mandir} \
456 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink}" \
457 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
460 --disable-optimizations \
461 --disable-stripping \
462 %{!?with_doc:--disable-doc} \
464 --enable-avresample \
465 %{?with_chromaprint:--enable-chromaprint} \
466 %{?with_decklink:--enable-decklink} \
470 --enable-fontconfig \
471 %{?with_frei0r:--enable-frei0r} \
472 %{?with_ladspa:--enable-ladspa} \
475 %{?with_bs2b:--enable-libbs2b} \
476 %{?with_caca:--enable-libcaca} \
480 %{?with_flite:--enable-libflite} \
481 --enable-libfreetype \
482 %{?with_fribidi:--enable-libfribidi} \
483 %{?with_gme:--enable-libgme} \
485 --enable-libiec61883 \
486 %{?with_ilbc:--enable-libilbc} \
487 %{?with_kvazaar:--enable-libkvazaar} \
488 %{?with_mfx:--enable-libmfx} \
489 --enable-libmodplug \
490 --enable-libmp3lame \
492 --enable-libopencore-amrnb \
493 --enable-libopencore-amrwb \
494 %{?with_opencv:--enable-libopencv} \
495 %{?with_openh264:--enable-libopenh264} \
496 --enable-libopenjpeg \
498 %{?with_pulseaudio:--enable-libpulse} \
500 %{?with_rubberband:--enable-librubberband} \
501 --enable-libschroedinger \
502 %{?with_shine:--enable-libshine} \
503 %{?with_smb:--enable-libsmbclient} \
504 %{?with_snappy:--enable-libsnappy} \
505 %{?with_soxr:--enable-libsoxr} \
507 %{?with_ssh:--enable-libssh} \
508 %{?with_tesseract:--enable-libtesseract} \
510 --enable-libtwolame \
512 %{?with_vidstab:--enable-libvidstab} \
513 --enable-libvo-amrwbenc \
515 %{?with_vpx:--enable-libvpx} \
516 %{?with_wavpack:--enable-libwavpack} \
517 %{?with_webp:--enable-libwebp} \
518 %{?with_x264:--enable-libx264} \
519 %{?with_x265:--enable-libx265} \
522 %{?with_zimg:--enable-libzimg} \
523 %{?with_zmq:--enable-libzmq} \
524 %{?with_zvbi:--enable-libzvbi} \
525 %{?with_openal:--enable-openal} \
526 %{?with_opencl:--enable-opencl} \
527 %{?with_opengl:--enable-opengl} \
532 %{!?with_va:--disable-vaapi} \
534 %ifnarch %{ix86} %{x8664}
545 %{?with_faac:--enable-libfaac} \
546 %{?with_fdk_aac:--enable-libfdk-aac} \
547 %{?with_nvenc:--enable-nvenc} \
549 --enable-runtime-cpudetect
554 # CC_O to add -c to commandline. makefile should be patched
555 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
557 %{?with_tests:%{__make} check V=1}
560 rm -rf $RPM_BUILD_ROOT
561 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
562 $RPM_BUILD_ROOT%{_includedir}/ffmpeg \
563 $RPM_BUILD_ROOT/var/{cache,log}/ffserver
565 %{__make} install install-headers \
566 DESTDIR=$RPM_BUILD_ROOT \
569 # install nonstandard, non-public headers manually
570 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
571 for a in libavutil/*/{asm,bswap}.h; do
572 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
574 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
575 # for lim-omx ffmpeg components
576 cp -a libavcodec/audioconvert.h $RPM_BUILD_ROOT%{_includedir}/libavcodec
578 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ffserver
579 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ffserver
580 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ffserver.conf
581 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
582 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
584 # install as ffmpeg-avconfig to avoid with possible programs looking for
585 # ffmpeg-config and expecting --libs output from it which is not implemented
586 # simple to do (by querying pkgconfig), but why?
587 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
589 # packaged as %doc in -doc
591 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
594 install -d $RPM_BUILD_ROOT%{_examplesdir}
595 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
598 rm -rf $RPM_BUILD_ROOT
600 %post libs -p /sbin/ldconfig
601 %postun libs -p /sbin/ldconfig
604 %groupadd -g 167 ffserver
605 %useradd -g ffserver -u 167 ffserver
608 /sbin/chkconfig --add ffserver
609 %service ffserver restart
612 if [ "$1" = 0 ]; then
613 %service ffserver stop
614 /sbin/chkconfig --del ffserver
618 if [ "$1" = 0 ]; then
620 %groupremove ffserver
624 %defattr(644,root,root,755)
625 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
626 %attr(755,root,root) %{_bindir}/ffmpeg
627 %attr(755,root,root) %{_bindir}/ffprobe
628 %attr(755,root,root) %{_bindir}/qt-faststart
629 %dir %{_datadir}/ffmpeg
630 %{_datadir}/ffmpeg/*.ffpreset
631 %{_datadir}/ffmpeg/ffprobe.xsd
633 %{_mandir}/man1/ffmpeg.1*
634 %{_mandir}/man1/ffmpeg-all.1*
635 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
636 %{_mandir}/man1/ffmpeg-codecs.1*
637 %{_mandir}/man1/ffmpeg-devices.1*
638 %{_mandir}/man1/ffmpeg-filters.1*
639 %{_mandir}/man1/ffmpeg-formats.1*
640 %{_mandir}/man1/ffmpeg-protocols.1*
641 %{_mandir}/man1/ffmpeg-resampler.1*
642 %{_mandir}/man1/ffmpeg-scaler.1*
643 %{_mandir}/man1/ffmpeg-utils.1*
644 %{_mandir}/man1/ffprobe.1*
645 %{_mandir}/man1/ffprobe-all.1*
649 %defattr(644,root,root,755)
650 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
651 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.57
652 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
653 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.57
654 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
655 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.6
656 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
657 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.57
658 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
659 %attr(755,root,root) %ghost %{_libdir}/libavresample.so.3
660 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
661 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.55
662 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
663 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.54
664 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
665 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.2
666 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
667 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.4
670 %defattr(644,root,root,755)
671 %doc doc/optimization.txt
672 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
673 %attr(755,root,root) %{_libdir}/libavcodec.so
674 %attr(755,root,root) %{_libdir}/libavdevice.so
675 %attr(755,root,root) %{_libdir}/libavfilter.so
676 %attr(755,root,root) %{_libdir}/libavformat.so
677 %attr(755,root,root) %{_libdir}/libavresample.so
678 %attr(755,root,root) %{_libdir}/libavutil.so
679 %attr(755,root,root) %{_libdir}/libpostproc.so
680 %attr(755,root,root) %{_libdir}/libswresample.so
681 %attr(755,root,root) %{_libdir}/libswscale.so
682 %{_includedir}/ffmpeg
683 %{_includedir}/libavcodec
684 %{_includedir}/libavdevice
685 %{_includedir}/libavfilter
686 %{_includedir}/libavformat
687 %{_includedir}/libavresample
688 %{_includedir}/libavutil
689 %{_includedir}/libpostproc
690 %{_includedir}/libswresample
691 %{_includedir}/libswscale
692 %{_pkgconfigdir}/libavcodec.pc
693 %{_pkgconfigdir}/libavdevice.pc
694 %{_pkgconfigdir}/libavfilter.pc
695 %{_pkgconfigdir}/libavformat.pc
696 %{_pkgconfigdir}/libavresample.pc
697 %{_pkgconfigdir}/libavutil.pc
698 %{_pkgconfigdir}/libpostproc.pc
699 %{_pkgconfigdir}/libswresample.pc
700 %{_pkgconfigdir}/libswscale.pc
702 %{_mandir}/man3/libavcodec.3*
703 %{_mandir}/man3/libavdevice.3*
704 %{_mandir}/man3/libavfilter.3*
705 %{_mandir}/man3/libavformat.3*
706 %{_mandir}/man3/libavutil.3*
707 %{_mandir}/man3/libswresample.3*
708 %{_mandir}/man3/libswscale.3*
710 %{_examplesdir}/%{name}-%{version}
713 %defattr(644,root,root,755)
714 %{_libdir}/libavcodec.a
715 %{_libdir}/libavdevice.a
716 %{_libdir}/libavfilter.a
717 %{_libdir}/libavformat.a
718 %{_libdir}/libavresample.a
719 %{_libdir}/libavutil.a
720 %{_libdir}/libpostproc.a
721 %{_libdir}/libswresample.a
722 %{_libdir}/libswscale.a
725 %defattr(644,root,root,755)
726 %attr(755,root,root) %{_bindir}/ffplay
728 %{_mandir}/man1/ffplay.1*
729 %{_mandir}/man1/ffplay-all.1*
733 %defattr(644,root,root,755)
734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf
735 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ffserver
736 %attr(755,root,root) %{_sbindir}/ffserver
737 %attr(754,root,root) /etc/rc.d/init.d/ffserver
739 %{_mandir}/man1/ffserver.1*
740 %{_mandir}/man1/ffserver-all.1*
742 %dir %attr(770,root,ffserver) /var/cache/ffserver
743 %dir %attr(770,root,ffserver) /var/log/ffserver
747 %defattr(644,root,root,755)