2016-08-11 14:54:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package libvpx
|
|
|
|
#
|
2024-02-27 09:35:52 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-02-27 09:35:52 +01:00
|
|
|
%define sover 9
|
2016-08-11 14:54:37 +02:00
|
|
|
Name: libvpx
|
2024-02-27 09:35:52 +01:00
|
|
|
Version: 1.14.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
|
2021-04-13 19:00:14 +02:00
|
|
|
URL: https://www.webmproject.org/
|
2021-10-08 13:42:05 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2016-08-11 14:54:37 +02:00
|
|
|
Source1000: baselibs.conf
|
2021-11-24 10:05:03 +01:00
|
|
|
Patch2: libvpx-configure-add-arch.patch
|
2022-07-23 08:34:24 +02:00
|
|
|
# only needed for test suite
|
|
|
|
BuildRequires: gcc-c++
|
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
|
|
|
|
# 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
|
2021-10-08 13:42:05 +02:00
|
|
|
%autosetup -p1
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%build
|
2019-04-25 09:38:21 +02:00
|
|
|
%define _lto_cflags %{nil}
|
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
|
2022-07-23 08:34:24 +02:00
|
|
|
export CFLAGS="%{optflags} -O3"
|
|
|
|
export CXXFLAGS="%{optflags} -O3"
|
2019-02-05 09:01:56 +01:00
|
|
|
../configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2016-08-11 14:54:37 +02:00
|
|
|
--enable-unit-tests \
|
|
|
|
--enable-shared \
|
2021-10-08 13:42:05 +02:00
|
|
|
--enable-pic \
|
2016-08-11 14:54:37 +02:00
|
|
|
--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 \
|
2021-10-05 18:15:54 +02:00
|
|
|
--enable-pic \
|
2019-02-11 14:49:53 +01:00
|
|
|
%ifarch ppc64le
|
|
|
|
--disable-vsx \
|
|
|
|
%endif
|
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: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
|
|
|
|
|
2022-07-23 08:34:24 +02:00
|
|
|
%make_build 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
|
|
|
|
|
2023-02-15 08:34:32 +01:00
|
|
|
%ldconfig_scriptlets -n %{name}%{sover}
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%files -n vpx-tools
|
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
|