LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ffmpeg.spec of Package ffmpeg (Project home:SocMinarch:ffmpeg)

Name: ffmpeg
Version: 4.0.2
Release: 0
Summary: Complete, cross-platform solution to record, convert and stream audio and video
License: LGPL-2.1+
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: https://ffmpeg.org/
Source0: %name-%version.tar.xz
Source1: %name-%version.tar.xz.asc
BuildRequires: pkgconfig pkgconfig(zlib)
%if 0%{?el7}%{?fedora}%{?mageia}%{?suse_version}
%ifarch %ix86 || x86_64
BuildRequires: nasm
%endif
%endif
%if 0%{?fedora}%{?mageia}
BuildRequires: pkgconfig(sdl2)
%endif
%if 0%{?suse_version}
%if 0%{?is_opensuse}
BuildRequires: pkgconfig(sdl2)
%endif
%endif

%description
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package doc
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description doc
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%if 0%{?fedora}%{?mageia}
%package -n ffplay
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n ffplay
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.
%endif

%if 0%{?suse_version}
%if 0%{?is_opensuse}
%package -n ffplay
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n ffplay
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.
%endif
%endif

%package -n ffprobe
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n ffprobe
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavcodec58
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libavcodec58
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavcodec-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libavcodec-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavdevice58
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libavdevice58
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavdevice-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libavdevice-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavfilter7
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libavfilter7
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavfilter-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libavfilter-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavformat58
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libavformat58
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavformat-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libavformat-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavutil56
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libavutil56
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libavutil-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libavutil-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libswresample3
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libswresample3
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libswresample-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libswresample-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libswscale5
Summary: Complete, cross-platform solution to record, convert and stream audio and video

%description -n libswscale5
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%package -n libswscale-devel
Summary: Complete, cross-platform solution to record, convert and stream audio and video
Group: Development/Libraries/C and C++

%description -n libswscale-devel
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation.

%prep
%setup -q

%build
./configure --prefix="%_prefix" --libdir="%_libdir" --shlibdir="%_libdir" --incdir="%_includedir/ffmpeg" --docdir="%_docdir/ffmpeg" --extra-cflags="%optflags" --optflags="%optflags" \
%if 0%{?el5}%{?el6}
%ifarch %ix86 || x86_64
--disable-yasm \
%endif
%endif
--enable-pic --disable-stripping --enable-shared --disable-static --enable-runtime-cpudetect
make %{?_smp_mflags}

%install
%make_install

%post -n libavcodec58 -p /sbin/ldconfig
%postun -n libavcodec58 -p /sbin/ldconfig
%post -n libavdevice58 -p /sbin/ldconfig
%postun -n libavdevice58 -p /sbin/ldconfig
%post -n libavfilter7 -p /sbin/ldconfig
%postun -n libavfilter7 -p /sbin/ldconfig
%post -n libavformat58 -p /sbin/ldconfig
%postun -n libavformat58 -p /sbin/ldconfig
%post -n libavutil56 -p /sbin/ldconfig
%postun -n libavutil56 -p /sbin/ldconfig
%post -n libswresample3 -p /sbin/ldconfig
%postun -n libswresample3 -p /sbin/ldconfig
%post -n libswscale5 -p /sbin/ldconfig
%postun -n libswscale5 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir /%_includedir/ffmpeg
%dir /usr/share/ffmpeg
/%_bindir/ffmpeg

%files doc
%doc /%_mandir/man1/ffmpeg*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/developer.html
%doc /%_docdir/ffmpeg/faq.html
%doc /%_docdir/ffmpeg/fate.html
%doc /%_docdir/ffmpeg/ffmpeg*
%doc /%_docdir/ffmpeg/general.html
%doc /%_docdir/ffmpeg/git-howto.html
%doc /%_docdir/ffmpeg/nut.html
%doc /%_docdir/ffmpeg/platform.html
%doc /%_docdir/ffmpeg/mailing-list-faq.html
%endif
/usr/share/ffmpeg/libvpx*

%files devel
%defattr(-,root,root)
%dir /usr/share/ffmpeg
/usr/share/ffmpeg/examples

%if 0%{?fedora}%{?mageia}
%files -n ffplay
%defattr(-,root,root)
/%_bindir/ffplay
%doc /%_mandir/man1/ffplay*
%doc /%_docdir/ffmpeg/ffplay*
%endif

%if 0%{?suse_version}
%if 0%{?is_opensuse}
%files -n ffplay
%defattr(-,root,root)
/%_bindir/ffplay
%doc /%_mandir/man1/ffplay*
%endif
%endif

%files -n ffprobe
%defattr(-,root,root)
%dir /usr/share/ffmpeg
/%_bindir/ffprobe
%doc /%_mandir/man1/ffprobe*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/ffprobe*
%endif
/usr/share/ffmpeg/ffprobe.xsd

%files -n libavcodec58
%defattr(-,root,root)
/%_libdir/libavcodec.so.*

%files -n libavcodec-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libavcodec
/%_includedir/ffmpeg/libavcodec/*
/%_libdir/libavcodec.so
/%_libdir/pkgconfig/libavcodec.pc
%doc /%_mandir/man3/libavcodec.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
/%_docdir/ffmpeg/libavcodec.html
%endif

%files -n libavdevice58
%defattr(-,root,root)
/%_libdir/libavdevice.so.*

%files -n libavdevice-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libavdevice
/%_includedir/ffmpeg/libavdevice/*
/%_libdir/libavdevice.so
/%_libdir/pkgconfig/libavdevice.pc
%doc /%_mandir/man3/libavdevice.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libavdevice.html
%endif

%files -n libavfilter7
%defattr(-,root,root)
/%_libdir/libavfilter.so.*

%files -n libavfilter-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libavfilter
/%_includedir/ffmpeg/libavfilter/*
/%_libdir/libavfilter.so
/%_libdir/pkgconfig/libavfilter.pc
%doc /%_mandir/man3/libavfilter.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libavfilter.html
%endif

%files -n libavformat58
%defattr(-,root,root)
/%_libdir/libavformat.so.*

%files -n libavformat-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libavformat
/%_includedir/ffmpeg/libavformat/*
/%_libdir/libavformat.so
/%_libdir/pkgconfig/libavformat.pc
%doc /%_mandir/man3/libavformat.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libavformat.html
%endif

%files -n libavutil56
%defattr(-,root,root)
/%_libdir/libavutil.so.*

%files -n libavutil-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libavutil
/%_includedir/ffmpeg/libavutil/*
/%_libdir/libavutil.so
/%_libdir/pkgconfig/libavutil.pc
%doc /%_mandir/man3/libavutil.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libavutil.html
%endif

%files -n libswresample3
%defattr(-,root,root)
/%_libdir/libswresample.so.*

%files -n libswresample-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libswresample
/%_includedir/ffmpeg/libswresample/*
/%_libdir/libswresample.so
/%_libdir/pkgconfig/libswresample.pc
%doc /%_mandir/man3/libswresample.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libswresample.html
%endif

%files -n libswscale5
%defattr(-,root,root)
/%_libdir/libswscale.so.*

%files -n libswscale-devel
%defattr(-,root,root)
%dir /%_includedir/ffmpeg/libswscale
/%_includedir/ffmpeg/libswscale/*
/%_libdir/libswscale.so
/%_libdir/pkgconfig/libswscale.pc
%doc /%_mandir/man3/libswscale.3.*
%if 0%{?el7}%{?fedora}%{?mageia}
%doc /%_docdir/ffmpeg/libswscale.html
%endif