cargo-audit/cargo-audit.spec
William Brown a81b9ad302 - Update to version 0.21.0~git0.78f9859:
* cargo-audit v0.21.0 (#1277)
  * README.md(s): fix crate badges (#1276)
  * rustsec v0.30.0 (#1275)
  * Cargo.lock: bump dependencies (#1274)
  * Cargo.toml: bump `cargo-lock` to v10.0.1 (#1272)
  * cargo-lock v10.0.1 (#1271)
  * cargo-lock: fix issue with v4 lockfiles (#1270)
  * cargo-audit v0.21.0-rc.0 (#1267)
  * rustsec v0.30.0-rc.1 (#1266)
  * Cargo.toml(s): fix `repository` links (#1265)
  * cargo-lock v10.0.0 (#1264)
  * cargo-lock: use `doc_auto_cfg` (#1263)
  * cargo-audit: bump `abscissa` to v0.8 (#1262)
  * Bump auditable-extract in Cargo.lock for the WASM bugfix
  * build(deps): bump actions/cache from 4.1.0 to 4.1.1 (#1259)
  * V4 is supported now (#1260)
  * rustsec v0.30.0-rc.0 (#1258)
  * cargo-lock v10.0.0-rc.0 (#1257)
  * cargo-lock: add support for V4 lockfiles (#1206)
  * Cargo.lock: bump dependencies (#1256)
  * build(deps): bump actions/cache from 4.0.2 to 4.1.0 (#1252)
  * bump gix to 0.66 and fwe others (#1251)
  * .github: install target in release workflow
  * build(deps): bump regex from 1.10.5 to 1.10.6 (#1234)
  * build(deps): bump xml-rs from 0.8.20 to 0.8.21 (#1236)
  * cargo-audit: make `cargo-lock` a hard dependency (#1239)
  * build(deps): bump tame-index from 0.13.0 to 0.13.1
  * cargo-audit v0.21.0-pre.0 (#1233)
  * rustsec v0.30.0-pre.0 (#1232)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=43
2024-10-30 01:18:55 +00:00

59 lines
2.0 KiB
RPMSpec

#
# 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
Version: 0.21.0~git0.78f9859
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
Source2: cargo_config
BuildRequires: cargo
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