]> git.pld-linux.org Git - packages/ffmpeg.git/blob - ffmpeg.spec
295e62e06ceaee621fb465e56b8aa2792aec301f
[packages/ffmpeg.git] / ffmpeg.spec
1 # TODO:
2 # - libopenvino
3 # - libtensorflow [-ltensorflow tensorflow/c/c_api.h]
4 # - AMF >= 1.4.9.0 (available at https://github.com/GPUOpen-LibrariesAndSDKs/AMF, where is original source?)
5 #
6 # How to deal with ffmpeg/opencv/chromaprint checken-egg problem:
7 #       1. make-request -r --with bootstrap ffmpeg.spec
8 #       2  bump release of opencv.spec and chromaprint.spec
9 #       3. make-request -r opencv.spec chromaprint.spec
10 #       4. bump release of ffmpeg.spec
11 #       5. make-request -r ffmpeg.spec
12 #
13 # Conditional build:
14 %bcond_with     bootstrap       # disable features to able to build without installed ffmpeg
15 %bcond_with     nonfree         # unblock non free options of package (currently: cuda_nvcc, decklib, fdk_aac, npp, openssl, libressl/libtls)
16 %bcond_without  amr             # AMR-NB/WB de/encoding via libopencore-amrnb/wb
17 %bcond_without  aom             # AV1 viden de/encoding via libaom
18 %bcond_without  aribb24         # ARIB text and caption decoding via libaribb24
19 %bcond_without  avs             # AVS encoding via xavs
20 %bcond_without  avs2            # AVS2 de/encoding via libdavs2/libxavs2
21 %bcond_without  bs2b            # BS2B audio filter support
22 %bcond_without  caca            # textual display using libcaca
23 %bcond_without  codec2          # codec2 support using libcodec2
24 %bcond_without  chromaprint     # audio fingerprinting with chromaprint
25 %bcond_with     cudasdk         # NVIDIA CUDA code using nvcc from CUDA SDK [BR: cuda.h, non-free]
26 %bcond_with     dav1d           # AV1 decoding via libdav1d
27 %bcond_without  dc1394          # IIDC-1394 grabbing using libdc1394
28 %bcond_with     decklink        # Blackmagic DeckLink I/O support (requires nonfree)
29 %bcond_with     fdk_aac         # AAC de/encoding via libfdk_aac (requires nonfree)
30 %bcond_without  ffnvcodec       # NVIDIA codecs support using ffnvcodec headers (covered: cuda cuvid nvdec nvenc)
31 %bcond_without  flite           # flite voice synthesis support
32 %bcond_without  frei0r          # frei0r video filtering
33 %bcond_without  fribidi         # fribidi support
34 %bcond_without  glslang         # GLSL->SPIRV compilation via libglslang
35 %bcond_without  gme             # Game Music Emu support
36 %bcond_without  gsm             # GSM de/encoding via libgsm
37 %bcond_without  iec61883        # ec61883 via libiec61883
38 %bcond_without  ilbc            # iLBC de/encoding via WebRTC libilbc
39 %bcond_without  kvazaar         # Kvazaar HEVC encoder support
40 %bcond_without  ladspa          # LADSPA audio filtering
41 %bcond_with     lensfun         # lensfun lens correction
42 %bcond_with     libdrm          # Linux Direct Rendering Manager code
43 %bcond_with     libklvanc       # Kernel Labs VANC processing (in decklink driver)
44 %bcond_without  libmysofa       # sofalizer filter
45 %bcond_without  librist         # RIST support via librist
46 %bcond_with     librsvg         # SVG rasterization via librsvg
47 %bcond_with     libxml2         # XML parsing using libxml2
48 %bcond_without  lv2             # LV2 audio filtering
49 %bcond_with     mfx             # MFX hardware acceleration support
50 %bcond_without  modplug         # ModPlug via libmodplug
51 %bcond_with     npp             # NVIDIA Performance Primitives-based code (requires nonfree) [BR: libnppc+libnppi, npp.h]
52 %bcond_without  omx             # OpenMAX IL support
53 %bcond_without  openal          # OpenAL 1.1 capture support
54 %bcond_without  opencl          # OpenCL 1.2 code
55 %bcond_without  opencv          # OpenCV video filtering
56 %bcond_without  opengl          # OpenGL rendering support
57 %bcond_with     openh264        # OpenH264 H.264 encoder
58 %bcond_without  openmpt         # OpenMPT module decoder
59 %bcond_with     pocketsphinx    # asr filter using PocketSphinx
60 %bcond_without  pulseaudio      # PulseAudio input support
61 %bcond_without  rabbitmq        # RabbitMQ support
62 %bcond_with     rav1e           # AV1 encoding using rav1e
63 %bcond_with     rkmpp           # Rockchip Media Process Platform code [implies libdrm]
64 %bcond_without  rubberband      # rubberband filter
65 %bcond_without  shine           # shine fixed-point MP3 encoder
66 %bcond_with     smb             # SMB support via libsmbclient
67 %bcond_without  snappy          # Snappy compression support (needed for hap encoding)
68 %bcond_without  soxr            # SoX Resampler support
69 %bcond_without  srt             # Haivision SRT protocol support
70 %bcond_without  ssh             # SFTP protocol support via libssh
71 %bcond_with     svtav1          # AV1 encoding via SVT-AV1
72 %bcond_with     tesseract       # OCR filter based on Tesseract
73 %bcond_without  theora          # Theora encoding via libtheora
74 %bcond_with     uavs3d          # AVS3 decoding via libuavs3d (TODO: enable when 1.1.41 released)
75 %bcond_with     v4l2_drmprime   # Zero-copy v4l2 decoding
76 %bcond_with     v4l2_request    # V4L2 request API for stateless hw decoding
77 %bcond_without  va              # VAAPI (Video Acceleration API)
78 %bcond_without  vapoursynth     # VapourSynth demuxer
79 %bcond_without  vidstab         # vid.stab video stabilization support
80 %bcond_without  vmaf            # VMAF filter support
81 %bcond_without  voamrwbenc      # MR-WB encoding via libvo-amrwbenc
82 %bcond_without  vpx             # VP8, a high-quality video codec
83 %bcond_without  vulkan          # Vulkan code
84 %bcond_without  webp            # WebP encoding support
85 %bcond_without  x264            # H.264 x264 encoder
86 %bcond_without  x265            # H.265/HEVC x265 encoder
87 %bcond_without  xvid            # vid encoding via xvidcore
88 %bcond_without  zimg            # zscale filter based on z.lib
89 %bcond_without  zmq             # 0MQ message passing
90 %bcond_without  zvbi            # teletext via libzvbi
91 %bcond_without  doc             # don't build docs
92 %bcond_with     tests           # "make check" (some tests fail as of 2.5)
93
94 %if %{with bootstrap}
95 %undefine       with_opencv
96 %undefine       with_chromaprint
97 %endif
98 %if %{with rkmpp} || %{with v4l2_request} || %{with v4l2_drmprime}
99 %define         with_libdrm     1
100 %endif
101
102 %ifnarch %{ix86} %{x8664}
103 %undefine       with_ffnvcodec
104 %endif
105 %ifnarch %{ix86} %{x8664} aarch64
106 %undefine       with_rav1e
107 %endif
108 %ifnarch %{ix86} %{x8664} %{arm}
109 %undefine       with_x265
110 %endif
111 %ifarch i386 i486
112 %undefine       with_x265
113 %endif
114 %ifarch i686 pentium4 athlon %{x8664} x32
115 %define         with_crystalhd  1
116 %endif
117 Summary:        FFmpeg - a very fast video and audio converter
118 Summary(pl.UTF-8):      FFmpeg - szybki konwerter audio/wideo
119 Name:           ffmpeg
120 Version:        4.4.2
121 Release:        2
122 # LGPL or GPL, chosen at configure time (GPL version is more featured)
123 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
124 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
125 # GPLv3: smbclient
126 License:        GPL v3+ with LGPL v3+ parts
127 Group:          Applications/Multimedia
128 Source0:        https://ffmpeg.org/releases/%{name}-%{version}.tar.xz
129 # Source0-md5:  0dfb3330df82598750e9eb3e782255bd
130 Patch0:         %{name}-omx-libnames.patch
131 Patch1:         %{name}-atadenoise.patch
132 Patch2:         opencv4.patch
133 Patch3:         v4l2-request-hwdec.patch
134 Patch4:         %{name}-glslang.patch
135 Patch5:         v4l2-drmprime.patch
136 URL:            http://www.ffmpeg.org/
137 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.10}
138 %{?with_openal:BuildRequires:   OpenAL-devel >= 1.1}
139 %{?with_opencl:BuildRequires:   OpenCL-devel >= 1.2}
140 %{?with_opengl:BuildRequires:   OpenGL-GLX-devel}
141 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
142 %{?with_omx:BuildRequires:      OpenMAX-IL-devel}
143 BuildRequires:  SDL2-devel >= 2.0.1
144 BuildRequires:  SDL2-devel < 2.1.0
145 %{?with_vulkan:BuildRequires:   Vulkan-Loader-devel >= 1.1.97}
146 BuildRequires:  alsa-lib-devel
147 %{?with_aom:BuildRequires:      aom-devel >= 1.0.0}
148 %{?with_aribb24:BuildRequires:  aribb24-devel}
149 BuildRequires:  bzip2-devel
150 BuildRequires:  celt-devel >= 0.11.0
151 %{?with_codec2:BuildRequires:   codec2-devel}
152 %{?with_dav1d:BuildRequires:    dav1d-devel >= 0.5.0}
153 %{?with_avs2:BuildRequires:     davs2-devel >= 1.6}
154 %{?with_fdk_aac:BuildRequires:  fdk-aac-devel}
155 %{?with_flite:BuildRequires:    flite-devel >= 1.4}
156 BuildRequires:  fontconfig-devel
157 BuildRequires:  freetype-devel
158 %{?with_frei0r:BuildRequires:   frei0r-devel}
159 %{?with_fribidi:BuildRequires:  fribidi-devel}
160 %{?with_gme:BuildRequires:      game-music-emu-devel}
161 %ifarch ppc
162 # require version with altivec support fixed
163 BuildRequires:  gcc >= 5:3.3.2-3
164 %endif
165 %{?with_glslang:BuildRequires:  glslang-devel >= 11}
166 BuildRequires:  gmp-devel
167 BuildRequires:  gnutls-devel
168 BuildRequires:  jack-audio-connection-kit-devel
169 %{?with_kvazaar:BuildRequires:  kvazaar-devel >= 0.8.1}
170 %{?with_ladspa:BuildRequires:   ladspa-devel}
171 BuildRequires:  lame-libs-devel >= 3.98.3
172 %{?with_lensfun:BuildRequires:  lensfun-devel >= 0.3.95}
173 BuildRequires:  libass-devel
174 %ifarch %{armv6}
175 BuildRequires:  libatomic-devel
176 %endif
177 %{?with_iec61883:BuildRequires: libavc1394-devel}
178 %{?with_bs2b:BuildRequires:     libbs2b-devel}
179 BuildRequires:  libbluray-devel
180 %{?with_caca:BuildRequires:     libcaca-devel}
181 BuildRequires:  libcdio-paranoia-devel >= 0.90-2
182 %{?with_chromaprint:BuildRequires:      libchromaprint-devel}
183 %{?with_crystalhd:BuildRequires:        libcrystalhd-devel}
184 %{?with_dc1394:BuildRequires:   libdc1394-devel >= 2}
185 %{?with_libdrm:BuildRequires:   libdrm-devel}
186 %{?with_gsm:BuildRequires:      libgsm-devel}
187 %{?with_iec61883:BuildRequires: libiec61883-devel}
188 %{?with_libklvanc:BuildRequires:        libklvanc-devel}
189 %{?with_modplug:BuildRequires:  libmodplug-devel}
190 %{?with_libmysofa:BuildRequires:        libmysofa-devel >= 0.7}
191 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
192 %if %{with dc1394} || %{with iec61883}
193 BuildRequires:  libraw1394-devel >= 2
194 %endif
195 %{?with_librist:BuildRequires:  librist-devel >= 0.2}
196 %{?with_librsvg:BuildRequires:  librsvg-devel >= 2}
197 BuildRequires:  librtmp-devel
198 %{?with_ssh:BuildRequires:      libssh-devel}
199 %{?with_smb:BuildRequires:      libsmbclient-devel}
200 %{?with_theora:BuildRequires:   libtheora-devel >= 1.0-0.beta3}
201 BuildRequires:  libtool >= 2:1.4d-3
202 BuildRequires:  libv4l-devel
203 %if %{with va}
204 BuildRequires:  libva-devel >= 1.0.3
205 BuildRequires:  libva-drm-devel >= 1.0.3
206 BuildRequires:  libva-x11-devel >= 1.0.3
207 %endif
208 BuildRequires:  libvdpau-devel >= 1.3
209 BuildRequires:  libvorbis-devel
210 %{?with_vpx:BuildRequires:      libvpx-devel >= 1.4.0}
211 %{?with_webp:BuildRequires:     libwebp-devel >= 0.4.0}
212 # X264_BUILD >= 118
213 %{?with_x264:BuildRequires:     libx264-devel >= 0.1.3-1.20111212_2245}
214 # X265_BUILD >= 70
215 %{?with_x265:BuildRequires:     libx265-devel >= 1.9}
216 # libxcb xcb-shm xcb-xfixes xcb-shape
217 BuildRequires:  libxcb-devel >= 1.4
218 %{?with_libxml2:BuildRequires:  libxml2-devel >= 2}
219 %{?with_lv2:BuildRequires:      lilv-devel}
220 %{?with_v4l2_request:BuildRequires:     linux-libc-headers >= 7:5.11.0}
221 %{?with_lv2:BuildRequires:      lv2-devel}
222 %{?with_mfx:BuildRequires:      mfx_dispatch-devel >= 1.19}
223 %ifarch %{ix86}
224 %ifnarch i386 i486
225 BuildRequires:  nasm
226 %endif
227 %endif
228 %{?with_ffnvcodec:BuildRequires:        nv-codec-headers >= 9.1.23.1}
229 # amrnb,amrwb
230 %{?with_amr:BuildRequires:      opencore-amr-devel}
231 %{?with_opencv:BuildRequires:   opencv-devel >= 2}
232 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
233 BuildRequires:  openjpeg2-devel >= 2.1
234 BuildRequires:  opus-devel
235 BuildRequires:  perl-Encode
236 BuildRequires:  perl-tools-pod
237 %{?with_pocketsphinx:BuildRequires:     pocketsphinx-devel > 0.8}
238 BuildRequires:  pkgconfig
239 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
240 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
241 %{?with_rav1e:BuildRequires:    rav1e-devel >= 0.4.0}
242 %{?with_rkmpp:BuildRequires:    rockchip-mpp-devel >= 1.3.7}
243 BuildRequires:  rpm-build >= 4.6
244 BuildRequires:  rpmbuild(macros) >= 2.007
245 %{?with_rubberband:BuildRequires:       rubberband-devel >= 1.8.1}
246 %{?with_shine:BuildRequires:    shine-devel >= 3.0.0}
247 %{?with_snappy:BuildRequires:   snappy-devel}
248 %{?with_soxr:BuildRequires:     soxr-devel}
249 BuildRequires:  speex-devel >= 1:1.2-rc1
250 %{?with_glslang:BuildRequires:  spirv-tools-devel}
251 %{?with_srt:BuildRequires:      srt-devel >= 1.3}
252 %{?with_svtav1:BuildRequires:   svt-av1-devel >= 0.8.4}
253 BuildRequires:  tar >= 1:1.22
254 %{?with_tesseract:BuildRequires:        tesseract-devel}
255 %{?with_doc:BuildRequires:      tetex}
256 %{?with_doc:BuildRequires:      texi2html}
257 %{?with_doc:BuildRequires:      texinfo}
258 BuildRequires:  twolame-devel >= 0.3.10
259 %{?with_uavs3d:BuildRequires:   uavs3d-devel >= 1.1.41}
260 %{?with_v4l2_request:BuildRequires:     udev-devel}
261 %{?with_vapoursynth:BuildRequires:      vapoursynth-devel >= 42}
262 %{?with_vidstab:BuildRequires:  vid.stab-devel >= 0.98}
263 %{?with_vmaf:BuildRequires:     vmaf-devel >= 1.5.2}
264 %{?with_voamrwbenc:BuildRequires:       vo-amrwbenc-devel}
265 %{?with_ilbc:BuildRequires:     webrtc-libilbc-devel}
266 %{?with_avs:BuildRequires:      xavs-devel}
267 %{?with_avs2:BuildRequires:     xavs2-devel >= 1.3}
268 BuildRequires:  xorg-lib-libX11-devel
269 BuildRequires:  xorg-lib-libXext-devel
270 BuildRequires:  xorg-lib-libXv-devel
271 %{?with_xvid:BuildRequires:     xvid-devel >= 1:1.1.0}
272 BuildRequires:  xz
273 BuildRequires:  xz-devel
274 %{?with_zmq:BuildRequires:      zeromq-devel >= 4.2.1}
275 %{?with_zimg:BuildRequires:     zimg-devel >= 2.7.0}
276 BuildRequires:  zlib-devel
277 %{?with_zvbi:BuildRequires:     zvbi-devel >= 0.2.28}
278 %{?with_autoreqdep:BuildConflicts:      libpostproc}
279 # overflows maximum hash table size
280 BuildConflicts: pdksh < 5.2.14-57
281 Requires:       %{name}-libs = %{version}-%{release}
282 Suggests:       fontconfig
283 Suggests:       fonts-TTF-Roboto
284 Obsoletes:      libpostproc < 0.4.9-1
285 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
286
287 %define         specflags       -fno-strict-aliasing
288
289 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
290 %define         specflags_ia32  -fomit-frame-pointer
291 # -mmmx is needed to enable <mmintrin.h> code.
292 %define         specflags_i586  -mmmx
293 %define         specflags_i686  -mmmx
294 %define         specflags_ppc   -fPIC
295
296 %description
297 FFmpeg is a complete solution to record, convert and stream audio and
298 video. It is a command line tool to convert one video file format to
299 another. It also supports grabbing and encoding in real time from a TV
300 card.
301
302 %description -l pl.UTF-8
303 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
304 strumieni dźwiÄ™ku i obrazu. Jest to dziaÅ‚ajÄ…ce z linii poleceÅ„
305 narzÄ™dzie do konwersji obrazu z jednego formatu do innego. ObsÅ‚uguje
306 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
307 telewizyjnej.
308
309 %package libs
310 Summary:        ffmpeg libraries
311 Summary(pl.UTF-8):      Biblioteki ffmpeg
312 Group:          Libraries
313 Requires:       SDL2 >= 2.0.1
314 %{?with_vulkan:Requires:        Vulkan-Loader >= 1.1.97}
315 %{?with_aom:Requires:   aom >= 1.0.0}
316 Requires:       celt >= 0.11.0
317 %{?with_dav1d:Requires: dav1d >= 0.5.0}
318 %{?with_avs2:Requires:  davs2 >= 1.6}
319 %{?with_flite:Requires: flite >= 1.4}
320 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
321 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
322 Requires:       gnutls-libs >= 3.0.20
323 %endif
324 %{?with_kvazaar:Requires:       kvazaar-libs >= 0.8.1}
325 %{?with_libmysofa:Requires:     libmysofa >= 0.7}
326 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
327 %{?with_librist:Requires:       librist >= 0.2}
328 %{?with_theora:Requires:        libtheora >= 1.0-0.beta3}
329 %if %{with va}
330 Requires:       libva >= 1.0.3
331 Requires:       libva-drm >= 1.0.3
332 Requires:       libva-x11 >= 1.0.3
333 %endif
334 Requires:       libvdpau >= 1.3
335 %{?with_vpx:Requires:   libvpx >= 1.4.0}
336 %{?with_webp:Requires:  libwebp >= 0.4.0}
337 %{?with_x264:Requires:  libx264 >= 0.1.3-1.20111212_2245}
338 %{?with_x265:Requires:  libx265 >= 1.9}
339 Requires:       libxcb >= 1.4
340 Requires:       lame-libs >= 3.98.3
341 %{?with_mfx:Requires:   mfx_dispatch >= 1.19}
342 %{?with_openh264:Requires:      openh264 >= 1.3}
343 Requires:       openjpeg2 >= 2.1
344 %{?with_rabbitmq:Requires:      rabbitmq-c >= 0.7.1}
345 %{?with_rav1e:Requires: rav1e-libs >= 0.4.0}
346 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
347 %{?with_rubberband:Requires:    rubberband-libs >= 1.8.1}
348 %{?with_shine:Requires: shine >= 3.0.0}
349 Requires:       speex >= 1:1.2-rc1
350 %{?with_srt:Requires:   srt >= 1.3}
351 %{?with_svtav1:Requires:        svt-av1 >= 0.8.4}
352 Requires:       twolame-libs >= 0.3.10
353 %{?with_uavs3d:Requires:        uavs3d >= 1.1.41}
354 %{?with_vapoursynth:Requires:   vapoursynth >= 42}
355 %{?with_vidstab:Requires:       vid.stab >= 0.98}
356 %{?with_vmaf:Requires:  vmaf-libs >= 1.5.2}
357 %{?with_avs2:Requires:  xavs2 >= 1.3}
358 %{?with_xvid:Requires:  xvid >= 1:1.1.0}
359 %{?with_zmq:Requires:   zeromq >= 4.2.1}
360 %{?with_zimg:Requires:  zimg >= 2.7.0}
361 %{?with_zvbi:Requires:  zvbi >= 0.2.28}
362
363 %description libs
364 This package contains the ffmpeg shared libraries:
365 - the codec library (libavcodec). It supports most existing encoding
366   formats (MPEG, DivX, MPEG4, AC3, DV...),
367 - demuxer library (libavformat). It supports most existing file
368   formats (AVI, MPEG, OGG, Matroska, ASF...),
369 - video postprocessing library (libpostproc).
370
371 %description libs -l pl.UTF-8
372 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
373 - bibliotekÄ™ kodeków (libavcodec); obsÅ‚uguje wiÄ™kszość istniejÄ…cych
374   formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
375 - bibliotekÄ™ demuksera (libavformat); obsÅ‚uguje wiÄ™kszość istniejÄ…cych
376   formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
377 - bibliotekÄ™ postprocessingu (libpostproc).
378
379 %package devel
380 Summary:        ffmpeg header files
381 Summary(pl.UTF-8):      Pliki nagłówkowe ffmpeg
382 Group:          Development/Libraries
383 Requires:       %{name}-libs = %{version}-%{release}
384 # Libs.private from *.pc
385 %{?with_openal:Requires:        OpenAL-devel >= 1.1}
386 %{?with_opencl:Requires:        OpenCL-devel >= 1.2}
387 %{?with_opengl:Requires:        OpenGL-devel}
388 %{?with_vulkan:Requires:        Vulkan-Loader-devel >= 1.1.97}
389 Requires:       SDL2-devel >= 2.0.1
390 Requires:       alsa-lib-devel
391 %{?with_aom:Requires:   aom-devel >= 1.0.0}
392 %{?with_aribb24:Requires:       aribb24-devel}
393 %{?with_avs2:Requires:  davs2-devel >= 1.6}
394 Requires:       bzip2-devel
395 Requires:       celt-devel >= 0.11.0
396 %{?with_codec2:Requires:        codec2-devel}
397 %{?with_dav1d:Requires: dav1d-devel >= 0.5.0}
398 %{?with_fdk_aac:Requires:       fdk-aac-devel}
399 %{?with_flite:Requires: flite-devel >= 1.4}
400 Requires:       fontconfig-devel
401 Requires:       freetype-devel
402 %{?with_fribidi:Requires:       fribidi-devel}
403 %{?with_gme:Requires:   game-music-emu-devel}
404 %{?with_glslang:Requires:       glslang-devel}
405 Requires:       gnutls-devel
406 Requires:       jack-audio-connection-kit-devel
407 %{?with_kvazaar:Requires:       kvazaar-devel >= 0.8.1}
408 Requires:       lame-libs-devel >= 3.98.3
409 %{?with_lensfun:Requires:       lensfun-devel >= 0.3.95}
410 Requires:       libass-devel
411 %{?with_iec61883:Requires:      libavc1394-devel}
412 Requires:       libbluray-devel
413 %{?with_bs2b:Requires:  libbs2b-devel}
414 %{?with_caca:Requires:  libcaca-devel}
415 Requires:       libcdio-paranoia-devel >= 0.90-2
416 %{?with_chromaprint:Requires:   libchromaprint-devel}
417 %{?with_crystalhd:Requires:     libcrystalhd-devel}
418 %{?with_dc1394:Requires:        libdc1394-devel >= 2}
419 %{?with_libdrm:Requires:        libdrm-devel}
420 %{?with_gsm:Requires:   libgsm-devel}
421 %{?with_iec61883:Requires:      libiec61883-devel}
422 %{?with_libklvanc:Requires:     libklvanc-devel}
423 %{?with_modplug:Requires:       libmodplug-devel}
424 %{?with_libmysofa:Requires:     libmysofa-devel >= 0.7}
425 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
426 %if %{with dc1394} || %{with iec61883}
427 Requires:       libraw1394-devel >= 2
428 %endif
429 %{?with_librist:Requires:       librist-devel >= 0.2}
430 %{?with_librsvg:Requires:       librsvg-devel >= 2}
431 Requires:       librtmp-devel
432 %{?with_smb:Requires:   libsmbclient-devel}
433 %{?with_ssh:Requires:   libssh-devel}
434 Requires:       libstdc++-devel
435 %{?with_theora:Requires:        libtheora-devel >= 1.0-0.beta3}
436 Requires:       libv4l-devel
437 %{?with_va:Requires:    libva-devel >= 1.0.3}
438 %{?with_va:Requires:    libva-drm-devel >= 1.0.3}
439 %{?with_va:Requires:    libva-x11-devel >= 1.0.3}
440 Requires:       libvdpau-devel >= 1.3
441 Requires:       libvorbis-devel
442 %{?with_vpx:Requires:   libvpx-devel >= 1.4.0}
443 %{?with_webp:Requires:  libwebp-devel >= 0.4.0}
444 %{?with_x264:Requires:  libx264-devel >= 0.1.3-1.20110625_2245}
445 %{?with_x265:Requires:  libx265-devel >= 1.9}
446 # libxcb xcb-shm xcb-xfixes xcb-shape
447 Requires:       libxcb-devel >= 1.4
448 %{?with_libxml2:Requires:       libxml2-devel >= 2}
449 %{?with_lv2:Requires:   lilv-devel}
450 %{?with_mfx:Requires:   mfx_dispatch-devel >= 1.19}
451 %{?with_amr:Requires:   opencore-amr-devel}
452 %{?with_opencv:Requires:        opencv-devel >= 2}
453 %{?with_openh264:Requires:      openh264-devel >= 1.3}
454 Requires:       openjpeg2-devel >= 2.1
455 Requires:       opus-devel
456 %{?with_pulseaudio:Requires:    pulseaudio-devel}
457 %{?with_rabbitmq:Requires:      rabbitmq-c-devel >= 0.7.1}
458 %{?with_rav1e:Requires: rav1e-devel >= 0.4.0}
459 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
460 %{?with_rubberband:Requires:    rubberband-devel >= 1.8.1}
461 %{?with_shine:Requires: shine-devel >= 3.0.0}
462 %{?with_snappy:Requires:        snappy-devel}
463 %{?with_soxr:Requires:  soxr-devel}
464 Requires:       speex-devel >= 1:1.2-rc1
465 %{?with_glslang:Requires:       spirv-tools-devel}
466 %{?with_srt:Requires:   srt-devel >= 1.3}
467 %{?with_svtav1:Requires:        svt-av1-devel >= 0.8.4}
468 %{?with_tesseract:Requires:     tesseract-devel}
469 Requires:       twolame-devel >= 0.3.10
470 %{?with_uavs3d:Requires:        uavs3d-devel >= 1.1.41}
471 %{?with_vapoursynth:Requires:   vapoursynth-devel >= 42}
472 %{?with_vidstab:Requires:       vid.stab-devel >= 0.98}
473 %{?with_voamrwbenc:Requires:    vo-amrwbenc-devel}
474 %{?with_vmaf:Requires:  vmaf-devel >= 1.5.2}
475 %{?with_ilbc:Requires:  webrtc-libilbc-devel}
476 %{?with_avs:Requires:   xavs-devel}
477 %{?with_avs2:Requires:  xavs2-devel >= 1.3}
478 Requires:       xorg-lib-libX11-devel
479 Requires:       xorg-lib-libXext-devel
480 Requires:       xorg-lib-libXv-devel
481 %{?with_xvid:Requires:  xvid-devel >= 1:1.1.0}
482 Requires:       xz-devel
483 %{?with_zmq:Requires:   zeromq-devel >= 4.2.1}
484 %{?with_zimg:Requires:  zimg-devel >= 2.7.0}
485 Requires:       zlib-devel
486 %{?with_zvbi:Requires:  zvbi-devel >= 0.2.28}
487 Obsoletes:      libpostproc-devel < 0.4.9-1
488
489 %description devel
490 ffmpeg header files.
491
492 %description devel -l pl.UTF-8
493 Pliki nagłówkowe ffmpeg.
494
495 %package static
496 Summary:        ffmpeg static libraries
497 Summary(pl.UTF-8):      Statyczne biblioteki ffmpeg
498 Group:          Development/Libraries
499 Requires:       %{name}-devel = %{version}-%{release}
500
501 %description static
502 ffmpeg static libraries (libavcodec and libavformat).
503
504 %description static -l pl.UTF-8
505 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
506
507 %package ffplay
508 Summary:        FFplay - SDL-based media player
509 Summary(pl.UTF-8):      FFplay - odtwarzacz mediów oparty na SDL
510 Group:          Applications/Multimedia
511 Requires:       %{name}-libs = %{version}-%{release}
512
513 %description ffplay
514 FFplay is a very simple and portable media player using the FFmpeg
515 libraries and the SDL library. It is mostly used as a test bench for
516 the various APIs of FFmpeg.
517
518 %description ffplay -l pl.UTF-8
519 FFplay to bardzo prosty i przenoÅ›ny odtwarzacz mediów używajÄ…cy
520 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
521 testowania różnych API FFmpeg.
522
523 %package doc
524 Summary:        FFmpeg documentation in HTML format
525 Summary(pl.UTF-8):      Dokumentacja pakietu FFmpeg w formacie HTML
526 Group:          Documentation
527 BuildArch:      noarch
528
529 %description doc
530 FFmpeg documentation in HTML format.
531
532 %description doc -l pl.UTF-8
533 Dokumentacja pakietu FFmpeg w formacie HTML.
534
535 %prep
536 %setup -q
537 %patch0 -p1
538 %patch1 -p1
539 %patch2 -p1
540 %if %{with v4l2_request}
541 %patch3 -p1
542 %endif
543 %patch4 -p1
544 %if %{with v4l2_drmprime}
545 %patch5 -p1
546 %endif
547
548 # package the grep result for mplayer, the result formatted as ./mplayer/configure
549 cat <<EOF > ffmpeg-avconfig
550 #! /bin/sh
551 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
552 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
553 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
554 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
555 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
556 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
557 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
558 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
559 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
560 EOF
561 cat <<'EOF' >> ffmpeg-avconfig
562
563 case "$1" in
564 --decoders)
565         echo $libavdecoders_all
566         ;;
567 --encoders)
568         echo $libavencoders_all
569         ;;
570 --parsers)
571         echo $libavparsers_all
572         ;;
573 --bsfs)
574         echo $libavbsfs_all
575         ;;
576 --demuxers)
577         echo $libavdemuxers_all
578         ;;
579 --muxers)
580         echo $libavmuxers_all
581         ;;
582 --protocols)
583         echo $libavprotocols_all
584         ;;
585 --hwaccels)
586         echo $libavhwaccels_all
587         ;;
588 --filters)
589         echo $libavfilters_all
590         ;;
591 *)
592         cat <<USAGE
593 Usage: $0 [OPTION]
594 Options:
595   --decoders
596   --encoders
597   --parsers
598   --bsfs
599   --demuxers
600   --muxers
601   --protocols
602   --hwaccels
603   --filters
604 USAGE
605         exit 1;;
606 esac
607
608 exit 0
609 EOF
610
611 %build
612 # notes:
613 # - it's not autoconf configure
614 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
615 ./configure \
616         --arch=%{_target_base_arch} \
617         --prefix=%{_prefix} \
618         --libdir=%{_libdir} \
619         --shlibdir=%{_libdir} \
620         --mandir=%{_mandir} \
621         --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
622         --extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
623         --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
624 %ifarch %{armv6}
625         --extra-libs="-latomic" \
626 %endif
627         --cc="%{__cc}" \
628         --disable-debug \
629         --disable-optimizations \
630         --disable-stripping \
631         %{!?with_doc:--disable-doc} \
632         --enable-avfilter \
633         --enable-avresample \
634         %{?with_chromaprint:--enable-chromaprint} \
635         %{?with_cudasdk:--enable-cuda-nvcc} \
636         %{?with_decklink:--enable-decklink} \
637         %{!?with_ffnvcodec:--disable-ffnvcodec} \
638         --enable-gnutls \
639         --enable-gpl \
640         --enable-version3 \
641         %{?with_frei0r:--enable-frei0r} \
642         %{?with_ladspa:--enable-ladspa} \
643         %{?with_aom:--enable-libaom} \
644         %{?with_aribb24:--enable-libaribb24} \
645         --enable-libass \
646         --enable-libbluray \
647         %{?with_bs2b:--enable-libbs2b} \
648         %{?with_caca:--enable-libcaca} \
649         --enable-libcelt \
650         --enable-libcdio \
651         %{?with_codec2:--enable-libcodec2} \
652         %{?with_dav1d:--enable-libdav1d} \
653         %{?with_avs2:--enable-libdavs2} \
654         %{?with_dc1394:--enable-libdc1394} \
655         %{?with_libdrm:--enable-libdrm} \
656         %{?with_flite:--enable-libflite} \
657         --enable-libfontconfig \
658         --enable-libfreetype \
659         %{?with_fribidi:--enable-libfribidi} \
660         %{?with_glslang:--enable-libglslang} \
661         %{?with_gme:--enable-libgme} \
662         %{?with_gsm:--enable-libgsm} \
663         %{?with_iec61883:--enable-libiec61883} \
664         %{?with_ilbc:--enable-libilbc} \
665         --enable-libjack \
666         %{?with_kvazaar:--enable-libkvazaar} \
667         %{?with_libklvanc:--enable-libklvanc} \
668         %{?with_lensfun:--enable-liblensfun} \
669         %{?with_mfx:--enable-libmfx} \
670         %{?with_modplug:--enable-libmodplug} \
671         --enable-libmp3lame \
672         %{?with_libmysofa:--enable-libmysofa} \
673         %{?with_amr:--enable-libopencore-amrnb} \
674         %{?with_amr:--enable-libopencore-amrwb} \
675         %{?with_opencv:--enable-libopencv} \
676         %{?with_openh264:--enable-libopenh264} \
677         --enable-libopenjpeg \
678         %{?with_openmpt:--enable-libopenmpt} \
679         --enable-libopus \
680         %{?with_pulseaudio:--enable-libpulse} \
681         %{?with_rabbitmq:--enable-librabbitmq} \
682         %{?with_rav1e:--enable-librav1e} \
683         %{?with_librist:--enable-librist} \
684         %{?with_librsvg:--enable-librsvg} \
685         --enable-librtmp \
686         %{?with_rubberband:--enable-librubberband} \
687         %{?with_shine:--enable-libshine} \
688         %{?with_smb:--enable-libsmbclient} \
689         %{?with_snappy:--enable-libsnappy} \
690         %{?with_soxr:--enable-libsoxr} \
691         --enable-libspeex \
692         %{?with_srt:--enable-libsrt} \
693         %{?with_ssh:--enable-libssh} \
694         %{?with_svtav1:--enable-libsvtav1} \
695         %{?with_tesseract:--enable-libtesseract} \
696         %{?with_theora:--enable-libtheora} \
697         --enable-libtwolame \
698         %{?with_uavs3d:--enable-libuavs3d} \
699         --enable-libv4l2 \
700         %{?with_vidstab:--enable-libvidstab} \
701         %{?with_vmaf:--enable-libvmaf} \
702         %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
703         --enable-libvorbis \
704         %{?with_vpx:--enable-libvpx} \
705         %{?with_webp:--enable-libwebp} \
706         %{?with_x264:--enable-libx264} \
707         %{?with_x265:--enable-libx265} \
708         %{?with_avs:--enable-libxavs} \
709         %{?with_avs2:--enable-libxavs2} \
710         --enable-libxcb \
711         %{?with_libxml2:--enable-libxml2} \
712         %{?with_xvid:--enable-libxvid} \
713         %{?with_zimg:--enable-libzimg} \
714         %{?with_zmq:--enable-libzmq} \
715         %{?with_zvbi:--enable-libzvbi} \
716         %{?with_lv2:--enable-lv2} \
717         %{?with_omx:--enable-omx} \
718         %{?with_openal:--enable-openal} \
719         %{?with_opencl:--enable-opencl} \
720         %{?with_opengl:--enable-opengl} \
721         %{?with_pocketsphinx:--enable-pocketsphinx} \
722         --enable-postproc \
723         --enable-pthreads \
724         %{?with_rkmpp:--enable-rkmpp} \
725         --enable-shared \
726         --enable-swscale \
727         %{!?with_va:--disable-vaapi} \
728         %{?with_vapoursynth:--enable-vapoursynth} \
729         %{?with_vulkan:--enable-vulkan} \
730 %if %{with v4l2_request}
731         --enable-libudev \
732         --enable-v4l2-request \
733 %endif
734 %ifnarch %{ix86} %{x8664}
735         --disable-mmx \
736 %endif
737 %ifarch i386 i486
738         --disable-mmx \
739 %endif
740 %ifarch x32
741         --disable-asm \
742 %endif
743 %if %{with nonfree}
744         --enable-nonfree \
745         %{?with_fdk_aac:--enable-libfdk-aac} \
746         %{?with_npp:--enable-libnpp} \
747 %endif
748         --enable-runtime-cpudetect
749
750 %{__make} \
751         V=1
752
753 # CC_O to add -c to commandline. makefile should be patched
754 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
755
756 %{?with_tests:%{__make} check V=1}
757
758 %install
759 rm -rf $RPM_BUILD_ROOT
760 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
761         $RPM_BUILD_ROOT%{_includedir}/ffmpeg
762
763 %{__make} install install-headers \
764         DESTDIR=$RPM_BUILD_ROOT \
765         V=1
766
767 # install nonstandard, non-public headers manually
768 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
769 for a in libavutil/*/{asm,bswap}.h; do
770         install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
771 done
772 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
773
774 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
775
776 # install as ffmpeg-avconfig to avoid with possible programs looking for
777 # ffmpeg-config and expecting --libs output from it which is not implemented
778 # simple to do (by querying pkgconfig), but why?
779 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
780
781 # packaged as %doc in -doc
782 %if %{with doc}
783 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
784 %endif
785
786 install -d $RPM_BUILD_ROOT%{_examplesdir}
787 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
788
789 %clean
790 rm -rf $RPM_BUILD_ROOT
791
792 %post   libs -p /sbin/ldconfig
793 %postun libs -p /sbin/ldconfig
794
795 %files
796 %defattr(644,root,root,755)
797 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
798 %attr(755,root,root) %{_bindir}/ffmpeg
799 %attr(755,root,root) %{_bindir}/ffprobe
800 %attr(755,root,root) %{_bindir}/qt-faststart
801 %dir %{_datadir}/ffmpeg
802 %{_datadir}/ffmpeg/*.ffpreset
803 %{_datadir}/ffmpeg/ffprobe.xsd
804 %if %{with doc}
805 %{_mandir}/man1/ffmpeg.1*
806 %{_mandir}/man1/ffmpeg-all.1*
807 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
808 %{_mandir}/man1/ffmpeg-codecs.1*
809 %{_mandir}/man1/ffmpeg-devices.1*
810 %{_mandir}/man1/ffmpeg-filters.1*
811 %{_mandir}/man1/ffmpeg-formats.1*
812 %{_mandir}/man1/ffmpeg-protocols.1*
813 %{_mandir}/man1/ffmpeg-resampler.1*
814 %{_mandir}/man1/ffmpeg-scaler.1*
815 %{_mandir}/man1/ffmpeg-utils.1*
816 %{_mandir}/man1/ffprobe.1*
817 %{_mandir}/man1/ffprobe-all.1*
818 %endif
819
820 %files libs
821 %defattr(644,root,root,755)
822 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
823 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.58
824 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
825 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.58
826 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
827 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.7
828 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
829 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.58
830 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
831 %attr(755,root,root) %ghost %{_libdir}/libavresample.so.4
832 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
833 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.56
834 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
835 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.55
836 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
837 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.3
838 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
839 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.5
840
841 %files devel
842 %defattr(644,root,root,755)
843 %doc doc/optimization.txt
844 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
845 %attr(755,root,root) %{_libdir}/libavcodec.so
846 %attr(755,root,root) %{_libdir}/libavdevice.so
847 %attr(755,root,root) %{_libdir}/libavfilter.so
848 %attr(755,root,root) %{_libdir}/libavformat.so
849 %attr(755,root,root) %{_libdir}/libavresample.so
850 %attr(755,root,root) %{_libdir}/libavutil.so
851 %attr(755,root,root) %{_libdir}/libpostproc.so
852 %attr(755,root,root) %{_libdir}/libswresample.so
853 %attr(755,root,root) %{_libdir}/libswscale.so
854 %{_includedir}/ffmpeg
855 %{_includedir}/libavcodec
856 %{_includedir}/libavdevice
857 %{_includedir}/libavfilter
858 %{_includedir}/libavformat
859 %{_includedir}/libavresample
860 %{_includedir}/libavutil
861 %{_includedir}/libpostproc
862 %{_includedir}/libswresample
863 %{_includedir}/libswscale
864 %{_pkgconfigdir}/libavcodec.pc
865 %{_pkgconfigdir}/libavdevice.pc
866 %{_pkgconfigdir}/libavfilter.pc
867 %{_pkgconfigdir}/libavformat.pc
868 %{_pkgconfigdir}/libavresample.pc
869 %{_pkgconfigdir}/libavutil.pc
870 %{_pkgconfigdir}/libpostproc.pc
871 %{_pkgconfigdir}/libswresample.pc
872 %{_pkgconfigdir}/libswscale.pc
873 %if %{with doc}
874 %{_mandir}/man3/libavcodec.3*
875 %{_mandir}/man3/libavdevice.3*
876 %{_mandir}/man3/libavfilter.3*
877 %{_mandir}/man3/libavformat.3*
878 %{_mandir}/man3/libavutil.3*
879 %{_mandir}/man3/libswresample.3*
880 %{_mandir}/man3/libswscale.3*
881 %endif
882 %{_examplesdir}/%{name}-%{version}
883
884 %files static
885 %defattr(644,root,root,755)
886 %{_libdir}/libavcodec.a
887 %{_libdir}/libavdevice.a
888 %{_libdir}/libavfilter.a
889 %{_libdir}/libavformat.a
890 %{_libdir}/libavresample.a
891 %{_libdir}/libavutil.a
892 %{_libdir}/libpostproc.a
893 %{_libdir}/libswresample.a
894 %{_libdir}/libswscale.a
895
896 %files ffplay
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_bindir}/ffplay
899 %if %{with doc}
900 %{_mandir}/man1/ffplay.1*
901 %{_mandir}/man1/ffplay-all.1*
902 %endif
903
904 %if %{with doc}
905 %files doc
906 %defattr(644,root,root,755)
907 %doc doc/*.html
908 %endif
This page took 0.080159 seconds and 2 git commands to generate.