%global sover 0 # Use commit with updated changelog for correct versioning %global commit d0076f507a6027455540e2e4f25f84ca38803e07 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapshotdate 20180925 %global prerelease 1 Name: aom Version: 1.0.0 Release: 7.%{?prerelease:%{snapshotdate}git%{shortcommit}}%{?dist} Summary: Royalty-free next-generation video format License: BSD URL: http://aomedia.org/ # We want to keep the git data for versioning aom.pc correctly # so we can't download the archive directly from the repo. Source0: %{name}-%{shortcommit}.tar.gz Source1: makesrc.sh # https://bugs.chromium.org/p/aomedia/issues/detail?id=2161 Patch0: 0001-Add-symbol-exports-needed-by-examples-analyzer-and-e.patch BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: cmake3 BuildRequires: doxygen BuildRequires: git-core BuildRequires: graphviz BuildRequires: perl-interpreter BuildRequires: perl(Getopt::Long) BuildRequires: wxGTK3-devel BuildRequires: yasm 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 extra-tools Summary: Extra tools for aom Requires: aom%{?_isa} = %{version}-%{release} %description extra-tools This package contains the aom analyzer. %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. %prep %autosetup -p1 -n %{name}-%{commit} %build mkdir _build && cd _build %cmake3 ../ -DENABLE_CCACHE=1 \ -DCMAKE_SKIP_RPATH=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %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 -DCONFIG_WEBM_IO=1 \ -DENABLE_DOCS=1 \ -DCONFIG_ANALYZER=1 \ -DCONFIG_LOWBITDEPTH=1 %make_build %install cd _build %make_install install -pm 0755 examples/analyzer %{buildroot}%{_bindir}/aomanalyzer %ldconfig_scriptlets %files %doc AUTHORS CHANGELOG README.md %license LICENSE PATENTS %{_bindir}/aomdec %{_bindir}/aomenc %files extra-tools %{_bindir}/aomanalyzer %files -n libaom %license LICENSE PATENTS %{_libdir}/libaom.so.%{sover} %files -n libaom-devel %doc _build/docs/html/ %{_includedir}/%{name} %{_libdir}/libaom.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Wed Jul 24 2019 Fedora Release Engineering - 1.0.0-7.20180925gitd0076f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.0.0-6.20180925gitd0076f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Sep 25 2018 Robert-André Mauchin - 1.0.0-5.20180925gitd0076f5 - Update to commit d0076f507a6027455540e2e4f25f84ca38803e07 - Set CONFIG_LOWBITDEPTH to 1 - Fix #1632658 * Thu Sep 13 2018 Robert-André Mauchin - 1.0.0-4 - Split the package into libs/tools * Tue Sep 11 2018 Robert-André Mauchin - 1.0.0-3 - Update the archive in order to detect the correct version from the changelog * Thu Jul 12 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 07 2018 Robert-André Mauchin - 1.0.0-1 - First RPM release