%bcond static 1 %global git_date 20250911 %global git_hash f10bab9cef %global git_ver 3.13.1 %global rel 3 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz %global sover 3 %global aom_version v%{git_ver} Name: aom Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Royalty-free next-generation video format License: BSD-3-Clause URL: https://aomedia.googlesource.com/aom Source0: %{url}/%{src_name} ##Patch0: aom-cmake-delete-static.patch BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: cmake3 BuildRequires: doxygen BuildRequires: git-core BuildRequires: perl-interpreter BuildRequires: perl(Getopt::Long) BuildRequires: python3-devel BuildRequires: yasm %ifarch x86_64 BuildRequires: pkgconfig(libvmaf) %endif Provides: av1 = %{version}-%{release} Requires: libaom%{?_isa} = %{version}-%{release} %description The Alliance for Open Media’s focus is to deliver a next-generation video format that is: - Interoperable and open; - Optimized for the Internet; - Scalable to any modern device at any bandwidth; - Designed with a low computational footprint and optimized for hardware; - Capable of consistent, highest-quality, real-time video delivery; and - Flexible for both commercial and non-commercial content, including user-generated content. This package contains the reference encoder and decoder. %package -n libaom Summary: Library files for aom %description -n libaom Library files for aom, the royalty-free next-generation video format. %package -n libaom-devel Summary: Development files for aom Requires: libaom%{?_isa} = %{version}-%{release} %description -n libaom-devel Development files for aom, the royalty-free next-generation video format. %if %{with static} %package -n libaom-static Summary: Static library files for aom Requires: libaom%{?_isa} = %{version}-%{release} %description -n libaom-static Static library files for aom, the royalty-free next-generation video format. %endif %prep %autosetup -p1 -n %{name} # Set GIT revision in version sed -i 's@set(aom_version "")@set(aom_version "%{aom_version}")@' build/cmake/version.cmake # Disable PDF generation which is buggy sed -i "s@GENERATE_LATEX = YES@GENERATE_LATEX = NO@" libs.doxy_template %build %ifarch %{arm} %global optflags %{__global_compiler_flags} -march=armv7-a -mfpu=neon -mtune=cortex-a8 -mabi=aapcs-linux -mfloat-abi=hard %endif %cmake3 -DENABLE_CCACHE=1 \ -DCMAKE_SKIP_RPATH=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCONFIG_WEBM_IO=1 \ -DENABLE_DOCS=1 \ -DENABLE_TESTS=0 \ -DCONFIG_ANALYZER=0 \ -DCONFIG_SHARED_LIBS=1 \ %ifarch x86_64 -DCONFIG_TUNE_VMAF=1 \ %endif %{nil} %cmake3_build %install %cmake3_install %if 0%{without static} rm -rvf %{buildroot}%{_libdir}/libaom*.a %endif %files %doc AUTHORS CHANGELOG README.md %license LICENSE PATENTS %{_bindir}/aomdec %{_bindir}/aomenc %files -n libaom %license LICENSE PATENTS %{_libdir}/libaom.so.%{sover}* %files -n libaom-devel %doc %{_vpath_builddir}/docs/html/ %{_includedir}/%{name} %{_libdir}/libaom.so %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/cmake/AOM/AOM*.cmake %if %{with static} %files -n libaom-static %{_libdir}/libaom*.a %endif %changelog %autochangelog