cargo-auditable/cargo-auditable.spec
William Brown 234776add6 Accepting request 1227211 from home:firstyear:branches:devel:languages:rust
- Update to version 0.6.6~0:
  * Bump version in Cargo.toml
  * Note the `object` upgrade in the changelog
  * Upgrade cyclonedx-bom from 0.5 to 0.8 in auditable-cyclonedx
  * Upgrade object crate from 0.30 to 0.36 to reduce dependency footprint
  * Update dependencies in the lock file
  * Populate changelog
  * apply clippy lint
  * add another --emit parsing test
  * shorter code with cargo fmt
  * Actually fix cargo-c compatibility
  * Attempt to fix cargo-capi incompatibility
  * Refactoring in preparation for fixes
  * Also read the --emit flag to rustc
  * Fill in changelogs
  * Bump versions
  * Drop cfg'd out tests
  * Drop obsolete doc line
  * Move dependency cycle tests from auditable-serde to cargo-auditable crate
  * Remove cargo_metadata from auditable-serde API surface. I can expose it as a separate crate if anyone tells me they need it.
  * Apply clippy lint
  * Upgrade miniz_oxide to 0.8.0
  * Insulate our semver from miniz_oxide semver
  * Add support for Rust 2024 edition
  * Update tests
  * More robust OS detection for riscv feature detection
  * bump version
  * update changelog for auditable-extract 0.3.5
  * Fix wasm component auditable data extraction
  * Update blocker description in README.md

OBS-URL: https://build.opensuse.org/request/show/1227211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-auditable?expand=0&rev=10
2024-11-29 05:04:03 +00:00

65 lines
2.7 KiB
RPMSpec

#
# spec file for package cargo-auditable
#
# 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/
#
%define __rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C incremental=false
%define __cargo CARGO_FEATURE_VENDORED=1 RUSTFLAGS="%{__rustflags}" %{_bindir}/cargo
%define __cargo_common_opts %{?_smp_mflags}
Name: cargo-auditable
Version: 0.6.6~0
Release: 0
Summary: A tool to embed auditing information in ELF sections of rust binaries
# If you know the license, put it's SPDX string here.
# Alternately, you can use cargo lock2rpmprovides to help generate this.
License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND MIT
# Select a group from this link:
# https://en.opensuse.org/openSUSE:Package_group_guidelines
Group: Development/Languages/Rust
URL: https://github.com/rust-secure-code/cargo-auditable
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
# We can't dep on cargo-packaging because we would create a dependency loop.
# BuildRequires: cargo-packaging
BuildRequires: cargo
BuildRequires: zstd
Requires: rust+cargo
%description
Know the exact crate versions used to build your Rust executable. Audit binaries for known bugs or
security vulnerabilities in production, at scale, with zero bookkeeping. This works by embedding
data about the dependency tree in JSON format into a dedicated linker section of the compiled
executable.
%prep
%autosetup -a1
%build
unset LIBSSH2_SYS_USE_PKG_CONFIG
%{__cargo} build \
%{__cargo_common_opts} \
--offline --release
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/cargo-auditable %{buildroot}%{_bindir}/cargo-auditable
%files
%{_bindir}/cargo-auditable
%changelog