# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate snafu Name: rust-%{crate} Version: 0.7.1 Release: %autorelease Summary: Ergonomic error handling library # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/snafu Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Ergonomic error handling library.} %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}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.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}+backtrace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backtrace-devel %{_description} This package contains library source intended for building other packages which use the "backtrace" feature of the "%{crate}" crate. %files -n %{name}+backtrace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+backtraces-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backtraces-devel %{_description} This package contains library source intended for building other packages which use the "backtraces" feature of the "%{crate}" crate. %files -n %{name}+backtraces-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+backtraces-impl-backtrace-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backtraces-impl-backtrace-crate-devel %{_description} This package contains library source intended for building other packages which use the "backtraces-impl-backtrace-crate" feature of the "%{crate}" crate. %files -n %{name}+backtraces-impl-backtrace-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-devel %{_description} This package contains library source intended for building other packages which use the "futures" feature of the "%{crate}" crate. %files -n %{name}+futures-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-core-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-core-crate-devel %{_description} This package contains library source intended for building other packages which use the "futures-core-crate" feature of the "%{crate}" crate. %files -n %{name}+futures-core-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-crate-devel %{_description} This package contains library source intended for building other packages which use the "futures-crate" feature of the "%{crate}" crate. %files -n %{name}+futures-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+guide-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+guide-devel %{_description} This package contains library source intended for building other packages which use the "guide" feature of the "%{crate}" crate. %files -n %{name}+guide-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+internal-dev-dependencies-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+internal-dev-dependencies-devel %{_description} This package contains library source intended for building other packages which use the "internal-dev-dependencies" feature of the "%{crate}" crate. %files -n %{name}+internal-dev-dependencies-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pin-project-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pin-project-devel %{_description} This package contains library source intended for building other packages which use the "pin-project" feature of the "%{crate}" crate. %files -n %{name}+pin-project-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust_1_46-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rust_1_46-devel %{_description} This package contains library source intended for building other packages which use the "rust_1_46" feature of the "%{crate}" crate. %files -n %{name}+rust_1_46-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-backtraces-impl-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-backtraces-impl-std-devel %{_description} This package contains library source intended for building other packages which use the "unstable-backtraces-impl-std" feature of the "%{crate}" crate. %files -n %{name}+unstable-backtraces-impl-std-devel %ghost %{crate_instdir}/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