- Update to version 0.21.1~git0.bd6fb0f: * bump cargo-audit version in cargo toml, I forgot * Bump minor version of cargo-lock according to the msrv policy of the crate * Populate changelogs * Bump versions of crates to be published * Documentation tweaks * Move binary scanning into its own top-level module, improve documentation * More informative doc strings on BinaryFormat variants * Fix conditional compilation by always exposing binary format struct in rustsec * cfg-out binary format type only available with binary scanning enabled * Remove binary scanning from rustsec default features * Correctly pass through the binary-scanning feature to rustsec crate * Do not assert in tests that there are no vulnerabilities in our own Cargo.lock * lower cargo-lock MSRV to 1.73, that's all that our locked dependencies require * Bump cargo-lock MSRV to 1.74 following the bump in dependency versions * Bump other dependencies with vulns, preserving MSRV * Upgrade url crate to fix self-audit issue * cargo fmt * Comment out hanging test * allow(lint) for allow(lint), how deep does the rabbit hole go? * Fix typo * Don't fail the build if something in acceptance test code is missing documentation * Suppress useless warnings that break the build due to deny(warnings) * fix: formatting for `*.rs` files * style: simplify some statements for readability * cargo fmt * Fix handling of the database.fetch option * fix(cargo-lock): normalize everything for git-ref in dependencies * test(cargo-lock): show tag in dependencies is not normalized OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=47
56 lines
1.9 KiB
RPMSpec
56 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package cargo-audit
|
|
#
|
|
# Copyright (c) 2025 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.21.1~git0.bd6fb0f
|
|
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
|
|
Source0: %{workspace_name}-%{version}.tar.zst
|
|
Source1: vendor.tar.zst
|
|
|
|
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}
|
|
%autopatch -p 1
|
|
|
|
%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
|