Name: libav
Summary: AV codec lib
-Version: 11.4
+Version: 12.1
Release: 0
Group: Multimedia/Libraries
URL: http://libav.org
--enable-demuxer=flac --enable-demuxer=mp3 --enable-demuxer=wav \
--enable-demuxer=h263 --enable-demuxer=mpegps --enable-demuxer=matroska \
--enable-demuxer=dv --enable-demuxer=flv --enable-demuxer=rm \
---enable-demuxer=aiff --enable-muxer=mpeg1video --enable-muxer=mpeg2video --enable-demuxer=hevc \
+--enable-demuxer=aiff --enable-demuxer=ape --enable-muxer=mpeg1video --enable-muxer=mpeg2video --enable-demuxer=hevc \
--disable-decoders \
--enable-decoder=alac --enable-decoder=h264 --enable-decoder=wmv1 \
--enable-decoder=flac --enable-decoder=mpeg4 --enable-decoder=wmv2 \
--enable-decoder=bmp --enable-encoder=bmp --enable-encoder=mpeg1video --enable-encoder=mpeg2video \
--enable-decoder=tiff \
--enable-decoder=mp3 --enable-decoder=amrnb \
---enable-encoder=aac --enable-decoder=aac \
+--enable-encoder=aac --enable-decoder=aac --enable-decoder=ape \
--enable-swscale --disable-yasm \
--enable-fft --enable-rdft --enable-mdct --enable-neon \
%{?asan:--disable-inline-asm} \
"
+
+%if "%{tizen_profile_name}" == "tv"
+export CONFIGURE_OPTIONS+="--toolchain=hardened --enable-parser=vp8 --enable-decoder=vp8 --enable-decoder=vp9 "
+%else
+%endif
+
%ifarch %{arm} aarch64
export CONFIGURE_OPTIONS+="--disable-mmx "
%else
%install
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/COPYING.LGPLv2.1 %{buildroot}/%{_datadir}/license/libavcodec
-cp -rf %{_builddir}/%{name}-%{version}/COPYING.LGPLv2.1 %{buildroot}/%{_datadir}/license/libavformat
-cp -rf %{_builddir}/%{name}-%{version}/COPYING.LGPLv2.1 %{buildroot}/%{_datadir}/license/libavutil
-cp -rf %{_builddir}/%{name}-%{version}/COPYING.LGPLv2.1 %{buildroot}/%{_datadir}/license/libavfilter
-cp -rf %{_builddir}/%{name}-%{version}/COPYING.LGPLv2.1 %{buildroot}/%{_datadir}/license/libswscale
-
%post -p /sbin/ldconfig
%manifest libavcodec.manifest
%defattr(-,root,root,-)
%{_libdir}/libavcodec.so.*
-%{_datadir}/license/libavcodec
+%license COPYING.LGPLv2.1
%post -n libavcodec -p /sbin/ldconfig
%postun -n libavcodec -p /sbin/ldconfig
%manifest libavformat.manifest
%defattr(-,root,root,-)
%{_libdir}/libavformat.so.*
-%{_datadir}/license/libavformat
+%license COPYING.LGPLv2.1
%post -n libavformat -p /sbin/ldconfig
%postun -n libavformat -p /sbin/ldconfig
%manifest libavutil.manifest
%defattr(-,root,root,-)
%{_libdir}/libavutil.so.*
-%{_datadir}/license/libavutil
+%license COPYING.LGPLv2.1
%post -n libavutil -p /sbin/ldconfig
%postun -n libavutil -p /sbin/ldconfig
%manifest libavfilter.manifest
%defattr(-,root,root,-)
%{_libdir}/libavfilter.so.*
-%{_datadir}/license/libavfilter
+%license COPYING.LGPLv2.1
%post -n libavfilter -p /sbin/ldconfig
%postun -n libavfilter -p /sbin/ldconfig
%manifest libswscale.manifest
%defattr(-,root,root,-)
%{_libdir}/libswscale.so.*
-%{_datadir}/license/libswscale
+%license COPYING.LGPLv2.1
%post -n libswscale -p /sbin/ldconfig
%postun -n libswscale -p /sbin/ldconfig