From 3a6eb4de2a305f8ccb38dcdc533dc7eeb1c7f279 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 15 Jun 2023 10:50:51 -0500 Subject: [PATCH] Remove unneeded structopt feature - Check in rust2rpm.conf config Signed-off-by: Michel Alexandre Salim --- rust-build-fs-tree.spec | 13 ------------- rust2rpm.conf | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 rust2rpm.conf diff --git a/rust-build-fs-tree.spec b/rust-build-fs-tree.spec index 11b15be..718bb80 100644 --- a/rust-build-fs-tree.spec +++ b/rust-build-fs-tree.spec @@ -13,7 +13,6 @@ License: MIT URL: https://crates.io/crates/build-fs-tree Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * don't compile binaries, we don't need them yet Patch: build-fs-tree-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -49,18 +48,6 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+structopt-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+structopt-devel %{_description} - -This package contains library source intended for building other packages which -use the "structopt" feature of the "%{crate}" crate. - -%files -n %{name}+structopt-devel -%ghost %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..346b968 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,6 @@ +[DEFAULT] +unwanted-features = + cli + cli-completions + structopt + structopt-utilities