# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate quicli Name: rust-%{crate} Version: 0.4.0 Release: %autorelease Summary: Quickly build cool CLI apps in Rust # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/quicli Source: %{crates_source} # Bump clap-verbosity-flag to 0.3, globwalk to 0.8, remove_dir_all to 0.7 Patch0: quicli-fix-metadata.diff # Backport PR#107 for compatibility with globwalk 0.8 Patch1: quicli-globwalk.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Quickly build cool CLI apps in Rust.} %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 docs Readme.md Changelog.md docs/thumbnails.md docs/Readme.md docs/commit.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 %package -n %{name}+full-throttle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full-throttle-devel %{_description} This package contains library source intended for building other packages which use "full-throttle" feature of "%{crate}" crate. %files -n %{name}+full-throttle-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+globwalk-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+globwalk-devel %{_description} This package contains library source intended for building other packages which use "globwalk" feature of "%{crate}" crate. %files -n %{name}+globwalk-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use "rayon" feature of "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+remove_dir_all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+remove_dir_all-devel %{_description} This package contains library source intended for building other packages which use "remove_dir_all" feature of "%{crate}" crate. %files -n %{name}+remove_dir_all-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_derive-devel %{_description} This package contains library source intended for building other packages which use "serde_derive" feature of "%{crate}" crate. %files -n %{name}+serde_derive-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