2021-03-11 23:17:05 +01:00
|
|
|
#
|
2021-06-03 05:36:01 +02:00
|
|
|
# spec file for package cargo-audit
|
2021-03-11 23:17:05 +01:00
|
|
|
#
|
2022-03-03 01:25:43 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2021-03-11 23:17:05 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2021-06-03 05:36:01 +02:00
|
|
|
|
2021-03-11 23:17:05 +01:00
|
|
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
|
2021-06-03 05:36:01 +02:00
|
|
|
%global workspace_name rustsec
|
2021-03-11 23:17:05 +01:00
|
|
|
|
|
|
|
Name: cargo-audit
|
2022-11-09 02:05:46 +01:00
|
|
|
Version: 0.17.4~git0.0b05e18
|
2021-03-11 23:17:05 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Audit rust sources for known security vulnerabilities
|
2021-12-03 02:45:09 +01:00
|
|
|
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+
|
2021-03-11 23:17:05 +01:00
|
|
|
Group: Development/Languages/Rust
|
2021-06-03 05:36:01 +02:00
|
|
|
URL: https://github.com/RustSec/cargo-audit
|
|
|
|
Source0: %{workspace_name}-%{version}.tar.xz
|
2021-03-11 23:17:05 +01:00
|
|
|
Source1: vendor.tar.xz
|
|
|
|
Source2: cargo_config
|
|
|
|
|
2022-03-20 05:05:07 +01:00
|
|
|
BuildRequires: cargo-packaging
|
2021-03-11 23:17:05 +01:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2022-03-20 05:05:07 +01:00
|
|
|
ExclusiveArch: %{rust_tier1_arches}
|
2021-03-11 23:17:05 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database.
|
|
|
|
|
|
|
|
%prep
|
2021-06-03 05:36:01 +02:00
|
|
|
%setup -q -n %{workspace_name}-%{version}
|
|
|
|
%setup -qa1 -n %{workspace_name}-%{version}
|
2021-03-17 02:21:39 +01:00
|
|
|
mkdir -p .cargo
|
2021-03-11 23:17:05 +01:00
|
|
|
cp %{SOURCE2} .cargo/config
|
|
|
|
|
|
|
|
%build
|
2022-03-20 05:05:07 +01:00
|
|
|
%{cargo_build}
|
2021-03-11 23:17:05 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
|
|
|
|
2021-06-03 05:36:01 +02:00
|
|
|
install -m 0755 %{_builddir}/%{workspace_name}-%{version}/target/release/cargo-audit %{buildroot}%{_bindir}/cargo-audit
|
2021-03-11 23:17:05 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/cargo-audit
|
|
|
|
|
|
|
|
%changelog
|