From: Jeongmo Yang Date: Thu, 16 May 2024 09:04:16 +0000 (+0900) Subject: Merge branch 'upstream/venetian' into tizen_7.0 X-Git-Tag: accepted/tizen/7.0/unified/20240521.012539~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F311223%2F3;p=platform%2Fupstream%2Flibvpx.git Merge branch 'upstream/venetian' into tizen_7.0 Bump up to v1.14.0 Change-Id: I18c73c21882f3a1810c34fa9e19a7d5b9b8b21a4 Signed-off-by: Jeongmo Yang --- 7d29430d67a69c156750deb2d3c87d7f8b3cd78a diff --cc packaging/libvpx.spec index ab03151,0000000..9e5d170 mode 100644,000000..100644 --- a/packaging/libvpx.spec +++ b/packaging/libvpx.spec @@@ -1,101 -1,0 +1,101 @@@ +Name: libvpx - Version: 1.10.0 - Release: 2 ++Version: 1.14.0 ++Release: 0 +License: BSD-3-Clause +Summary: VP8 codec library +Url: http://www.webmproject.org/ +#X-Vc-Url: https://chromium.googlesource.com/webm/libvpx +Group: Multimedia/Libraries +Source0: http://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2 +Source1001: libvpx.manifest +BuildRequires: yasm + +%description +WebM is an open, royalty-free, media file format designed for the web. + +WebM defines the file container structure, video and audio formats. +WebM files consist of video streams compressed with the VP8 video codec +and audio streams compressed with the Vorbis audio codec. +The WebM file structure is based on the Matroska container. + +%package -n vpx-tools +Summary: VP8 codec library - Utilities + +%description -n vpx-tools +This package contains utilities around the vp8 codec sdk. + +WebM is an open, royalty-free, media file format designed for the web. + +WebM defines the file container structure, video and audio formats. +WebM files consist of video streams compressed with the VP8 video codec +and audio streams compressed with the Vorbis audio codec. +The WebM file structure is based on the Matroska container. +%package devel +Summary: VP8 codec library - Development headers +Requires: %{name} = %{version}-%{release} + +%description devel +Development headers and library + +WebM is an open, royalty-free, media file format designed for the web. + +WebM defines the file container structure, video and audio formats. +WebM files consist of video streams compressed with the VP8 video codec +and audio streams compressed with the Vorbis audio codec. +The WebM file structure is based on the Matroska container. + +%prep +%setup -q -n %name-v%version +cp %{SOURCE1001} . + +%build +cd build +export CFLAGS="%{optflags}" +export LDFLAGS+=" -Wl,-z,relro" +%if "%{asan}" == "1" +export LDFLAGS+=" -lasan" +%endif +# It is only an emulation of autotools configure; the macro does not work + +# libvpx default enable NEON support on ARMv7, unfortunately some ARMv7 +# CPU doesn't have NEON, e.g. NVIDIA Tegra 2. +# So, we still set -mfpu=neon when build libvpx rpm, but also enable +# runtime-cpu-detect for runtime detect NEON. +../configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --enable-debug \ + --enable-shared \ +%ifarch armv7l armv7hl + --target=armv7-linux-gcc \ + --enable-runtime-cpu-detect \ +%endif + --enable-pic + +%__make %{?_smp_mflags} + +%install +cd build +%make_install + +%post -n %{name} -p /sbin/ldconfig + +%postun -n %{name} -p /sbin/ldconfig + +%files -n vpx-tools +%manifest %{name}.manifest +%defattr(-,root,root) +%{_bindir}/* + +%files +%manifest %{name}.manifest +%defattr(-, root, root) +%license LICENSE +%{_libdir}/libvpx.so.* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_includedir}/vpx/ +%{_libdir}/pkgconfig/vpx.pc +%{_libdir}/libvpx.so