SHA256
1
0
forked from pool/cargo-audit
cargo-audit/cargo-audit.spec
William Brown 05a60e342b Accepting request 1034646 from home:firstyear:branches:devel:languages:rust
- Update to version 0.17.4~git0.0b05e18:
  * Set 0.17.4 date in changelog
  * Bump `cargo-audit` to 0.17.4
  * Update documentation for 0.17.4; `cargo audit bin` is now officially enabled by default
  * Fix homepage style on mobile (#755)
  * Add comment
  * Only attempt to check for yanked crates for crates coming from crates.io
  * Remove an unused inport
  * placate Clippy
  * cargo fmt
  * Fix #747 in `cargo-audit instead, and don't silence errors that occur during checking for yanked crates`
  * Revert "Only check if a package is yanked if it comes from crates.io; fixes #747" This is a significant behavioral change that should only come with a semver bump
  * Add tests validating yank behavior so that #747 can't regress again
  * Only check if a package is yanked if it comes from crates.io; fixes #747
  * Add a test fixture depending on a yanked crate
  * Consolidate CODE_OF_CONDUCT.d files into one; switch to Rust code of conduct (#751)
  * Release rustsec-admit 0.8.3
  * fix links in admin/CHANGELOG.md
  * bump `platforms` to 3.0.2
  * regenerate `platforms` crate
  * Prepare rustsec-admin release

OBS-URL: https://build.opensuse.org/request/show/1034646
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-audit?expand=0&rev=27
2022-11-09 01:05:46 +00:00

58 lines
2.0 KiB
RPMSpec

#
# spec file for package cargo-audit
#
# Copyright (c) 2022 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.17.4~git0.0b05e18
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.xz
Source1: vendor.tar.xz
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