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