1 Summary: The fastest and safest AV1 encoder
2 Summary(pl.UTF-8): Najszybszy i najbezpieczniejszy koder AV1
8 #Source0Download: https://github.com/xiph/rav1e/releases
9 Source0: https://github.com/xiph/rav1e/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: e9c3c833c33bcf1bbafbdf1dcc170e10
11 # cd %{name}-%{version}
14 # tar cJf rav1e-crates-%{version}.tar.xz %{name}-%{version}/{vendor,Cargo.lock}
15 Source1: %{name}-crates-%{version}.tar.xz
16 # Source1-md5: cb04c9255da1a4b5caca116652a7781e
17 URL: https://github.com/xiph/rav1e
19 BuildRequires: cargo-c
25 #BuildRequires: aom-devel
26 #BuildRequires: dav1d-devel
27 ExclusiveArch: %{ix86} %{x8664} x32 aarch64
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define target_opt --target x86_64-unknown-linux-gnux32
33 %define target_opt %{nil}
37 rav1e is an AV1 video encoder. It is designed to eventually cover all
38 use cases, though in its current form it is most suitable for cases
39 where libaom (the reference encoder) is too slow.
41 %description -l pl.UTF-8
42 rav1e to koder obrazu AV1. Jest projektowany, aby ewentualnie pokrywać
43 wszystkie przypadki użycia, ale w obecnej postaci nadaje się najlepiej
44 tam, gdzie libaom (koder referencyjny) jest zbyt wolny.
47 Summary: Shared rav1e library
48 Summary(pl.UTF-8): Biblioteka współdzielona rav1e
54 %description libs -l pl.UTF-8
55 Biblioteka współdzielona rav1e.
58 Summary: Header files for rav1e library
59 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rav1e
60 Group: Development/Libraries
61 Requires: %{name}-libs = %{version}-%{release}
64 Header files for rav1e library.
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe biblioteki rav1e.
70 Summary: Static rav1e library
71 Summary(pl.UTF-8): Statyczna biblioteka rav1e
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{version}-%{release}
78 %description static -l pl.UTF-8
79 Statyczna biblioteka rav1e.
84 # use our offline registry
85 export CARGO_HOME="$(pwd)/.cargo"
87 mkdir -p "$CARGO_HOME"
88 cat >.cargo/config <<EOF
90 replace-with = 'vendored-sources'
92 [source.vendored-sources]
93 directory = '$PWD/vendor'
97 export CARGO_HOME="$(pwd)/.cargo"
99 cargo -v build --release --frozen %{target_opt}
101 cargo -v cbuild --release --frozen %{target_opt}
104 rm -rf $RPM_BUILD_ROOT
106 cargo -v install --frozen --path %{target_opt} . --root $RPM_BUILD_ROOT%{_prefix}
108 cargo -v cinstall --frozen --release %{target_opt} \
109 --destdir $RPM_BUILD_ROOT \
110 --prefix %{_prefix} \
111 --bindir %{_bindir} \
112 --includedir %{_includedir} \
115 %{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates*
118 rm -rf $RPM_BUILD_ROOT
120 %post libs -p /sbin/ldconfig
121 %postun libs -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc LICENSE PATENTS README.md
126 %attr(755,root,root) %{_bindir}/rav1e
129 %defattr(644,root,root,755)
130 %doc LICENSE PATENTS README.md doc/GLOSSARY.md
131 %attr(755,root,root) %{_libdir}/librav1e.so.*.*.*
132 %attr(755,root,root) %ghost %{_libdir}/librav1e.so.0
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/librav1e.so
138 %{_pkgconfigdir}/rav1e.pc
141 %defattr(644,root,root,755)
142 %{_libdir}/librav1e.a