diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d38ed1f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/clap-verbosity-flag-0.3.1.crate +/clap-verbosity-flag-0.3.2.crate diff --git a/rust-clap-verbosity-flag.spec b/rust-clap-verbosity-flag.spec new file mode 100644 index 0000000..738a5b4 --- /dev/null +++ b/rust-clap-verbosity-flag.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate clap-verbosity-flag + +Name: rust-%{crate} +Version: 0.3.2 +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 +URL: https://crates.io/crates/clap-verbosity-flag +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Easily add a --verbose flag to CLIs using Structopt.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..1db6ade --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clap-verbosity-flag-0.3.2.crate) = 6fe677c1321561ea0ceff5186a0b2ac416e13bce29b05c3c51e64e475a8a6dc6940f8fbf24c0d14ff89fa32bee05bf10b3f702196fb0be38a8dc0ca01a3d920e