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: 4a9f8e2f9d25f516bdbec94235370edf
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: 152ace1ef7b4c31a60b659d6379da146
17 URL: https://github.com/xiph/rav1e
19 BuildRequires: cargo-c
25 #BuildRequires: aom-devel
26 #BuildRequires: dav1d-devel
27 ExclusiveArch: %{ix86} %{x8664} aarch64
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 rav1e is an AV1 video encoder. It is designed to eventually cover all
32 use cases, though in its current form it is most suitable for cases
33 where libaom (the reference encoder) is too slow.
35 %description -l pl.UTF-8
36 rav1e to koder obrazu AV1. Jest projektowany, aby ewentualnie pokrywać
37 wszystkie przypadki użycia, ale w obecnej postaci nadaje się najlepiej
38 tam, gdzie libaom (koder referencyjny) jest zbyt wolny.
41 Summary: Shared rav1e library
42 Summary(pl.UTF-8): Biblioteka współdzielona rav1e
48 %description libs -l pl.UTF-8
49 Biblioteka współdzielona rav1e.
52 Summary: Header files for rav1e library
53 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rav1e
54 Group: Development/Libraries
55 Requires: %{name}-libs = %{version}-%{release}
58 Header files for rav1e library.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki rav1e.
64 Summary: Static rav1e library
65 Summary(pl.UTF-8): Statyczna biblioteka rav1e
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
72 %description static -l pl.UTF-8
73 Statyczna biblioteka rav1e.
78 # use our offline registry
79 export CARGO_HOME="$(pwd)/.cargo"
81 mkdir -p "$CARGO_HOME"
82 cat >.cargo/config <<EOF
84 replace-with = 'vendored-sources'
86 [source.vendored-sources]
87 directory = '$PWD/vendor'
91 export CARGO_HOME="$(pwd)/.cargo"
93 cargo -v build --release --frozen
95 cargo -v cbuild --release --frozen
98 rm -rf $RPM_BUILD_ROOT
100 cargo -v install --frozen --path . --root $RPM_BUILD_ROOT%{_prefix}
102 cargo -v cinstall --frozen --release \
103 --destdir $RPM_BUILD_ROOT \
104 --prefix %{_prefix} \
105 --bindir %{_bindir} \
106 --includedir %{_includedir} \
109 %{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates*
112 rm -rf $RPM_BUILD_ROOT
114 %post libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %doc LICENSE PATENTS README.md
120 %attr(755,root,root) %{_bindir}/rav1e
123 %defattr(644,root,root,755)
124 %doc LICENSE PATENTS README.md doc/GLOSSARY.md
125 %attr(755,root,root) %{_libdir}/librav1e.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/librav1e.so.0
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/librav1e.so
132 %{_pkgconfigdir}/rav1e.pc
135 %defattr(644,root,root,755)
136 %{_libdir}/librav1e.a