From 9f356717aefeb4eaf0bc70c942ced0e53a9f0eb914ba7837286b0b5b24af65a7 Mon Sep 17 00:00:00 2001 From: William Brown Date: Sun, 20 Mar 2022 04:05:07 +0000 Subject: [PATCH] Accepting request 962570 from home:firstyear:branches:devel:languages:rust - Update to use cargo-packaging OBS-URL: https://build.opensuse.org/request/show/962570 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=15 --- cargo-audit.changes | 5 +++++ cargo-audit.spec | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cargo-audit.changes b/cargo-audit.changes index 221c390..1e69caf 100644 --- a/cargo-audit.changes +++ b/cargo-audit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 18 04:46:08 UTC 2022 - William Brown + +- Update to use cargo-packaging + ------------------------------------------------------------------- Mon Mar 14 02:50:27 UTC 2022 - william.brown@suse.com diff --git a/cargo-audit.spec b/cargo-audit.spec index 56da1d1..03e25a7 100644 --- a/cargo-audit.spec +++ b/cargo-audit.spec @@ -30,10 +30,9 @@ Source0: %{workspace_name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config -BuildRequires: cargo -BuildRequires: pkgconfig(libgit2) +BuildRequires: cargo-packaging BuildRequires: pkgconfig(openssl) -ExcludeArch: s390 s390x ppc ppc64 ppc64le %ix86 +ExclusiveArch: %{rust_tier1_arches} %description Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database. @@ -43,12 +42,9 @@ Audit Cargo.lock files for crates with security vulnerabilities reported to the %setup -qa1 -n %{workspace_name}-%{version} mkdir -p .cargo cp %{SOURCE2} .cargo/config -# Remove exec bits to prevent an issue in fedora shebang checking -find vendor -type f -name \*.rs -exec chmod -x '{}' \; %build -export RUSTFLAGS="%{rustflags}" -cargo build --offline --release +%{cargo_build} %install install -D -d -m 0755 %{buildroot}%{_bindir}