Prevent useless example binary from being installed

epel9 imports/e9/rust-twox-hash-1.6.3-4.el9
Fabio Valentini 2 years ago
parent e03e0e98d3
commit 924867bd2d
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,19 +1,20 @@
# Generated by rust2rpm 21
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate twox-hash
Name: rust-%{crate}
Name: rust-twox-hash
Version: 1.6.3
Release: %autorelease
Summary: Rust implementation of the XXHash and XXH3 algorithms
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/twox-hash
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
# Manually created patch for downstream crate metadata changes
# * prevent useless example binary from being installed
Patch: twox-hash-fix-metadata.diff
BuildRequires: rust-packaging >= 21
@ -22,16 +23,6 @@ Rust implementation of the XXHash and XXH3 algorithms.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE.txt
%doc README.md
%{_bindir}/hash_file
%package devel
Summary: %{summary}
BuildArch: noarch

@ -0,0 +1,10 @@
--- twox-hash-1.6.3/Cargo.toml 1970-01-01T00:00:01+00:00
+++ twox-hash-1.6.3/Cargo.toml 2023-02-05T14:34:44.019474+00:00
@@ -26,6 +26,7 @@
categories = ["algorithms"]
license = "MIT"
repository = "https://github.com/shepmaster/twox-hash"
+autobins = false
[dependencies.cfg-if]
version = ">= 0.1, < 2"
Loading…
Cancel
Save