cargo-audit/cargo-audit.spec

58 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package cargo-audit
#
# Copyright (c) 2024 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
Accepting request 1177204 from home:firstyear:branches:devel:languages:rust - Update to version 0.20.0~git66.972ac93: * build(deps): bump comrak from 0.21.0 to 0.24.1 (#1193) * build(deps): bump softprops/action-gh-release (#1192) * build(deps): bump atom_syndication from 0.12.2 to 0.12.3 (#1191) * build(deps): bump rust-embed from 8.3.0 to 8.4.0 (#1190) * build(deps): bump petgraph from 0.6.4 to 0.6.5 (#1189) * update `gix` to v0.63 for security fixes * Upgrade to auditable-info 0.7.2 * build(deps): bump rust-embed from 8.2.0 to 8.3.0 * build(deps): bump semver from 1.0.21 to 1.0.23 * Fix typo `then` -> `them` in index.html * Drop unused import * Fix typos * Use clap to properly parse --color argument * Remove duplicated arguments from bin subcommand * Support specifying multiple target arches and oses in cargo-audit * Make Query's target arch & os a Vec<T> instead of Option<T> * build(deps): bump tame-index from 0.11.0 to 0.11.1 * Apply clippy suggestions * Adjust binary type filter for WASM * WIP WASM auditing support * Fix warnings added in Rust 1.78 * Regenerate Cargo.lock * Bump rustsec version * Drop is-terminal line from rustsec changelog; it's a cargo-audit only change * Update changelog * build(deps): bump chrono from 0.4.34 to 0.4.38 * build(deps): bump time from 0.3.34 to 0.3.36 * fix after gix update * update gix and tame-index OBS-URL: https://build.opensuse.org/request/show/1177204 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=37
2024-05-29 04:55:17 +02:00
Version: 0.20.0~git66.972ac93
Release: 0
Summary: Audit rust sources for known security vulnerabilities
License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( 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
Accepting request 1074529 from home:firstyear:branches:devel:languages:rust - Update to version 0.17.5~git0.dc8ec71: * Set the release date in changelog * Bump `cargo-audit` version * Bump `rustsec` crate requirement to 0.26.5, to mandate the version with the fixed libgit2 * Fill in the CHANGELOG * Do not run all tests from the default feature set twice * cargo fmt * Fix version reporting * Update openssl in Cargo.lock files * More changelog entries * cargo fmt * Fix type inference error * Fill in changelog * Bump version to 0.26.5 * build(deps): bump regex from 1.7.1 to 1.7.2 * build(deps): bump rust-embed from 6.4.2 to 6.6.0 * build(deps): bump chrono from 0.4.23 to 0.4.24 * Bump crates-index to 0.19 * rustsec: Fix git2 via cargo-edit-9 fork * fix(cargo-audit): set clap bin_name to cargo (#824) * fix(cargo-audit): Better the formatting of severity output * Add vulnerability severity to the cargo-audit report presenter * test(cargo-audit): Ensure informational warnings are shown by default * fix(cargo-audit): Add unsound and notice to default informational warnings * Resolves #622 * fix(cargo-audit): Remove latest commit signature check * Re-enable MacOS CI with `--all-features` * Bump `platforms` version * Regenerate the `platforms` crate for rustc 1.69.0-nightly (8996ea93b 2023-02-09) * build(deps): bump toml from 0.7.1 to 0.7.2 (#811) OBS-URL: https://build.opensuse.org/request/show/1074529 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=29
2023-03-27 05:21:58 +02:00
Source0: %{workspace_name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl)
ExclusiveArch: %{rust_tier1_arches}
%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
%build
%{cargo_build}
%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