# # Conditional build: %bcond_without clib # C library # no working cargo-c on x32 currently %ifarch x32 %undefine with_clib %endif Summary: The fastest and safest AV1 encoder Summary(pl.UTF-8): Najszybszy i najbezpieczniejszy koder AV1 Name: rav1e Version: 0.4.1 Release: 1 License: BSD Group: Libraries #Source0Download: https://github.com/xiph/rav1e/releases Source0: https://github.com/xiph/rav1e/archive/v%{version}/%{name}-%{version}.tar.gz # Source0-md5: e9c3c833c33bcf1bbafbdf1dcc170e10 # cd %{name}-%{version} # cargo vendor # cd .. # tar cJf rav1e-crates-%{version}.tar.xz %{name}-%{version}/{vendor,Cargo.lock} Source1: %{name}-crates-%{version}.tar.xz # Source1-md5: cb04c9255da1a4b5caca116652a7781e URL: https://github.com/xiph/rav1e BuildRequires: cargo %{?with_clib:BuildRequires: cargo-c} %ifarch %{x8664} BuildRequires: nasm %endif BuildRequires: rust # for tests only? #BuildRequires: aom-devel #BuildRequires: dav1d-devel ExclusiveArch: %{ix86} %{x8664} x32 aarch64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %ifarch x32 %define target_opt --target x86_64-unknown-linux-gnux32 %define features --no-default-features --features "binaries signal_support" %else %define target_opt %{nil} %define features %{nil} %endif %description rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow. %description -l pl.UTF-8 rav1e to koder obrazu AV1. Jest projektowany, aby ewentualnie pokrywać wszystkie przypadki użycia, ale w obecnej postaci nadaje się najlepiej tam, gdzie libaom (koder referencyjny) jest zbyt wolny. %package libs Summary: Shared rav1e library Summary(pl.UTF-8): Biblioteka współdzielona rav1e Group: Libraries %description libs Shared rav1e library. %description libs -l pl.UTF-8 Biblioteka współdzielona rav1e. %package devel Summary: Header files for rav1e library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rav1e Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel Header files for rav1e library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki rav1e. %package static Summary: Static rav1e library Summary(pl.UTF-8): Statyczna biblioteka rav1e Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static rav1e library. %description static -l pl.UTF-8 Statyczna biblioteka rav1e. %prep %setup -q -b1 # use our offline registry export CARGO_HOME="$(pwd)/.cargo" mkdir -p "$CARGO_HOME" cat >.cargo/config <