forked from pool/cargo-audit
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
This commit is contained in:
parent
b32c46759b
commit
9f356717ae
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 18 04:46:08 UTC 2022 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Update to use cargo-packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 14 02:50:27 UTC 2022 - william.brown@suse.com
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user