]> git.pld-linux.org Git - packages/rav1e.git/commitdiff
- no features flags for cargo-c
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 25 Apr 2021 18:38:02 +0000 (20:38 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 25 Apr 2021 18:38:02 +0000 (20:38 +0200)
rav1e.spec

index fb98ecbe04884ac0ffb49214aa012b9afdc0261f..c114a4077f917349fd7f5aac7c7db7e9b3ae45d0 100644 (file)
@@ -28,9 +28,11 @@ ExclusiveArch:       %{ix86} %{x8664} x32 aarch64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %ifarch        x32
-%define                target_opt      --target x86_64-unknown-linux-gnux32 --no-default-features --features "binaries signal_support"
+%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
@@ -96,14 +98,16 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -v build --release --frozen %{target_opt}
+cargo -v build --release --frozen %{target_opt} %{features}
 
 cargo -v cbuild --release --frozen %{target_opt}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-cargo -v install --frozen --path %{target_opt} . --root $RPM_BUILD_ROOT%{_prefix}
+cargo -v install --frozen %{target_opt} %{features} \
+       --path . \
+       --root $RPM_BUILD_ROOT%{_prefix}
 
 cargo -v cinstall --frozen --release %{target_opt} \
        --destdir $RPM_BUILD_ROOT \
This page took 0.193874 seconds and 4 git commands to generate.