forked from pool/cargo-audit
Accepting request 963116 from devel:languages:rust
OBS-URL: https://build.opensuse.org/request/show/963116 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cargo-audit?expand=0&rev=8
This commit is contained in:
commit
c54381d3a6
@ -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
|
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
|
Source1: vendor.tar.xz
|
||||||
Source2: cargo_config
|
Source2: cargo_config
|
||||||
|
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: pkgconfig(libgit2)
|
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
ExcludeArch: s390 s390x ppc ppc64 ppc64le %ix86
|
ExclusiveArch: %{rust_tier1_arches}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database.
|
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}
|
%setup -qa1 -n %{workspace_name}-%{version}
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
cp %{SOURCE2} .cargo/config
|
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
|
%build
|
||||||
export RUSTFLAGS="%{rustflags}"
|
%{cargo_build}
|
||||||
cargo build --offline --release
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||||
|
Loading…
Reference in New Issue
Block a user