-
Notifications
You must be signed in to change notification settings - Fork 18
/
ffmpeg.spec
1933 lines (1499 loc) · 65.5 KB
/
ffmpeg.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# TODO: add make test to %%check section
#global branch oldabi-
#global date 20230221
#global commit 691d01989936d4b0681aa226aea8a19f06c04cea
#global rel %(c=%{commit}; echo ${c:0:7})
%if 0%{?fedora} >= 37 || 0%{?rhel} >= 9
%bcond_without libavcodec_freeworld
%else
%bcond_with libavcodec_freeworld
%endif
%undefine _package_note_file
%ifarch %{ix86} %{arm}
# Fails due to asm issue
%global _lto_cflags %{nil}
%endif
# Cuda and others are only available on some arches
%global cuda_arches x86_64
# Disable because of gcc issue
%global _without_lensfun 1
# Disable due to undefined symbols in libavformat
#global _with_dvddemuxer 1
%ifnarch i686
%global _with_bs2b 1
%global _with_codec2 1
%global _with_chromaprint 1
%global _with_ilbc 1
%global _with_openh264 1
%if 0%{?fedora}
%global _with_placebo 1
%endif
%global _with_rav1e 1
%global _with_smb 1
%global _with_snappy 1
%global _with_svtav1 1
%global _with_tesseract 1
%global _with_twolame 1
%global _with_wavpack 1
%global _with_webp 1
%global _with_zmq 1
%else
%global _without_libklvanc 1
%global _without_libaribb24 1
%global _without_libaribcaption 1
%global _without_rubberband 1
%global _without_vulkan 1
%endif
%ifarch x86_64
%global _with_vpl 1
%global _with_vapoursynth 1
%global _with_vmaf 1
%endif
# flavor nonfree
%if 0%{?_with_cuda:1}
%global _with_cuvid 1
%global _with_libnpp 1
%endif
# Disable nvenc when not relevant
%ifnarch %{cuda_arches} aarch64
%global _without_nvenc 1
%endif
# extras flags
%if 0%{!?_cuda_version:1}
%global _cuda_version 12.6
%endif
%global _cuda_version_rpm %(echo %{_cuda_version} | sed -e 's/\\./-/')
%global _cuda_bindir %{_cuda_prefix}/bin
%if 0%{?_with_cuda:1}
%global cuda_cflags $(pkg-config --cflags cuda-%{_cuda_version})
%global cuda_ldflags $(pkg-config --libs cuda-%{_cuda_version})
%endif
%if 0%{?_with_libnpp:1}
%global libnpp_cflags $(pkg-config --cflags nppi-%{_cuda_version} nppc-%{_cuda_version})
%global libnpp_ldlags $(pkg-config --libs-only-L nppi-%{_cuda_version} nppc-%{_cuda_version})
%endif
%if 0%{?_with_rpi:1}
%global _with_omx 1
%global _with_omx_rpi 1
%global _with_mmal 1
ExclusiveArch: armv7hnl
%endif
%if 0%{?_without_gpl}
%global lesser L
%endif
%if 0%{!?_without_amr} || 0%{?_with_gmp} || 0%{?_with_smb} || 0%{?_with_vmaf}
%global ffmpeg_license %{?lesser}GPLv3+
%else
%global ffmpeg_license %{?lesser}GPLv2+
%endif
Summary: Digital VCR and streaming server
Name: ffmpeg%{?flavor}
Version: 7.0.2
Release: 6%{?dist}
License: %{ffmpeg_license}
URL: https://ffmpeg.org/
%if 0%{?date}
Source0: ffmpeg-%{?branch}%{date}.tar.bz2
%else
Source0: https://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
Source1: https://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz.asc
Source2: https://ffmpeg.org/ffmpeg-devel.asc
%endif
# We don't endorse adding this patch but fedora insists on breaking the ffmpeg ABI
Patch0: ffmpeg-chromium.patch
Conflicts: %{name}-free
Provides: %{name}-bin = %{version}-%{release}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
%{?_with_cuda:%{?!_with_cuda_nvcc:BuildRequires: clang}}
%{?_with_libnpp:BuildRequires: pkgconfig(nppc-%{_cuda_version})}
BuildRequires: alsa-lib-devel
BuildRequires: AMF-devel
BuildRequires: bzip2-devel
%{?_with_codec2:BuildRequires: codec2-devel}
%{?_with_faac:BuildRequires: faac-devel}
%{?_with_fdk_aac:BuildRequires: fdk-aac-devel}
%{?_with_flite:BuildRequires: flite-devel}
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: fribidi-devel
%{!?_without_frei0r:BuildRequires: frei0r-devel}
%{?_with_gme:BuildRequires: game-music-emu-devel}
BuildRequires: gnupg2
BuildRequires: gnutls-devel
BuildRequires: gsm-devel
BuildRequires: harfbuzz-devel
%{?_with_ilbc:BuildRequires: ilbc-devel}
BuildRequires: lame-devel >= 3.98.3
%{!?_without_jack:BuildRequires: jack-audio-connection-kit-devel}
%{!?_without_jxl:BuildRequires: libjxl-devel}
%{!?_without_ladspa:BuildRequires: ladspa-devel}
BuildRequires: lcms2-devel
%{!?_without_aom:BuildRequires: libaom-devel}
%{!?_without_aribb24:BuildRequires: pkgconfig(aribb24) >= 1.0.3}
%{!?_without_dav1d:BuildRequires: libdav1d-devel}
%{?_with_dvddemuxer:BuildRequires: libdvdnav-devel libdvdread-devel}
%{!?_without_ass:BuildRequires: libass-devel}
%{!?_without_bluray:BuildRequires: libbluray-devel}
%{?_with_bs2b:BuildRequires: libbs2b-devel}
%{?_with_caca:BuildRequires: libcaca-devel}
%{!?_without_cdio:BuildRequires: libcdio-paranoia-devel}
%{?_with_chromaprint:BuildRequires: libchromaprint-devel}
%{!?_without_lensfun:BuildRequires: lensfun-devel}
%if 0%{?_with_ieee1394}
BuildRequires: libavc1394-devel
BuildRequires: libdc1394-devel
BuildRequires: libiec61883-devel
%endif
%{!?_without_libaribcaption:BuildRequires: pkgconfig(libaribcaption) >= 1.1.1}
BuildRequires: libdrm-devel
BuildRequires: libgcrypt-devel
%{!?_without_libklvanc:BuildRequires: libklvanc-devel}
BuildRequires: libGL-devel
BuildRequires: libmodplug-devel
BuildRequires: libmysofa-devel
%if 0%{?fedora} && 0%{?fedora} > 39
%{?_with_openh264:BuildRequires: noopenh264-devel}
%else
%{?_with_openh264:BuildRequires: openh264-devel}
%endif
BuildRequires: libopenmpt-devel
%{?_with_placebo:BuildRequires: libplacebo-devel >= 4.192.0}
BuildRequires: librsvg2-devel
# Disable rtmp because of rfbz: 6441 & 2399
%{?_with_rtmp:BuildRequires: librtmp-devel}
%{?_with_smb:BuildRequires: libsmbclient-devel}
BuildRequires: libssh-devel
BuildRequires: libtheora-devel
BuildRequires: libv4l-devel
%{?!_without_vaapi:BuildRequires: libva-devel >= 0.31.0}
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
%{?_with_vapoursynth:BuildRequires: vapoursynth-devel}
%{?!_without_vpx:BuildRequires: libvpx-devel >= 1.4.0}
%{?_with_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1}
%ifarch %{ix86} x86_64
BuildRequires: nasm
%endif
%{?_with_webp:BuildRequires: libwebp-devel}
%{?_with_netcdf:BuildRequires: netcdf-devel}
%{?_with_rpi:BuildRequires: raspberrypi-vc-devel}
%{!?_without_nvenc:BuildRequires: nv-codec-headers}
%{!?_without_amr:BuildRequires: opencore-amr-devel vo-amrwbenc-devel}
%{?_with_omx:BuildRequires: libomxil-bellagio-devel}
BuildRequires: libxcb-devel
BuildRequires: libxml2-devel
%{!?_without_lv2:BuildRequires: lilv-devel lv2-devel}
%{!?_without_openal:BuildRequires: openal-soft-devel}
%if 0%{!?_without_opencl:1}
BuildRequires: opencl-headers ocl-icd-devel
%{?fedora:Recommends: opencl-icd}
%endif
%{?_with_opencv:BuildRequires: opencv-devel}
BuildRequires: openjpeg2-devel
%{!?_without_opus:BuildRequires: opus-devel >= 1.1.3}
%{!?_without_pulse:BuildRequires: pulseaudio-libs-devel}
BuildRequires: perl(Pod::Man)
BuildRequires: qrencode-devel
%{?_with_rav1e:BuildRequires: pkgconfig(rav1e)}
%{!?_without_rubberband:BuildRequires: rubberband-devel}
%{!?_without_tools:BuildRequires: SDL2-devel}
%{?_with_snappy:BuildRequires: snappy-devel}
BuildRequires: soxr-devel
BuildRequires: speex-devel
BuildRequires: pkgconfig(srt)
%{?_with_svtav1:BuildRequires: svt-av1-devel >= 0.9.0}
%{?_with_tesseract:BuildRequires: tesseract-devel}
#BuildRequires: texi2html
BuildRequires: texinfo
%{?_with_twolame:BuildRequires: twolame-devel}
%{?_with_vmaf:BuildRequires: libvmaf-devel >= 1.5.2}
%{?_with_vpl:BuildRequires: pkgconfig(vpl) >= 2.6}
%{?_with_wavpack:BuildRequires: wavpack-devel}
%{!?_without_vidstab:BuildRequires: vid.stab-devel}
%{!?_without_vulkan:BuildRequires: pkgconfig(shaderc) pkgconfig(vulkan) >= 1.3.277}
%{!?_without_x264:BuildRequires: x264-devel >= 0.0.0-0.31}
%{!?_without_x265:BuildRequires: x265-devel}
%{!?_without_xvid:BuildRequires: xvidcore-devel}
%{!?_without_zimg:BuildRequires: zimg-devel >= 2.7.0}
BuildRequires: zlib-devel
%{?_with_zmq:BuildRequires: zeromq-devel}
%{!?_without_zvbi:BuildRequires: zvbi-devel}
%description
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
%package libs
Summary: Libraries for %{name}
Conflicts: libavcodec-free
Conflicts: libavfilter-free
Conflicts: libavformat-free
Conflicts: libavutil-free
Conflicts: libpostproc-free
Conflicts: libswresample-free
Conflicts: libswscale-free
%{?_with_vmaf:Recommends: vmaf-models}
Provides: libavcodec-freeworld = %{version}-%{release}
%description libs
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
This package contains the libraries for %{name}
%package -n libavdevice%{?flavor}
Summary: Special devices muxing/demuxing library
Conflicts: libavdevice-free
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description -n libavdevice%{?flavor}
Libavdevice is a complementary library to libavf "libavformat". It provides
various "special" platform-specific muxers and demuxers, e.g. for grabbing
devices, audio capture and playback etc.
%package devel
Summary: Development package for %{name}
Conflicts: %{name}-free-devel
Requires: %{name}-libs%{_isa} = %{version}-%{release}
Requires: libavdevice%{?flavor}%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
This package contains development files for %{name}
%if %{with libavcodec_freeworld}
%package -n libavcodec-freeworld
Summary: Freeworld libavcodec to complement the distro counterparts
# Supplements doesn't work well yet - we can rely on comps for now
#Supplements: libavcodec-free >= %%{version}
Conflicts: libavcodec-free < %{version}
%description -n libavcodec-freeworld
Freeworld libavcodec to complement the distro counterparts
%endif
# Don't use the %%configure macro as this is not an autotool script
%global ff_configure \
./configure \\\
--prefix=%{_prefix} \\\
--bindir=%{_bindir} \\\
--datadir=%{_datadir}/%{name} \\\
--docdir=%{_docdir}/%{name} \\\
--incdir=%{_includedir}/%{name} \\\
--libdir=%{_libdir} \\\
--mandir=%{_mandir} \\\
--arch=%{_target_cpu} \\\
--optflags="%{optflags}" \\\
--extra-ldflags="%{?__global_ldflags} %{?cuda_ldflags} %{?libnpp_ldlags}" \\\
--extra-cflags="%{?cuda_cflags} %{?libnpp_cflags} -I%{_includedir}/rav1e" \\\
%{?flavor:--disable-manpages} \\\
%{?progs_suffix:--progs-suffix=%{progs_suffix}} \\\
%{?build_suffix:--build-suffix=%{build_suffix}} \\\
%{!?_without_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3} \\\
--enable-bzlib \\\
%{?_with_chromaprint:--enable-chromaprint} \\\
--enable-fontconfig \\\
%{!?_without_frei0r:--enable-frei0r} \\\
--enable-gcrypt \\\
%{?_with_gmp:--enable-gmp --enable-version3} \\\
--enable-gnutls \\\
%{!?_without_ladspa:--enable-ladspa} \\\
--enable-lcms2 \\\
%{!?_without_aom:--enable-libaom} \\\
%{!?_without_libaribb24:--enable-libaribb24} \\\
%{!?_without_libaribcaption:--enable-libaribcaption} \\\
%{!?_without_dav1d:--enable-libdav1d} \\\
%{!?_without_ass:--enable-libass} \\\
%{!?_without_bluray:--enable-libbluray} \\\
%{?_with_bs2b:--enable-libbs2b} \\\
%{?_with_caca:--enable-libcaca} \\\
%{?_with_codec2:--enable-libcodec2} \\\
%{?_with_cuda_nvcc:--enable-cuda-nvcc --enable-nonfree} \\\
%{?_with_cuvid:--enable-cuvid --enable-nonfree} \\\
%{!?_without_cdio:--enable-libcdio} \\\
%{?_with_ieee1394:--enable-libdc1394 --enable-libiec61883} \\\
--enable-libdrm \\\
%{?_with_dvddemuxer:--enable-libdvdnav --enable-libdvdread} \\\
%{?_with_faac:--enable-libfaac --enable-nonfree} \\\
%{?_with_fdk_aac:--enable-libfdk-aac --enable-nonfree} \\\
%{?_with_flite:--enable-libflite} \\\
%{!?_without_jack:--enable-libjack} \\\
%{!?_without_jxl:--enable-libjxl} \\\
--enable-libfreetype \\\
%{!?_without_fribidi:--enable-libfribidi} \\\
%{?_with_gme:--enable-libgme} \\\
--enable-libgsm \\\
--enable-libharfbuzz \\\
%{?_with_ilbc:--enable-libilbc} \\\
%{!?_without_lensfun:--enable-liblensfun} \\\
%{?_with_libnpp:--enable-libnpp --enable-nonfree} \\\
--enable-libmp3lame \\\
--enable-libmysofa \\\
%{?_with_netcdf:--enable-netcdf} \\\
%{?_with_mmal:--enable-mmal} \\\
%{!?_without_nvenc:--enable-nvenc} \\\
%{?_with_omx:--enable-omx} \\\
%{?_with_omx_rpi:--enable-omx-rpi} \\\
%{!?_without_openal:--enable-openal} \\\
%{!?_without_opencl:--enable-opencl} \\\
%{?_with_opencv:--enable-libopencv} \\\
%{!?_without_opengl:--enable-opengl} \\\
%{?_with_openh264:--enable-libopenh264} \\\
--enable-libopenjpeg \\\
--enable-libopenmpt \\\
%{!?_without_opus:--enable-libopus} \\\
%{!?_without_pulse:--enable-libpulse} \\\
%{?_with_placebo:--enable-libplacebo} \\\
--enable-librsvg \\\
%{?_with_rav1e:--enable-librav1e} \\\
%{?_with_rtmp:--enable-librtmp} \\\
%{!?_without_rubberband:--enable-librubberband} \\\
--enable-libqrencode \\\
%{?_with_smb:--enable-libsmbclient --enable-version3} \\\
%{?_with_snappy:--enable-libsnappy} \\\
--enable-libsoxr \\\
--enable-libspeex \\\
--enable-libsrt \\\
--enable-libssh \\\
%{?_with_svtav1:--enable-libsvtav1} \\\
%{?_with_tesseract:--enable-libtesseract} \\\
--enable-libtheora \\\
%{?_with_twolame:--enable-libtwolame} \\\
--enable-libvorbis \\\
--enable-libv4l2 \\\
%{!?_without_vidstab:--enable-libvidstab} \\\
%{?_with_vmaf:--enable-libvmaf --enable-version3} \\\
%{?_with_vapoursynth:--enable-vapoursynth} \\\
%{!?_without_vpx:--enable-libvpx} \\\
%{!?_without_vulkan:--enable-vulkan --enable-libshaderc} \\\
%{?_with_webp:--enable-libwebp} \\\
%{!?_without_x264:--enable-libx264} \\\
%{!?_without_x265:--enable-libx265} \\\
%{!?_without_xvid:--enable-libxvid} \\\
--enable-libxml2 \\\
%{!?_without_zimg:--enable-libzimg} \\\
%{?_with_zmq:--enable-libzmq} \\\
%{!?_without_zvbi:--enable-libzvbi} \\\
%{!?_without_lv2:--enable-lv2} \\\
--enable-avfilter \\\
--enable-libmodplug \\\
--enable-postproc \\\
--enable-pthreads \\\
--disable-static \\\
--enable-shared \\\
%{!?_without_gpl:--enable-gpl} \\\
--disable-debug \\\
--disable-stripping
%prep
%if 0%{?date}
%autosetup -p1 -n ffmpeg-%{?branch}%{date}
echo "git-snapshot-%{?branch}%{date}-rpmfusion" > VERSION
%else
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1 -n ffmpeg-%{version}
%endif
# fix -O3 -g in host_cflags
sed -i "s|check_host_cflags -O3|check_host_cflags %{optflags}|" configure
mkdir -p _doc/examples
cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%build
%{?_with_cuda:export PATH=${PATH}:%{_cuda_bindir}}
%{ff_configure}\
--shlibdir=%{_libdir} \
%if 0%{?_without_tools:1}
--disable-doc \
--disable-ffmpeg --disable-ffplay --disable-ffprobe \
%endif
%ifnarch %{ix86}
--enable-lto \
%endif
%ifarch %{ix86}
--cpu=%{_target_cpu} \
%endif
%{?_with_mfx:--enable-libmfx} \
%{?_with_vpl:--enable-libvpl} \
%ifarch %{ix86} x86_64 %{power64}
--enable-runtime-cpudetect \
%endif
%ifarch %{power64}
%ifarch ppc64
--cpu=g5 \
%endif
%ifarch ppc64p7
--cpu=power7 \
%endif
%ifarch ppc64le
--cpu=power8 \
%endif
--enable-pic \
%endif
%ifarch %{arm}
--disable-runtime-cpudetect --arch=arm \
%ifarch armv6hl
--cpu=armv6 \
%endif
%ifarch armv7hl armv7hnl
--cpu=armv7-a \
--enable-vfpv3 \
--enable-thumb \
%endif
%ifarch armv7hl
--disable-neon \
%endif
%ifarch armv7hnl
--enable-neon \
%endif
%endif
|| cat ffbuild/config.log
%make_build V=1
make documentation V=1
make alltools V=1
%install
%make_install V=1
%if 0%{!?flavor:1}
rm -r %{buildroot}%{_datadir}/%{name}/examples
%endif
%if 0%{!?progs_suffix:1}
install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%endif
%if %{with libavcodec_freeworld}
# Install the libavcodec freeworld counterpart
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
mkdir -p %{buildroot}%{_libdir}/%{name}
echo -e "%{_libdir}/%{name}\n" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf
cp -pa %{buildroot}%{_libdir}/libavcodec.so.* \
%{buildroot}%{_libdir}/%{name}
%endif
%ldconfig_scriptlets libs
%ldconfig_scriptlets -n libavdevice%{?flavor}
%if 0%{!?_without_tools:1}
%files
%{_bindir}/ffmpeg%{?progs_suffix}
%{_bindir}/ffplay%{?progs_suffix}
%{_bindir}/ffprobe%{?progs_suffix}
%{!?progs_suffix:%{_bindir}/qt-faststart}
%{!?flavor:
%{_mandir}/man1/ffmpeg*.1*
%{_mandir}/man1/ffplay*.1*
%{_mandir}/man1/ffprobe*.1*
}
%{_datadir}/%{name}
%endif
%files libs
%doc CREDITS README.md
%license COPYING.*
%{_libdir}/lib*.so.*
%exclude %{_libdir}/libavdevice%{?build_suffix}.so.*
%{!?flavor:%{_mandir}/man3/lib*.3.*
%exclude %{_mandir}/man3/libavdevice.3*
}
%files -n libavdevice%{?flavor}
%{_libdir}/libavdevice%{?build_suffix}.so.*
%{!?flavor:%{_mandir}/man3/libavdevice.3*}
%files devel
%doc MAINTAINERS doc/APIchanges doc/*.txt
%doc _doc/examples
%doc %{_docdir}/%{name}/*.{css,html}
%{_includedir}/%{name}
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so
%if %{with libavcodec_freeworld}
%files -n libavcodec-freeworld
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf
%{_libdir}/%{name}/libavcodec.so.*
%endif
%changelog
* Sat Nov 23 2024 Leigh Scott <[email protected]> - 7.0.2-6
- Rebuild for new x265
* Sun Nov 17 2024 Dominik Mierzejewski <[email protected]> - 7.0.2-5
- Rebuild for tesseract-5.5
* Wed Oct 09 2024 Leigh Scott <[email protected]> - 7.0.2-4
- Disable DVD demuxer due to undefined symbols in libavformat
* Mon Oct 07 2024 Nicolas Chauvet <[email protected]> - 7.0.2-3
- Sync with fedora deps:
Enable Kernel Labs VANC processing and ARIB text/caption decoding
* Fri Sep 20 2024 Leigh Scott <[email protected]> - 7.0.2-2
- Rebuild
* Sun Aug 04 2024 Leigh Scott <[email protected]> - 7.0.2-1
- Update to 7.0.2
* Thu Aug 01 2024 RPM Fusion Release Engineering <[email protected]> - 7.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri May 31 2024 Robert-André Mauchin <[email protected]> - 7.0.1-2
- Rebuild for svt-av1 2.1.0
* Sun May 26 2024 Leigh Scott <[email protected]> - 7.0.1-1
- Update to 7.0.1
* Fri Apr 19 2024 Leigh Scott <[email protected]> - 7.0-1
- Update to 7.0
* Sat Apr 06 2024 Leigh Scott <[email protected]> - 6.1.1-8
- Rebuild for new x265 version
* Fri Mar 22 2024 Sérgio Basto <[email protected]> - 6.1.1-7
- Rebuild for jpegxl (libjxl) 0.10.2
* Tue Mar 12 2024 Dominik Mierzejewski <[email protected]> - 6.1.1-6
- Enable drawtext filter (requires libharfbuzz, rfbz#6889)
* Thu Feb 01 2024 Leigh Scott <[email protected]> - 6.1.1-5
- rebuilt
* Thu Feb 01 2024 Leigh Scott <[email protected]> - 6.1.1-4
- Switch to noopenh264-devel for f39+
* Tue Jan 16 2024 Nicolas Chauvet <[email protected]> - 6.1.1-3
- Rebuilt for libavcodec-freeworld
* Sun Jan 14 2024 Leigh Scott <[email protected]> - 6.1.1-2
- rebuilt
* Mon Jan 01 2024 Leigh Scott <[email protected]> - 6.1.1-1
- Update to 6.1.1 release
* Wed Nov 15 2023 Nicolas Chauvet <[email protected]> - 6.1-3
- Bump
* Wed Nov 15 2023 Leigh Scott <[email protected]> - 6.1-2
- Add patch to fix fedora ffmpeg brokenABI change
* Sat Nov 11 2023 Leigh Scott <[email protected]> - 6.1-1
- Update to 6.1 release
* Fri Nov 10 2023 Leigh Scott <[email protected]> - 6.0.1-1
- Update to 6.0.1 release
* Sun Oct 08 2023 Dominik Mierzejewski <[email protected]> - 6.0-18
- Backport upstream patch to fix segfault when passing non-existent filter
option (rfbz#6773)
* Fri Sep 29 2023 Nicolas Chauvet <[email protected]> - 6.0-17
- Rebuild for libplacebo
- Backport upstream patch to fix assembly with binutils 2.41 - rathann
* Fri Jul 28 2023 Nicolas Chauvet <[email protected]> - 6.0-16
- rebuilt
* Sun Jul 16 2023 Leigh Scott <[email protected]> - 6.0-15
- rebuilt
* Fri Jun 23 2023 Leigh Scott <[email protected]> - 6.0-14
- rebuilt
* Fri Jun 23 2023 Leigh Scott <[email protected]> - 6.0-13
- rebuilt
* Wed Jun 14 2023 Leigh Scott <[email protected]> - 6.0-12
- rebuilt
* Sun May 14 2023 Leigh Scott <[email protected]> - 6.0-11
- fedora cisco repo isn't multiarch
* Fri May 12 2023 Leigh Scott <[email protected]> - 6.0-10
- Enable openh264 for fedora
* Mon Apr 24 2023 Nicolas Chauvet <[email protected]> - 6.0-9
- Add ffmpeg-bin for deps
* Fri Apr 07 2023 Leigh Scott <[email protected]> - 6.0-8
- rebuilt
* Fri Mar 24 2023 Leigh Scott <[email protected]> - 6.0-7
- rebuilt
* Wed Mar 22 2023 Nicolas Chauvet <[email protected]> - 6.0-6
- Rebuilt
* Sat Mar 18 2023 Todd Zullinger <[email protected]> - 6.0-5
- verify upstream source signature
* Sun Mar 12 2023 Leigh Scott <[email protected]> - 6.0-4
- Rebuild against new nvcodec-headers
* Sun Mar 12 2023 Leigh Scott <[email protected]> - 6.0-3
- Enable chromaprint
- Enable svt-av1 on all arches
* Tue Feb 28 2023 Leigh Scott <[email protected]> - 6.0-2
- Disable chromaprint
* Tue Feb 21 2023 Leigh Scott <[email protected]> - 6.0-1
- Update to 6.0 release
* Sun Jan 08 2023 Leigh Scott <[email protected]> - 5.1.2-9
- Enable libplacebo (rfbz#6549)
* Fri Dec 23 2022 Nicolas Chauvet <[email protected]> - 5.1.2-8
- rebuild
* Mon Nov 21 2022 Nicolas Chauvet <[email protected]> - 5.1.2-6
- Enable libjxl
- Enable svt-av1 on el9 x86_64
* Thu Nov 17 2022 Nicolas Chauvet <[email protected]> - 5.1.2-5
- Rework el9 cases
* Mon Oct 17 2022 Leigh Scott <[email protected]> - 5.1.2-3
- Disable rtmp because of rfbz: 6441 & 2399
* Wed Sep 28 2022 Nicolas Chauvet <[email protected]> - 5.1.2-2
- Implement libavcodec-freeworld
* Sun Sep 25 2022 Leigh Scott <[email protected]> - 5.1.2-1
- Update to 5.1.2 release
* Mon Sep 05 2022 Leigh Scott <[email protected]> - 5.1.1-3
- Switch from glslang to shaderc
* Sun Sep 04 2022 Leigh Scott <[email protected]> - 5.1.1-2
- move libs to a subdirectory to allow parallel installation with ffmpeg-free
* Thu Sep 01 2022 Leigh Scott <[email protected]> - 5.1.1-1
- Update to 5.1.1 release
* Sun Aug 07 2022 RPM Fusion Release Engineering <[email protected]> - 5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Fri Jul 22 2022 Leigh Scott <[email protected]> - 5.1-1
- Update to 5.1 release
* Mon Jul 11 2022 Leigh Scott <[email protected]> - 5.0.1-10
- rebuilt
* Thu Jun 23 2022 Robert-André Mauchin <[email protected]> - 5.0.1-9
- Rebuilt for new AOM, dav1d, rav1e and svt-av1
* Fri Jun 17 2022 Nicolas Chauvet <[email protected]> - 5.0.1-8
- Rebuilt
* Sun Jun 12 2022 Sérgio Basto <[email protected]> - 5.0.1-7
- unbootstrap
* Sun Jun 12 2022 Sérgio Basto <[email protected]> - 5.0.1-6
- Mass rebuild for x264-0.164
- Bootstrap build without chromaprint
* Fri May 27 2022 Leigh Scott <[email protected]> - 5.0.1-5
- rebuilt
* Fri May 27 2022 Leigh Scott <[email protected]> - 5.0.1-4
- rebuilt
* Fri Apr 29 2022 Leigh Scott <[email protected]> - 5.0.1-3
- Fix zimg
* Tue Apr 05 2022 Leigh Scott <[email protected]> - 5.0.1-2
- Add conflicts
* Tue Apr 05 2022 Leigh Scott <[email protected]> - 5.0.1-1
- Update to 5.0.1 release
* Sun Mar 13 2022 Leigh Scott <[email protected]> - 5.0-7
- Rebuilt
* Fri Mar 11 2022 Leigh Scott <[email protected]> - 5.0-6
- Enable AMF support
* Thu Mar 03 2022 Leigh Scott <[email protected]> - 5.0-5
- Rebuild
* Sat Feb 26 2022 Leigh Scott <[email protected]> - 5.0-4
- Drop patch for chrome
* Fri Feb 11 2022 Leigh Scott <[email protected]> - 5.0-3
- Add patch for chrome
* Fri Feb 04 2022 Leigh Scott <[email protected]> - 5.0-2
- rebuilt
* Sat Jan 15 2022 Leigh Scott <[email protected]> - 5.0-1
- Update to 5.0 release
* Tue Jan 04 2022 Leigh Scott <[email protected]> - 5.0-0.1.20220104git311ea9c
- Update to 5.0-0.1.20220104git311ea9c
* Sun Dec 19 2021 Leigh Scott <[email protected]> - 4.5-0.3.20211108git45dc668
- rebuilt
* Thu Dec 16 2021 Nicolas Chauvet <[email protected]> - 4.5-0.2.20211108git45dc668
- Rebuilt
* Mon Nov 08 2021 Leigh Scott <[email protected]> - 4.5-0.1.20211108git45dc668
- Update to 4.5-0.1.20211108git45dc668
* Mon Oct 25 2021 Leigh Scott <[email protected]> - 4.4.1-1
- Update to 4.4.1 release
* Mon Aug 02 2021 RPM Fusion Release Engineering <[email protected]> - 4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 28 2021 Leigh Scott <[email protected]> - 4.4-6
- Enable libwebp support
* Sat Jul 10 2021 Sérgio Basto <[email protected]> - 4.4-5
- Mass rebuild for x264-0.163
* Sun Jun 13 2021 Leigh Scott <[email protected]> - 4.4-4
- Rebuild for aom bump
* Mon May 10 2021 Leigh Scott <[email protected]> - 4.4-3
- rebuilt
* Wed Apr 14 2021 Leigh Scott <[email protected]> - 4.4-2
- Rebuild for new x265
* Fri Apr 09 2021 Leigh Scott <[email protected]> - 4.4-1
- Update to 4.4 release
* Thu Apr 08 2021 Leigh Scott <[email protected]> - 4.4-0.8.20210408git25e794a
- Update to 4.4-0.8.20210408git25e794a
* Wed Mar 24 2021 Leigh Scott <[email protected]> - 4.4-0.7.20210323git0be265e
- rebuilt
* Tue Mar 23 2021 Leigh Scott <[email protected]> - 4.4-0.6.20210323git0be265e
- Update to 4.4-0.6.20210323git0be265e
- Switch to release/4.4 branch
* Fri Mar 12 2021 Leigh Scott <[email protected]> - 4.4-0.5.20210312git5136726
- Update to 20210312git5136726
* Thu Feb 18 2021 Leigh Scott <[email protected]> - 4.4-0.4.20210218gitc2bf1dc
- Update to 20210218gitc2bf1dc
* Wed Feb 03 2021 RPM Fusion Release Engineering <[email protected]> - 4.4-0.3.20210125gitc7016e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jan 25 2021 Leigh Scott <[email protected]> - 4.4-0.2.20210125gitc7016e3
- Update to 20210125gitc7016e3
* Thu Dec 31 2020 Leigh Scott <[email protected]> - 4.4-0.1.20201231git477dd2d
- Update to 20201231git477dd2d
* Thu Dec 24 2020 Leigh Scott <[email protected]> - 4.3.1-15
- Enable dash demuxer (rfbz#5876)
- Enable lv2 support (rfbz#5863)
* Mon Dec 14 2020 Leigh Scott <[email protected]> - 4.3.1-14
- Actually do the dav1d rebuild
* Mon Dec 14 2020 Robert-André Mauchin <[email protected]> - 4.3.1-13
- Rebuild for dav1d SONAME bump
* Fri Nov 27 2020 Sérgio Basto <[email protected]> - 4.3.1-12
- Mass rebuild for x264-0.161
* Sat Oct 10 2020 Leigh Scott <[email protected]> - 4.3.1-11
- Revert last commit
* Sat Oct 10 2020 Leigh Scott <[email protected]> - 4.3.1-10
- Add VP9 10/12 Bit support for VDPAU
* Tue Aug 18 2020 Leigh Scott <[email protected]> - 4.3.1-9
- Disable vulkan on i686
* Mon Aug 17 2020 RPM Fusion Release Engineering <[email protected]> - 4.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Aug 16 2020 Leigh Scott <[email protected]> - 4.3.1-7
- Disable rav1e support as rust packaging is rawhide only
* Sun Aug 09 2020 Leigh Scott <[email protected]> - 4.3.1-6
- Enable LTO for x86
- Add glslang patches and bump version for build requires
- Add upstream patches to suppress asm warnings
* Mon Aug 03 2020 Leigh Scott <[email protected]> - 4.3.1-5
- Disable LTO for x86
* Mon Aug 03 2020 Leigh Scott <[email protected]> - 4.3.1-4
- Add patch to fix x86_64 LTO build issue
* Wed Jul 15 2020 Leigh Scott <[email protected]> - 4.3.1-3
- Enabled libopenmpt
* Tue Jul 14 2020 Leigh Scott <[email protected]> - 4.3.1-2
- Enable libmysofa
* Sat Jul 11 2020 Leigh Scott <[email protected]> - 4.3.1-1
- Update to 4.3.1 release
* Wed Jul 08 2020 Leigh Scott <[email protected]> - 4.3-5
- Rebuilt
* Tue Jul 07 2020 Sérgio Basto <[email protected]> - 4.3-4
- Mass rebuild for x264
* Wed Jul 01 2020 Leigh Scott <[email protected]> - 4.3-3
- Rebuilt
* Wed Jun 24 2020 Leigh Scott <[email protected]> - 4.3-2
- Enable vapoursynth
* Mon Jun 15 2020 Leigh Scott <[email protected]> - 4.3-1
- Update to 4.3 release
* Sat Jun 06 2020 Leigh Scott <[email protected]> - 4.3-0.23.20200606git
- Update to 20200606git
* Sun May 31 2020 Leigh Scott <[email protected]> - 4.3-0.22.20200531git
- Update to 20200531git
* Mon May 25 2020 Leigh Scott <[email protected]> - 4.3-0.21.20200524git
- Enable lensfun
* Sun May 24 2020 Leigh Scott <[email protected]> - 4.3-0.20.20200524git
- Rebuild for dav1d SONAME bump
* Sat May 23 2020 Leigh Scott <[email protected]> - 4.3-0.19.20200523git
- Update to 20200523git
* Sat May 16 2020 Leigh Scott <[email protected]> - 4.3-0.18.20200516git
- Update to 20200516git
* Fri May 08 2020 Leigh Scott <[email protected]> - 4.3-0.17.20200508git
- Update to 20200508git
* Fri May 01 2020 Leigh Scott <[email protected]> - 4.3-0.16.20200501git
- Update to 20200501git
* Thu Apr 23 2020 Leigh Scott <[email protected]> - 4.3-0.15.20200423git
- Update to 20200423git
- Enable nvdec for aarch64
* Sun Apr 19 2020 Leigh Scott <[email protected]> - 4.3-0.14.20200419git
- Update to 20200419git
* Sun Apr 12 2020 Leigh Scott <[email protected]> - 4.3-0.13.20200412git
- Update to 20200412git
* Wed Apr 08 2020 Nicolas Chauvet <[email protected]> - 4.3-0.12.20200401git
- Enable srt
* Wed Apr 01 2020 Leigh Scott <[email protected]> - 4.3-0.11.20200401git
- Update snapshot, fixes rfbz#5537
* Wed Apr 01 2020 leigh123linux <[email protected]> - 4.3-0.10.20200401git
- Update to 20200401git
* Sat Mar 21 2020 Leigh Scott <[email protected]> - 4.3-0.9.20200321git
- Update to 20200321git
* Fri Mar 13 2020 leigh123linux <[email protected]> - 4.3-0.8.20200313git
- Update to 20200313git
* Wed Mar 11 2020 Leigh Scott <[email protected]> - 4.3-0.7.20200305git
- Rebuilt for i686
* Mon Mar 09 2020 leigh123linux <[email protected]> - 4.3-0.6.20200305git
- Enable rav1e support
* Thu Mar 05 2020 Leigh Scott <[email protected]> - 4.3-0.5.20200305git
- Update to 20200305git
* Tue Feb 25 2020 Leigh Scott <[email protected]> - 4.3-0.4.20200225git
- Update to 20200225git
* Sun Feb 23 2020 Leigh Scott <[email protected]> - 4.3-0.3.20200222git
- Rebuild for x265
* Sun Feb 23 2020 Leigh Scott <[email protected]> - 4.3-0.2.20200222git
- Enable vulkan support
* Sat Feb 22 2020 Leigh Scott <[email protected]> - 4.3-0.1.20200222git
- Update to 20200222git
* Tue Feb 04 2020 RPM Fusion Release Engineering <[email protected]> - 4.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 01 2020 Leigh Scott <[email protected]> - 4.2.2-1
- Update to 4.2.2 release
* Tue Dec 17 2019 Sérgio Monteiro Basto <[email protected]> - 4.2.1-5
- Mass rebuild for x264
* Thu Nov 28 2019 Leigh Scott <[email protected]> - 4.2.1-4
- Rebuilt for x265
* Thu Oct 24 2019 Leigh Scott <[email protected]> - 4.2.1-3
- Rebuild for dav1d SONAME bump
* Sat Sep 07 2019 Leigh Scott <[email protected]> - 4.2.1-2
- Enable libjack (rfbz #5346)
* Sat Sep 07 2019 Leigh Scott <[email protected]> - 4.2.1-1
- Update to 4.2.1 release
* Mon Aug 26 2019 Leigh Scott <[email protected]> - 4.2-4
- Rebuild for el8
* Tue Aug 20 2019 Leigh Scott <[email protected]> - 4.2-3
- Rebuild for dav1d and aom SONAME bump
- Drop XvMC support (rfbz #5328)
* Fri Aug 09 2019 RPM Fusion Release Engineering <[email protected]> - 4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Aug 05 2019 Leigh Scott <[email protected]> - 4.2-1
- Update to 4.2 release
- Enable dav1d support
* Sat Jul 27 2019 Nicolas Chauvet <[email protected]> - 4.1.4-2
- Add patch for set_default_priority
* Tue Jul 09 2019 Leigh Scott <[email protected]> - 4.1.4-1
- Update to 4.1.4 release
* Fri Jun 28 2019 Nicolas Chauvet <[email protected]> - 4.1.3-3
- Rebuilt for x265
* Sat Apr 06 2019 Nicolas Chauvet <[email protected]> - 4.1.3-2
- Backport avutil/mem: Fix invalid use of av_alloc_size - rfbz#5149
* Mon Apr 01 2019 Leigh Scott <[email protected]> - 4.1.3-1
- Update to 4.1.3 release