automatic version update by autodist [release 5.0-1mamba;Mon Jan 24 2022]
This commit is contained in:
parent
e8f24e8336
commit
a2c5c0ef57
177
ffmpeg.spec
177
ffmpeg.spec
@ -1,14 +1,10 @@
|
||||
%define enable_gpl 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 export-%{buildyear}-%{buildmonth}-%{buildday}
|
||||
|
||||
Name: ffmpeg
|
||||
Epoch: 1
|
||||
Version: 4.4.1
|
||||
Version: 5.0
|
||||
Release: 1mamba
|
||||
Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
|
||||
Group: System/Libraries
|
||||
@ -17,10 +13,6 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://ffmpeg.org/
|
||||
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
|
||||
Patch2: %{name}-20080820svn-libx264.patch
|
||||
Patch3: %{name}-0.5-x264.patch
|
||||
@ -76,8 +68,8 @@ BuildRequires: ldconfig
|
||||
BuildRequires: tetex >= 3.0
|
||||
BuildRequires: libass-devel
|
||||
BuildRequires: libenca-devel
|
||||
Obsoletes: libffmpeg
|
||||
Obsoletes: libav
|
||||
Obsoletes: libffmpeg < 1:5.0
|
||||
Obsoletes: libav < 1:5.0
|
||||
|
||||
%description
|
||||
FFmpeg is a very fast video and audio converter.
|
||||
@ -105,9 +97,9 @@ Preset configuration files used by libavcodec.
|
||||
Summary: ffmpeg video scaling library
|
||||
Group: System/Libraries
|
||||
Provides: libswscale
|
||||
Obsoletes: libswscale
|
||||
Obsoletes: libswscale-ffmpeg1
|
||||
Obsoletes: libswscale-libav
|
||||
Obsoletes: libswscale < 1:5.0
|
||||
Obsoletes: libswscale-ffmpeg1 < 1:5.0
|
||||
Obsoletes: libswscale-libav < 1:5.0
|
||||
|
||||
%description -n libswscale-ffmpeg
|
||||
ffmpeg video scaling library.
|
||||
@ -117,20 +109,19 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libswscale-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libswscale-devel
|
||||
Obsoletes: libswscale-devel
|
||||
Obsoletes: libswscale-libav-devel
|
||||
Obsoletes: libswscale-devel < 1:5.0
|
||||
Obsoletes: libswscale-libav-devel < 1:5.0
|
||||
|
||||
%description -n libswscale-ffmpeg-devel
|
||||
ffmpeg video scaling library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale
|
||||
|
||||
%package -n libswresample-ffmpeg
|
||||
Summary: ffmpeg resampling library
|
||||
Group: System/Libraries
|
||||
Provides: libswresample
|
||||
Obsoletes: libswresample-ffmpeg1
|
||||
Obsoletes: libswresample-libav
|
||||
Obsoletes: libswresample-ffmpeg1 < 1:5.0
|
||||
Obsoletes: libswresample-libav < 1:5.0
|
||||
|
||||
%description -n libswresample-ffmpeg
|
||||
ffmpeg resampling library.
|
||||
@ -140,11 +131,10 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libswresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libresample-devel
|
||||
Obsoletes: libswresample-libav-devel
|
||||
Obsoletes: libswresample-libav-devel < 1:5.0
|
||||
|
||||
%description -n libswresample-ffmpeg-devel
|
||||
ffmpeg resampling library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale
|
||||
|
||||
%package -n libavcodec-ffmpeg
|
||||
@ -153,7 +143,7 @@ Group: System/Libraries
|
||||
Requires: ffmpegpresets
|
||||
Provides: libavcodec
|
||||
Obsoletes: libavcodec
|
||||
Obsoletes: libavcodec-libav
|
||||
Obsoletes: libavcodec-libav < 1:5.0
|
||||
|
||||
%description -n libavcodec-ffmpeg
|
||||
ffmpeg library implementing various Audio/Video codecs.
|
||||
@ -163,8 +153,8 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libavcodec-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libavcodec-devel
|
||||
Obsoletes: libavcodec-devel
|
||||
Obsoletes: libavcodec-libav-devel
|
||||
Obsoletes: libavcodec-devel < 1:5.0
|
||||
Obsoletes: libavcodec-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavcodec-ffmpeg-devel
|
||||
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
|
||||
Group: System/Libraries
|
||||
Provides: libavdevice
|
||||
Obsoletes: libavdevice
|
||||
Obsoletes: libavdevice-libav-devel
|
||||
Obsoletes: libavdevice < 1:5.0
|
||||
Obsoletes: libavdevice-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavdevice-ffmpeg
|
||||
ffmpeg device handling library.
|
||||
@ -185,20 +175,19 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libavdevice-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libavdevice-devel
|
||||
Obsoletes: libavdevice-devel
|
||||
Obsoletes: libavdevice-libav-devel
|
||||
Obsoletes: libavdevice-devel < 1:5.0
|
||||
Obsoletes: libavdevice-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavdevice-ffmpeg-devel
|
||||
ffmpeg device handling library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libavdevice.
|
||||
|
||||
%package -n libavfilter-ffmpeg
|
||||
Summary: ffmpeg filtering library
|
||||
Group: System/Libraries
|
||||
Provides: libavfilter
|
||||
Obsoletes: libavfilter
|
||||
Obsoletes: libavfilter-libav
|
||||
Obsoletes: libavfilter < 1:5.0
|
||||
Obsoletes: libavfilter-libav < 1:5.0
|
||||
|
||||
%description -n libavfilter-ffmpeg
|
||||
ffmpeg filtering library.
|
||||
@ -208,20 +197,19 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libavfilter-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libavfilter-devel
|
||||
Obsoletes: libavfilter-devel
|
||||
Obsoletes: libavfilter-libav-devel
|
||||
Obsoletes: libavfilter-devel < 1:5.0
|
||||
Obsoletes: libavfilter-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavfilter-ffmpeg-devel
|
||||
ffmpeg filtering library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat
|
||||
|
||||
%package -n libavformat-ffmpeg
|
||||
Summary: ffmpeg format library
|
||||
Group: System/Libraries
|
||||
Provides: libavformat
|
||||
Obsoletes: libavformat
|
||||
Obsoletes: libavformat-libav
|
||||
Obsoletes: libavformat < 1:5.0
|
||||
Obsoletes: libavformat-libav < 1:5.0
|
||||
|
||||
%description -n libavformat-ffmpeg
|
||||
ffmpeg format library.
|
||||
@ -231,20 +219,19 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libavformat-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libavformat-devel
|
||||
Obsoletes: libavformat-devel
|
||||
Obsoletes: libavformat-libav-devel
|
||||
Obsoletes: libavformat-devel < 1:5.0
|
||||
Obsoletes: libavformat-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavformat-ffmpeg-devel
|
||||
ffmpeg format library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat
|
||||
|
||||
%package -n libavutil-ffmpeg
|
||||
Summary: Shared library part of ffmpeg
|
||||
Group: System/Libraries
|
||||
Provides: libavutil
|
||||
Obsoletes: libavutil
|
||||
Obsoletes: libavutil-libav
|
||||
Obsoletes: libavutil < 1:5.0
|
||||
Obsoletes: libavutil-libav < 1:5.0
|
||||
|
||||
%description -n libavutil-ffmpeg
|
||||
Shared library part of ffmpeg
|
||||
@ -254,26 +241,24 @@ Summary: Shared header files and static libraries part of ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libavutil-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libavutil-devel
|
||||
Obsoletes: libavutil-devel
|
||||
Obsoletes: libavutil-libav-devel
|
||||
Obsoletes: libavutil-devel < 1:5.0
|
||||
Obsoletes: libavutil-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavutil-ffmpeg-devel
|
||||
This is the common utility library from the ffmpeg project.
|
||||
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
|
||||
|
||||
%package -n libpostproc-ffmpeg
|
||||
Summary: Video postprocessing library from ffmpeg
|
||||
Group: System/Libraries
|
||||
Provides: libpostproc
|
||||
Obsoletes: libpostproc
|
||||
Obsoletes: libpostproc-ffmpeg1
|
||||
Obsoletes: libpostproc-libav
|
||||
Obsoletes: libpostproc < 1:5.0
|
||||
Obsoletes: libpostproc-ffmpeg1 < 1:5.0
|
||||
Obsoletes: libpostproc-libav < 1:5.0
|
||||
|
||||
%description -n libpostproc-ffmpeg
|
||||
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.
|
||||
|
||||
%package -n libpostproc-ffmpeg-devel
|
||||
@ -281,18 +266,17 @@ Summary: Video postprocessing library from ffmpeg
|
||||
Group: Development/Libraries
|
||||
Requires: libpostproc-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Provides: libpostproc-devel
|
||||
Obsoletes: libpostproc-devel
|
||||
Obsoletes: libpostproc-libav-devel
|
||||
Obsoletes: libpostproc-devel < 1:5.0
|
||||
Obsoletes: libpostproc-libav-devel < 1:5.0
|
||||
|
||||
%description -n libpostproc-ffmpeg-devel
|
||||
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.
|
||||
|
||||
%package -n libavresample-ffmpeg
|
||||
Summary: ffmpeg resample library
|
||||
Group: System/Libraries
|
||||
Obsoletes: libavresample-libav
|
||||
Obsoletes: libavresample-libav < 1:5.0
|
||||
|
||||
%description -n libavresample-ffmpeg
|
||||
FFmpeg resample library.
|
||||
@ -301,11 +285,10 @@ FFmpeg resample library.
|
||||
Summary: Shared header files and static libraries part of ffmpeg libavresample
|
||||
Group: System/Libraries
|
||||
Requires: libavresample-ffmpeg = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Obsoletes: libavresample-libav-devel
|
||||
Obsoletes: libavresample-libav-devel < 1:5.0
|
||||
|
||||
%description -n libavresample-ffmpeg-devel
|
||||
FFmpeg resample library.
|
||||
|
||||
This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil
|
||||
|
||||
%package devel
|
||||
@ -319,7 +302,7 @@ Requires: libavutil-ffmpeg-devel
|
||||
Requires: libpostproc-ffmpeg-devel
|
||||
Requires: libswscale-ffmpeg-devel
|
||||
Requires: libswresample-ffmpeg-devel
|
||||
Obsoletes: libav-devel
|
||||
Obsoletes: libav-devel < 1:5.0
|
||||
|
||||
%description devel
|
||||
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-libspeex \
|
||||
--enable-swscale \
|
||||
--enable-avresample \
|
||||
--enable-libass \
|
||||
--enable-libbluray \
|
||||
--enable-libfreetype \
|
||||
@ -380,35 +362,8 @@ export CFLAGS="%{optflags} -fno-unit-at-a-time -D__LINUX_USER__"
|
||||
%if %enable_non_free
|
||||
--enable-nonfree \
|
||||
%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
|
||||
|
||||
%install
|
||||
@ -416,42 +371,11 @@ export CFLAGS="%{optflags} -fno-unit-at-a-time -D__LINUX_USER__"
|
||||
%makeinstall \
|
||||
shlibdir="%{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
|
||||
install -d %{buildroot}%{_libdir}/libavcodec
|
||||
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
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
@ -575,18 +499,18 @@ ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
|
||||
%{_libdir}/pkgconfig/libavformat.pc
|
||||
%{_mandir}/man3/libavformat.3.gz
|
||||
|
||||
%files -n libavresample-ffmpeg
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libavresample.so.*
|
||||
#%files -n libavresample-ffmpeg
|
||||
#%defattr(-,root,root)
|
||||
#%{_libdir}/libavresample.so.*
|
||||
|
||||
%files -n libavresample-ffmpeg-devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/libavresample
|
||||
%{_includedir}/libavresample/avresample.h
|
||||
%{_includedir}/libavresample/version.h
|
||||
%{_libdir}/libavresample.a
|
||||
%{_libdir}/libavresample.so
|
||||
%{_libdir}/pkgconfig/libavresample.pc
|
||||
#%files -n libavresample-ffmpeg-devel
|
||||
#%defattr(-,root,root)
|
||||
#%dir %{_includedir}/libavresample
|
||||
#%{_includedir}/libavresample/avresample.h
|
||||
#%{_includedir}/libavresample/version.h
|
||||
#%{_libdir}/libavresample.a
|
||||
#%{_libdir}/libavresample.so
|
||||
#%{_libdir}/pkgconfig/libavresample.pc
|
||||
|
||||
%files -n libavutil-ffmpeg
|
||||
%defattr(-,root,root)
|
||||
@ -647,6 +571,9 @@ ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
|
||||
%{_docdir}/ffmpeg/*
|
||||
|
||||
%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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user