# # spec file for package libaom # # Copyright (c) 2020 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define sover 2 %define __builder ninja %define __builddir _build Name: libaom Version: 2.0.0 Release: 1.3 Summary: AV1 codec library License: BSD-2-Clause Group: Productivity/Multimedia/Other URL: https://aomedia.googlesource.com/aom/ Source0: %{name}-%{version}.tar.xz Source99: baselibs.conf Patch0: libaom-0001-Do-not-disable-_FORTIFY_SOURCE.patch BuildRequires: c++_compiler BuildRequires: cmake BuildRequires: doxygen BuildRequires: graphviz BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: yasm %description This is a library for AOMedia Video 1 (AV1), an open, royalty-free video coding format designed for video transmissions over the Internet. %package -n %{name}%{sover} Summary: AV1 codec library Group: System/Libraries %description -n %{name}%{sover} This is a library for AOMedia Video 1 (AV1), an open, royalty-free video coding format designed for video transmissions over the Internet. %package devel Summary: Development files for libaom, an AV1 codec library Group: Development/Languages/C and C++ Requires: %{name}%{sover} = %{version} %description devel This package contains the development headers and library files for libaom, a library for the AOMedia Video 1 (AV1) video coding format. %package devel-doc Summary: Documentation for the libaom API Group: Documentation/HTML Requires: %{name}-devel = %{version} BuildArch: noarch %description devel-doc This package contains the API documentation for libaom, a library for the AOMedia Video 1 (AV1) video coding format. %package -n aom-tools Summary: AV1 Codec Library Tools Group: Productivity/Multimedia/Other %description -n aom-tools This package contains tools included with libaom, a library for the AOMedia Video 1 (AV1) video coding format. %prep %setup -q %autopatch -p1 %build %cmake \ -DCONFIG_LOWBITDEPTH=1 \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ %ifnarch aarch64 %{arm} %{ix86} x86_64 -DAOM_TARGET_CPU=generic \ %endif %ifarch %{arm} -DAOM_TARGET_CPU=arm \ %endif %ifarch aarch64 -DAOM_TARGET_CPU=arm64 \ %endif %ifarch %{ix86} -DAOM_TARGET_CPU=x86 \ %endif %ifarch x86_64 -DAOM_TARGET_CPU=x86_64 \ %endif %{nil} %make_jobs %install %cmake_install rm %{buildroot}%{_libdir}/%{name}.a %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} %license LICENSE PATENTS %doc AUTHORS CHANGELOG %{_libdir}/%{name}.so.* %files devel %{_includedir}/aom %{_libdir}/%{name}.so %{_libdir}/pkgconfig/aom.pc %files devel-doc %doc %{__builddir}/docs/html/* %files -n aom-tools %{_bindir}/aomdec %{_bindir}/aomenc %changelog * Tue May 19 2020 daniel.molkentin@suse.com - Update to version 2.0.0 "Applejack": This is the first official release of libaom. It has real-time mode and SVC support, as well as substantial documentation improvement and clean-ups. Important changes: * Decouple library version and so version. * Move functions into a header file * Remove av1_ prefix from static functions * Remove aom_ prefix from static functions * Remove aom_ prefix for static functions * Remove av1_ prefix for a static function - Drop libaom-0002-link-threading-lib-with-shared-library.patch and libaom-0003-update-CHANGELOG.patch * Tue Jul 31 2018 9+suse@cirno.systems - Enable CONFIG_LOWBITDEPTH. Makes 8-bit decoding faster. The only reason this confusingly-named option is not enabled by default is that its behavior might not match the 16-bit reference code path, and that hardware vendors want to be able to validate their designs against it. No actual mismatches have been found. See https://bugs.chromium.org/p/aomedia/issues/detail?id=2062 * Mon Jul 30 2018 bjorn.lie@gmail.com - Pass conditional AOM_TARGET_CPU to cmake, fix build for arm and ppc, as well as optimize target cpu for other arches. * Fri Jul 27 2018 9+suse@cirno.systems - Init, v1.0.0