# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate signal-hook Name: rust-%{crate} Version: 0.3.12 Release: %autorelease Summary: Unix signal handling # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/signal-hook Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Unix signal handling.} %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 LICENSE-APACHE LICENSE-MIT %doc CHANGELOG.md README.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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+cc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cc-devel %{_description} This package contains library source intended for building other packages which use the "cc" feature of the "%{crate}" crate. %files -n %{name}+cc-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+channel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+channel-devel %{_description} This package contains library source intended for building other packages which use the "channel" feature of the "%{crate}" crate. %files -n %{name}+channel-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+extended-siginfo-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+extended-siginfo-devel %{_description} This package contains library source intended for building other packages which use the "extended-siginfo" feature of the "%{crate}" crate. %files -n %{name}+extended-siginfo-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+extended-siginfo-raw-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+extended-siginfo-raw-devel %{_description} This package contains library source intended for building other packages which use the "extended-siginfo-raw" feature of the "%{crate}" crate. %files -n %{name}+extended-siginfo-raw-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+iterator-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+iterator-devel %{_description} This package contains library source intended for building other packages which use the "iterator" feature of the "%{crate}" crate. %files -n %{name}+iterator-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