# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate ctrlc Name: rust-%{crate} Version: 3.0.3 Release: 1%{?dist} Summary: Easy Ctrl-C handler for Rust projects # License files are in upstream, but not yet in release # https://github.com/Detegr/rust-ctrlc/commit/587c77eb89b6e0a312ef066445ad8253ca08c785 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.9, https://github.com/Detegr/rust-ctrlc/pull/35 Patch0: ctrlc-3.0.3-fix-metadata.diff # Make it work with nix v0.9 Patch1: 0001-deps-update-nix-to-0.9.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(nix) >= 0.9.0 with crate(nix) < 0.10.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 %doc README.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog * Thu Jan 04 2018 Igor Gnatenko - 3.0.3-1 - Initial package