diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-02-02 08:37:16 -0800 |
---|---|---|
committer | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-12-11 15:16:13 +0100 |
commit | a8a8d24e619ce5cf668d39078c048cd7144ff558 (patch) | |
tree | a421f9e9c0d14660b4bb844fc382f2872556549e | |
parent | 2e88f2f2ec777259bda1714e72f1ecd2519bceb5 (diff) | |
download | libvpx-a8a8d24e619ce5cf668d39078c048cd7144ff558.tar.gz libvpx-a8a8d24e619ce5cf668d39078c048cd7144ff558.tar.bz2 libvpx-a8a8d24e619ce5cf668d39078c048cd7144ff558.zip |
packaging: Initial packaging for Tizen
Change-Id: Ieff03d3eedf096445cc674e1fdda496d685f75ba
-rw-r--r-- | packaging/libvpx.spec | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/packaging/libvpx.spec b/packaging/libvpx.spec new file mode 100644 index 000000000..3d7c0ed70 --- /dev/null +++ b/packaging/libvpx.spec @@ -0,0 +1,95 @@ +Name: libvpx +Version: 1.1.0 +Release: 0 +%define patchlevel %{nil} +License: BSD-3-Clause ; GPL-2.0+ +Summary: VP8 codec library +Url: http://www.webmproject.org/ +Group: Productivity/Multimedia/Other +Source0: http://webm.googlecode.com/files/%{name}-v%{version}%{patchlevel}.tar.bz2 +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 +License: BSD-3-Clause ; GPL-2.0+ +Summary: VP8 codec library - Utilities +Group: Productivity/Multimedia/Other + +%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 +License: BSD-3-Clause ; GPL-2.0+ +Summary: VP8 codec library - Development headers +Group: Development/Languages/C and C++ +Requires: %{name} = %{version} + +%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%patchlevel + +%build +cd build +export CFLAGS="%{optflags}" +# 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 +%defattr(-,root,root) +%{_bindir}/* + +%files +%defattr(-, root, root) +%license LICENSE +%{_libdir}/libvpx.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/vpx/ +%{_libdir}/pkgconfig/vpx.pc +%{_libdir}/libvpx.so |