forked from pool/cargo-audit
f2881816eb
- Update to version 0.15.0~git0.16c8aa4: * cargo-audit v0.15.0 (#392) * rustsec-admin v0.5.0 (#389) * README.md: 🦀🛡️📦 * rustsec v0.24.0 (#388) * OSV export (#366) * Bump semver from 1.0.1 to 1.0.3 * Bump semver from 1.0.0 to 1.0.1 (#381) * Bump git2 from 0.13.19 to 0.13.20 (#375) * Bump crates-index from 0.16.6 to 0.16.7 (#380) * cargo-lock v7.0.0 (#379) * Bump to semver 1.0.0 (#378) * rustsec-admin v0.4.3 (#374) * list-affected-versions: Also print the crate in question * Bump crates-index from 0.16.5 to 0.16.6 * Fix doc comments * Added docs * Clean up the code and commit stuff I forgot to add to git * Implement list-affected-versions subcommand, works fine with current DB * Add list-affected-versions subcommand stub * Clarify error message * Update the crates.io index if not up to date * Drop ureq dependency * cargo fmt * Better error reporting * Initial untested attempt to get rid of crates.io API querying completely * Comment, thanks Alex * cargo fmt * Fix crates.io API interaction * Ditched crates_io_api crate, did the same thing with ureq. Gets rid of tokio and a whole lot of other deps. Fixes breakage due to the recent crates.io API breakage, and prevents similar breakage in the future OBS-URL: https://build.opensuse.org/request/show/904008 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=6
62 lines
2.3 KiB
RPMSpec
62 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package cargo-audit
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
|
|
%global workspace_name rustsec
|
|
|
|
Name: cargo-audit
|
|
Version: 0.15.0~git0.16c8aa4
|
|
Release: 0
|
|
Summary: Audit rust sources for known security vulnerabilities
|
|
License: License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR MIT ) AND ( Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib OR Apache-2.0 OR MIT ) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND MIT AND MPL-2.0 AND MPL-2.0+
|
|
Group: Development/Languages/Rust
|
|
URL: https://github.com/RustSec/cargo-audit
|
|
Source0: %{workspace_name}-%{version}.tar.xz
|
|
Source1: vendor.tar.xz
|
|
Source2: cargo_config
|
|
|
|
BuildRequires: cargo
|
|
BuildRequires: pkgconfig(libgit2)
|
|
BuildRequires: pkgconfig(openssl)
|
|
ExcludeArch: s390 s390x ppc ppc64 ppc64le %ix86
|
|
|
|
%description
|
|
Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database.
|
|
|
|
%prep
|
|
%setup -q -n %{workspace_name}-%{version}
|
|
%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
|
|
|
|
%install
|
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 %{_builddir}/%{workspace_name}-%{version}/target/release/cargo-audit %{buildroot}%{_bindir}/cargo-audit
|
|
|
|
%files
|
|
%{_bindir}/cargo-audit
|
|
|
|
%changelog
|