2016-08-11 14:54:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package libvpx
|
|
|
|
#
|
2019-02-05 08:39:31 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-08-11 14:54:37 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-05 08:39:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-11 14:54:37 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-03-06 17:39:30 +01:00
|
|
|
%define sover 5
|
2016-08-11 14:54:37 +02:00
|
|
|
Name: libvpx
|
2019-02-05 08:43:07 +01:00
|
|
|
Version: 1.8.0
|
2016-08-11 14:54:37 +02:00
|
|
|
Release: 0
|
2017-01-01 15:51:17 +01:00
|
|
|
Summary: VP8/VP9 codec library
|
2018-03-02 14:40:00 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2016-08-11 14:54:37 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Url: http://www.webmproject.org/
|
2018-03-06 17:39:30 +01:00
|
|
|
Source0: libvpx-%{version}.tar.xz
|
2016-08-11 14:54:37 +02:00
|
|
|
Source1000: baselibs.conf
|
|
|
|
Patch1: libvpx-define-config_pic.patch
|
|
|
|
Patch2: libvpx-configure-add-s390.patch
|
|
|
|
Patch4: libvpx-armv7-use-hard-float.patch
|
2017-03-08 12:29:23 +01:00
|
|
|
# Needed to be able to create pkgconfig() provides.
|
2016-09-09 17:21:15 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-08-11 14:54:37 +02:00
|
|
|
BuildRequires: yasm
|
2018-01-18 11:30:09 +01:00
|
|
|
|
|
|
|
# only needed for test suite
|
|
|
|
BuildRequires: gcc-c++
|
2016-08-11 14:54:37 +02:00
|
|
|
# add curl and do not copy it in to get an updated test-data.sha1 file
|
|
|
|
#BuildRequires: curl
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%description
|
2016-08-11 14:54:37 +02:00
|
|
|
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
|
2017-01-01 15:51:17 +01:00
|
|
|
Summary: Utilies from the VP8/VP9 codec library
|
2018-03-02 14:40:00 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2016-08-11 14:54:37 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
%description -n vpx-tools
|
|
|
|
This package contains utilities around the vp8 codec sdk.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
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.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-13 18:16:48 +02:00
|
|
|
%package -n %{name}%{sover}
|
2017-01-01 15:51:17 +01:00
|
|
|
Summary: VP8/VP9 codec library
|
2016-08-11 14:54:37 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Libraries
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-13 18:16:48 +02:00
|
|
|
%description -n %{name}%{sover}
|
2016-08-11 14:54:37 +02:00
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
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.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
%package devel
|
2017-01-01 15:51:17 +01:00
|
|
|
Summary: Development files for libvpx, a VP8/VP9 codec library
|
2018-03-02 14:40:00 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2016-08-11 14:54:37 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2016-08-13 18:16:48 +02:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
%description devel
|
|
|
|
Development headers and library
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
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.
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%prep
|
2016-08-11 14:54:37 +02:00
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch4 -p1
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%build
|
2016-08-11 14:54:37 +02:00
|
|
|
%if 0%{?suse_version} < 1310
|
|
|
|
sed -i~ /ssse3/d configure
|
|
|
|
sed -i~ 's@ssse3@@' build/make/rtcd.pl
|
|
|
|
%endif
|
|
|
|
cd build
|
|
|
|
# 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-unit-tests \
|
|
|
|
--enable-debug \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
2016-09-09 17:21:15 +02:00
|
|
|
--enable-vp8 \
|
|
|
|
--enable-vp9 \
|
2018-03-02 14:40:00 +01:00
|
|
|
--enable-vp9-highbitdepth \
|
2016-09-09 17:21:15 +02:00
|
|
|
--enable-postproc \
|
|
|
|
--enable-multithread \
|
2019-02-05 08:39:31 +01:00
|
|
|
--enable-spatial-svc \
|
2016-08-11 14:54:37 +02:00
|
|
|
%ifarch armv5tel armv5el
|
|
|
|
--target=armv5te-linux-gcc \
|
|
|
|
%endif
|
|
|
|
%ifarch armv7l armv7hl
|
|
|
|
--target=armv7-linux-gcc \
|
|
|
|
--enable-runtime-cpu-detect \
|
|
|
|
%endif
|
2018-03-06 17:53:24 +01:00
|
|
|
--extra-cflags="-std=gnu99 -U_FORTIFY_SOURCE %{optflags}" \
|
2016-08-11 14:54:37 +02:00
|
|
|
--extra-cxxflags="-U_FORTIFY_SOURCE %{optflags}" \
|
2017-08-31 08:33:37 +02:00
|
|
|
--enable-pic
|
2017-08-31 08:26:51 +02:00
|
|
|
# size-limit to avoid CVE-2017-0641 DoS attacks. The limit is the
|
|
|
|
# 8K Fulldome resolution and should be enough for all current use cases
|
|
|
|
# bso#1056539
|
2017-08-31 08:33:37 +02:00
|
|
|
# the --size-limit switch is broken atm ...
|
|
|
|
echo '#define DECODE_WIDTH_LIMIT 8192' >> vpx_config.h
|
|
|
|
echo '#define DECODE_HEIGHT_LIMIT 8192' >> vpx_config.h
|
|
|
|
|
2016-09-09 17:21:15 +02:00
|
|
|
make %{?_smp_mflags} verbose=yes GEN_EXAMPLES=
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%install
|
2016-08-11 14:54:37 +02:00
|
|
|
cd build
|
2016-09-09 17:21:15 +02:00
|
|
|
make %{?_smp_mflags} verbose=yes GEN_EXAMPLES= DESTDIR=%{buildroot} install
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2018-01-18 11:30:09 +01:00
|
|
|
%check
|
|
|
|
# needs network to download >400MB data
|
|
|
|
# make test
|
|
|
|
|
2016-08-13 18:16:48 +02:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%files -n vpx-tools
|
|
|
|
%defattr(-,root,root)
|
2016-08-11 14:54:37 +02:00
|
|
|
%{_bindir}/*
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-13 18:16:48 +02:00
|
|
|
%files -n %{name}%{sover}
|
2019-02-05 08:40:26 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS README CHANGELOG
|
2016-08-11 14:54:37 +02:00
|
|
|
%{_libdir}/libvpx.so.*
|
2010-09-13 13:28:33 +02:00
|
|
|
|
2016-08-11 14:54:37 +02:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/vpx/
|
|
|
|
%{_libdir}/pkgconfig/vpx.pc
|
|
|
|
%{_libdir}/libvpx.so
|
|
|
|
|
|
|
|
%changelog
|