From 9b71aed12054a2a40c2f7a896ce585067ba5910e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 13 Jun 2023 17:22:16 +0200 Subject: [PATCH] Update to version 2.0.1; Fixes RHBZ#2036401 --- .gitignore | 1 + README.md | 3 --- rust-clap-verbosity-flag.spec | 35 +++++++++++++++-------------------- sources | 2 +- 4 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index d38ed1f..4e27c48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /clap-verbosity-flag-0.3.1.crate /clap-verbosity-flag-0.3.2.crate +/clap-verbosity-flag-2.0.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 44cf7d6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-clap-verbosity-flag - -The rust-clap-verbosity-flag package diff --git a/rust-clap-verbosity-flag.spec b/rust-clap-verbosity-flag.spec index 738a5b4..e28f134 100644 --- a/rust-clap-verbosity-flag.spec +++ b/rust-clap-verbosity-flag.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate clap-verbosity-flag -Name: rust-%{crate} -Version: 0.3.2 +Name: rust-clap-verbosity-flag +Version: 2.0.1 Release: %autorelease Summary: Easily add a --verbose flag to CLIs using Structopt -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/clap-verbosity-flag Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Easily add a --verbose flag to CLIs using Structopt.} +Easily add a `--verbose` flag to CLIs using Structopt.} %description %{_description} @@ -32,13 +26,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +41,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 1db6ade..3abf031 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clap-verbosity-flag-0.3.2.crate) = 6fe677c1321561ea0ceff5186a0b2ac416e13bce29b05c3c51e64e475a8a6dc6940f8fbf24c0d14ff89fa32bee05bf10b3f702196fb0be38a8dc0ca01a3d920e +SHA512 (clap-verbosity-flag-2.0.1.crate) = d0c293083cf580b43add5d92134f688256a80665fccfb4faf74367ba2e8afc2ea1b59fb54a2fafb3e090aa8068488f8f2f0585694bb154bd6543a6ab8ed7072e