automatic version update by autodist [release 5.0-1mamba;Mon Jan 24 2022]

This commit is contained in:
Automatic Build System 2024-01-05 22:15:23 +01:00
parent e8f24e8336
commit a2c5c0ef57

View File

@ -1,14 +1,10 @@
%define enable_gpl 1 %define enable_gpl 1
%define enable_non_free 1 %define enable_non_free 1
#% define buildyear %(echo %{version} | cut -b 7-10)
#% define buildmonth %(echo %{version} | cut -b 11-12)
#% define buildday %(echo %{version} | cut -b 13-14)
%define buildver %{version} %define buildver %{version}
#% define buildver export-%{buildyear}-%{buildmonth}-%{buildday}
Name: ffmpeg Name: ffmpeg
Epoch: 1 Epoch: 1
Version: 4.4.1 Version: 5.0
Release: 1mamba Release: 1mamba
Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
Group: System/Libraries Group: System/Libraries
@ -17,10 +13,6 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://ffmpeg.org/ URL: https://ffmpeg.org/
Source: http://ffmpeg.mplayerhq.hu/releases/ffmpeg-%{version}.tar.bz2 Source: http://ffmpeg.mplayerhq.hu/releases/ffmpeg-%{version}.tar.bz2
#Source: http://ffmpeg.mplayerhq.hu/releases/ffmpeg-export-snapshot.tar.bz2
# Source now taken from exported snapshot
# Source chekout from SVN:
# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && find ffmpeg -name .svn | xargs rm -rf && tar cjvf ffmpeg-`date '+%Y%m%d'`svn.tar.bz2 ffmpeg
Patch1: %{name}-0.4.9-pic.patch Patch1: %{name}-0.4.9-pic.patch
Patch2: %{name}-20080820svn-libx264.patch Patch2: %{name}-20080820svn-libx264.patch
Patch3: %{name}-0.5-x264.patch Patch3: %{name}-0.5-x264.patch
@ -76,8 +68,8 @@ BuildRequires: ldconfig
BuildRequires: tetex >= 3.0 BuildRequires: tetex >= 3.0
BuildRequires: libass-devel BuildRequires: libass-devel
BuildRequires: libenca-devel BuildRequires: libenca-devel
Obsoletes: libffmpeg Obsoletes: libffmpeg < 1:5.0
Obsoletes: libav Obsoletes: libav < 1:5.0
%description %description
FFmpeg is a very fast video and audio converter. FFmpeg is a very fast video and audio converter.
@ -105,9 +97,9 @@ Preset configuration files used by libavcodec.
Summary: ffmpeg video scaling library Summary: ffmpeg video scaling library
Group: System/Libraries Group: System/Libraries
Provides: libswscale Provides: libswscale
Obsoletes: libswscale Obsoletes: libswscale < 1:5.0
Obsoletes: libswscale-ffmpeg1 Obsoletes: libswscale-ffmpeg1 < 1:5.0
Obsoletes: libswscale-libav Obsoletes: libswscale-libav < 1:5.0
%description -n libswscale-ffmpeg %description -n libswscale-ffmpeg
ffmpeg video scaling library. ffmpeg video scaling library.
@ -117,20 +109,19 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libswscale-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libswscale-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libswscale-devel Provides: libswscale-devel
Obsoletes: libswscale-devel Obsoletes: libswscale-devel < 1:5.0
Obsoletes: libswscale-libav-devel Obsoletes: libswscale-libav-devel < 1:5.0
%description -n libswscale-ffmpeg-devel %description -n libswscale-ffmpeg-devel
ffmpeg video scaling library. ffmpeg video scaling library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale
%package -n libswresample-ffmpeg %package -n libswresample-ffmpeg
Summary: ffmpeg resampling library Summary: ffmpeg resampling library
Group: System/Libraries Group: System/Libraries
Provides: libswresample Provides: libswresample
Obsoletes: libswresample-ffmpeg1 Obsoletes: libswresample-ffmpeg1 < 1:5.0
Obsoletes: libswresample-libav Obsoletes: libswresample-libav < 1:5.0
%description -n libswresample-ffmpeg %description -n libswresample-ffmpeg
ffmpeg resampling library. ffmpeg resampling library.
@ -140,11 +131,10 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libswresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libswresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libresample-devel Provides: libresample-devel
Obsoletes: libswresample-libav-devel Obsoletes: libswresample-libav-devel < 1:5.0
%description -n libswresample-ffmpeg-devel %description -n libswresample-ffmpeg-devel
ffmpeg resampling library. ffmpeg resampling library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale
%package -n libavcodec-ffmpeg %package -n libavcodec-ffmpeg
@ -153,7 +143,7 @@ Group: System/Libraries
Requires: ffmpegpresets Requires: ffmpegpresets
Provides: libavcodec Provides: libavcodec
Obsoletes: libavcodec Obsoletes: libavcodec
Obsoletes: libavcodec-libav Obsoletes: libavcodec-libav < 1:5.0
%description -n libavcodec-ffmpeg %description -n libavcodec-ffmpeg
ffmpeg library implementing various Audio/Video codecs. ffmpeg library implementing various Audio/Video codecs.
@ -163,8 +153,8 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libavcodec-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavcodec-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libavcodec-devel Provides: libavcodec-devel
Obsoletes: libavcodec-devel Obsoletes: libavcodec-devel < 1:5.0
Obsoletes: libavcodec-libav-devel Obsoletes: libavcodec-libav-devel < 1:5.0
%description -n libavcodec-ffmpeg-devel %description -n libavcodec-ffmpeg-devel
ffmpeg library implementing various Audio/Video codecs. ffmpeg library implementing various Audio/Video codecs.
@ -174,8 +164,8 @@ This package contains the header files and static libraries needed to compile ap
Summary: ffmpeg device handling library Summary: ffmpeg device handling library
Group: System/Libraries Group: System/Libraries
Provides: libavdevice Provides: libavdevice
Obsoletes: libavdevice Obsoletes: libavdevice < 1:5.0
Obsoletes: libavdevice-libav-devel Obsoletes: libavdevice-libav-devel < 1:5.0
%description -n libavdevice-ffmpeg %description -n libavdevice-ffmpeg
ffmpeg device handling library. ffmpeg device handling library.
@ -185,20 +175,19 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libavdevice-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavdevice-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libavdevice-devel Provides: libavdevice-devel
Obsoletes: libavdevice-devel Obsoletes: libavdevice-devel < 1:5.0
Obsoletes: libavdevice-libav-devel Obsoletes: libavdevice-libav-devel < 1:5.0
%description -n libavdevice-ffmpeg-devel %description -n libavdevice-ffmpeg-devel
ffmpeg device handling library. ffmpeg device handling library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libavdevice. This package contains the header files and static libraries needed to compile applications or shared objects that use libavdevice.
%package -n libavfilter-ffmpeg %package -n libavfilter-ffmpeg
Summary: ffmpeg filtering library Summary: ffmpeg filtering library
Group: System/Libraries Group: System/Libraries
Provides: libavfilter Provides: libavfilter
Obsoletes: libavfilter Obsoletes: libavfilter < 1:5.0
Obsoletes: libavfilter-libav Obsoletes: libavfilter-libav < 1:5.0
%description -n libavfilter-ffmpeg %description -n libavfilter-ffmpeg
ffmpeg filtering library. ffmpeg filtering library.
@ -208,20 +197,19 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libavfilter-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavfilter-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libavfilter-devel Provides: libavfilter-devel
Obsoletes: libavfilter-devel Obsoletes: libavfilter-devel < 1:5.0
Obsoletes: libavfilter-libav-devel Obsoletes: libavfilter-libav-devel < 1:5.0
%description -n libavfilter-ffmpeg-devel %description -n libavfilter-ffmpeg-devel
ffmpeg filtering library. ffmpeg filtering library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat
%package -n libavformat-ffmpeg %package -n libavformat-ffmpeg
Summary: ffmpeg format library Summary: ffmpeg format library
Group: System/Libraries Group: System/Libraries
Provides: libavformat Provides: libavformat
Obsoletes: libavformat Obsoletes: libavformat < 1:5.0
Obsoletes: libavformat-libav Obsoletes: libavformat-libav < 1:5.0
%description -n libavformat-ffmpeg %description -n libavformat-ffmpeg
ffmpeg format library. ffmpeg format library.
@ -231,20 +219,19 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libavformat-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavformat-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libavformat-devel Provides: libavformat-devel
Obsoletes: libavformat-devel Obsoletes: libavformat-devel < 1:5.0
Obsoletes: libavformat-libav-devel Obsoletes: libavformat-libav-devel < 1:5.0
%description -n libavformat-ffmpeg-devel %description -n libavformat-ffmpeg-devel
ffmpeg format library. ffmpeg format library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat
%package -n libavutil-ffmpeg %package -n libavutil-ffmpeg
Summary: Shared library part of ffmpeg Summary: Shared library part of ffmpeg
Group: System/Libraries Group: System/Libraries
Provides: libavutil Provides: libavutil
Obsoletes: libavutil Obsoletes: libavutil < 1:5.0
Obsoletes: libavutil-libav Obsoletes: libavutil-libav < 1:5.0
%description -n libavutil-ffmpeg %description -n libavutil-ffmpeg
Shared library part of ffmpeg Shared library part of ffmpeg
@ -254,26 +241,24 @@ Summary: Shared header files and static libraries part of ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libavutil-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavutil-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libavutil-devel Provides: libavutil-devel
Obsoletes: libavutil-devel Obsoletes: libavutil-devel < 1:5.0
Obsoletes: libavutil-libav-devel Obsoletes: libavutil-libav-devel < 1:5.0
%description -n libavutil-ffmpeg-devel %description -n libavutil-ffmpeg-devel
This is the common utility library from the ffmpeg project. This is the common utility library from the ffmpeg project.
It is required by all other ffmpeg libraries. It is required by all other ffmpeg libraries.
This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil
%package -n libpostproc-ffmpeg %package -n libpostproc-ffmpeg
Summary: Video postprocessing library from ffmpeg Summary: Video postprocessing library from ffmpeg
Group: System/Libraries Group: System/Libraries
Provides: libpostproc Provides: libpostproc
Obsoletes: libpostproc Obsoletes: libpostproc < 1:5.0
Obsoletes: libpostproc-ffmpeg1 Obsoletes: libpostproc-ffmpeg1 < 1:5.0
Obsoletes: libpostproc-libav Obsoletes: libpostproc-libav < 1:5.0
%description -n libpostproc-ffmpeg %description -n libpostproc-ffmpeg
FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source. FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source.
This package contains only ffmpeg's postproc post-processing library which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs. This package contains only ffmpeg's postproc post-processing library which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs.
%package -n libpostproc-ffmpeg-devel %package -n libpostproc-ffmpeg-devel
@ -281,18 +266,17 @@ Summary: Video postprocessing library from ffmpeg
Group: Development/Libraries Group: Development/Libraries
Requires: libpostproc-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libpostproc-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Provides: libpostproc-devel Provides: libpostproc-devel
Obsoletes: libpostproc-devel Obsoletes: libpostproc-devel < 1:5.0
Obsoletes: libpostproc-libav-devel Obsoletes: libpostproc-libav-devel < 1:5.0
%description -n libpostproc-ffmpeg-devel %description -n libpostproc-ffmpeg-devel
FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source. FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source.
This package contains only ffmpeg's postproc post-processing headers and static libraries which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs. This package contains only ffmpeg's postproc post-processing headers and static libraries which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs.
%package -n libavresample-ffmpeg %package -n libavresample-ffmpeg
Summary: ffmpeg resample library Summary: ffmpeg resample library
Group: System/Libraries Group: System/Libraries
Obsoletes: libavresample-libav Obsoletes: libavresample-libav < 1:5.0
%description -n libavresample-ffmpeg %description -n libavresample-ffmpeg
FFmpeg resample library. FFmpeg resample library.
@ -301,11 +285,10 @@ FFmpeg resample library.
Summary: Shared header files and static libraries part of ffmpeg libavresample Summary: Shared header files and static libraries part of ffmpeg libavresample
Group: System/Libraries Group: System/Libraries
Requires: libavresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release} Requires: libavresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: libavresample-libav-devel Obsoletes: libavresample-libav-devel < 1:5.0
%description -n libavresample-ffmpeg-devel %description -n libavresample-ffmpeg-devel
FFmpeg resample library. FFmpeg resample library.
This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil
%package devel %package devel
@ -319,7 +302,7 @@ Requires: libavutil-ffmpeg-devel
Requires: libpostproc-ffmpeg-devel Requires: libpostproc-ffmpeg-devel
Requires: libswscale-ffmpeg-devel Requires: libswscale-ffmpeg-devel
Requires: libswresample-ffmpeg-devel Requires: libswresample-ffmpeg-devel
Obsoletes: libav-devel Obsoletes: libav-devel < 1:5.0
%description devel %description devel
This is a virtual package that contains the dependencies necessary for installing all the FFmpeg development packages. This is a virtual package that contains the dependencies necessary for installing all the FFmpeg development packages.
@ -350,7 +333,6 @@ export CFLAGS="%{optflags} -fno-unit-at-a-time -D__LINUX_USER__"
--enable-libopenjpeg \ --enable-libopenjpeg \
--enable-libspeex \ --enable-libspeex \
--enable-swscale \ --enable-swscale \
--enable-avresample \
--enable-libass \ --enable-libass \
--enable-libbluray \ --enable-libbluray \
--enable-libfreetype \ --enable-libfreetype \
@ -380,35 +362,8 @@ export CFLAGS="%{optflags} -fno-unit-at-a-time -D__LINUX_USER__"
%if %enable_non_free %if %enable_non_free
--enable-nonfree \ --enable-nonfree \
%endif %endif
%endif %endif
# --enable-libx264 \
# --enable-dxva2 \
# --enable-libschroedinger \
# --enable-x11grab \
# --enable-libfaac \
# --enable-libx265 \
# --enable-libfaad \
# --enable-avfilter-lavf \
# --enable-libfaadbin \
# --cpu=%{_target_cpu} \
# --enable-swscale \
## --incdir="%{_includedir}/ffmpeg" \
# FIXME:
# software scaler enabled no
# Sun medialib support no
# AVISynth enabled no
# liba52 dlopened no
# enable non free (libamrnb, libamrwb) License: unredistributable
# libamr-nb support no
# libamr-wb support no
# libgsm enabled no
# libnut enabled no
%make %make
%install %install
@ -416,42 +371,11 @@ export CFLAGS="%{optflags} -fno-unit-at-a-time -D__LINUX_USER__"
%makeinstall \ %makeinstall \
shlibdir="%{buildroot}%{_libdir}" \ shlibdir="%{buildroot}%{_libdir}" \
libdir="%{buildroot}%{_libdir}" libdir="%{buildroot}%{_libdir}"
#\
# incdir="%{buildroot}%{_includedir}/ffmpeg" \
# shlibdir="%{buildroot}%{_libdir}" \
# libdir="%{buildroot}%{_libdir}"
# Remove unwanted files from the included docs
#%{__cp} -a doc _docs
#%{__rm} -rf _docs/{Makefile,*.texi,*.pl}
# make installlib is broken, so we do it by hand
#install -m 644 libavcodec/libavcodec.a %{buildroot}%{_libdir}
#install -m 644 libavformat/libavformat.a %{buildroot}%{_libdir}
# create compat symlink # create compat symlink
install -d %{buildroot}%{_libdir}/libavcodec install -d %{buildroot}%{_libdir}/libavcodec
ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
#install -d %{buildroot}%{_includedir}/ffmpeg
#cp -a %{buildroot}%{_includedir}/libavcodec/*.h \
# %{buildroot}%{_includedir}/libavdevice/*.h \
# %{buildroot}%{_includedir}/libavformat/*.h \
# %{buildroot}%{_includedir}/libavutil/*.h \
# %{buildroot}%{_includedir}/libswscale/*.h \
# %{buildroot}%{_includedir}/ffmpeg
#install -d %{buildroot}%{_includedir}/postproc
#cp -a %{buildroot}%{_includedir}/libpostproc/*.h \
# %{buildroot}%{_includedir}/postproc
# The <postproc/postprocess.h> is now at <ffmpeg/postprocess.h>, so provide
# a compatibility symlink
#%{__mkdir_p} %{buildroot}%{_includedir}/postproc/
#%{__mkdir_p} %{buildroot}%{_includedir}/libswscale/
#%{__ln_s} ../ffmpeg/postprocess.h \
# %{buildroot}%{_includedir}/postproc/postprocess.h
#%{__ln_s} ../ffmpeg/rgb2rgb.h\
# %{buildroot}%{_includedir}/libswscale/rgb2rgb.h
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -575,18 +499,18 @@ ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
%{_libdir}/pkgconfig/libavformat.pc %{_libdir}/pkgconfig/libavformat.pc
%{_mandir}/man3/libavformat.3.gz %{_mandir}/man3/libavformat.3.gz
%files -n libavresample-ffmpeg #%files -n libavresample-ffmpeg
%defattr(-,root,root) #%defattr(-,root,root)
%{_libdir}/libavresample.so.* #%{_libdir}/libavresample.so.*
%files -n libavresample-ffmpeg-devel #%files -n libavresample-ffmpeg-devel
%defattr(-,root,root) #%defattr(-,root,root)
%dir %{_includedir}/libavresample #%dir %{_includedir}/libavresample
%{_includedir}/libavresample/avresample.h #%{_includedir}/libavresample/avresample.h
%{_includedir}/libavresample/version.h #%{_includedir}/libavresample/version.h
%{_libdir}/libavresample.a #%{_libdir}/libavresample.a
%{_libdir}/libavresample.so #%{_libdir}/libavresample.so
%{_libdir}/pkgconfig/libavresample.pc #%{_libdir}/pkgconfig/libavresample.pc
%files -n libavutil-ffmpeg %files -n libavutil-ffmpeg
%defattr(-,root,root) %defattr(-,root,root)
@ -647,6 +571,9 @@ ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
%{_docdir}/ffmpeg/* %{_docdir}/ffmpeg/*
%changelog %changelog
* Mon Jan 24 2022 Automatic Build System <autodist@mambasoft.it> 5.0-1mamba
- automatic version update by autodist
* Mon Oct 25 2021 Automatic Build System <autodist@mambasoft.it> 4.4.1-1mamba * Mon Oct 25 2021 Automatic Build System <autodist@mambasoft.it> 4.4.1-1mamba
- automatic version update by autodist - automatic version update by autodist