# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate ctrlc Name: rust-%{crate} Version: 3.1.0 Release: 3%{?dist} Summary: Easy Ctrl-C handler for Rust projects License: MIT or ASL 2.0 URL: https://crates.io/crates/ctrlc Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows # * Bump nix to 0.10 Patch0: ctrlc-3.1.0-fix-metadata.diff # Make it work with nix 0.10 Patch1: 0001-Update-to-nix-0.10.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(nix) >= 0.10.0 with crate(nix) < 0.11.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Easy Ctrl-C handler for Rust projects. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog * Thu Mar 08 2018 Igor Gnatenko - 3.1.0-3 - Bump nix to 0.10 * Fri Feb 09 2018 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Igor Gnatenko - 3.1.0-1 - Update to 3.1.0 * Mon Jan 08 2018 Igor Gnatenko - 3.0.3-2 - Rebuild for rust-packaging v5 * Thu Jan 04 2018 Igor Gnatenko - 3.0.3-1 - Initial package