File rav1d.spec of Package rav1d
#
# spec file for package rav1d
#
# Copyright (c) 2024 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/
#
Name: rav1d
Version: v1.1.0
Release: 0
Summary: AV1 decoder in Rust
License: BSD-2-Clause
URL: https://github.com/memorysafety/rav1d
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
%if 0%{?suse_version} > 1500
BuildRequires: cargo
%else
BuildRequires: cargo1.80
%endif
# This contains rpm macros to assist with building
BuildRequires: cargo-packaging
BuildRequires: nasm
# Disable this line if you wish to support all platforms.
# In most situations, you will likely only target tier1 arches for user facing components.
ExclusiveArch: %{rust_tier1_arches}
%description
Port of the dav1d AV1 decoder to Rust.
%prep
%autosetup -p1 -a1
%build
%{cargo_build}
%install
# manual process, this can place binaries in other directories like sbindin
install -D -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/dav1d %{buildroot}%{_bindir}/%{name}
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%changelog