# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate clap_allgen Name: rust-clap_allgen Version: 0.2.1 Release: %autorelease Summary: Generate man pages and shell completions for clap applications License: Apache-2.0 OR MIT URL: https://crates.io/crates/clap_allgen Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop the carapace feature: carapace_spec_clap is not packaged for Fedora # * bump clap_mangen from 0.2 to 0.3: the only breaking change moved environment # variable support behind the optional env feature, which is not needed here # * bump rstest dev-dependency from 0.22 to 0.26 Patch: clap_allgen-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: The complete clap generation utility to give your command-line application users a more polished experience right out of the box.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.md %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fig-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fig-devel %{_description} This package contains library source intended for building other packages which use the "fig" feature of the "%{crate}" crate. %files -n %{name}+fig-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nushell-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nushell-devel %{_description} This package contains library source intended for building other packages which use the "nushell" feature of the "%{crate}" crate. %files -n %{name}+nushell-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog