diff --git a/rust-which.spec b/rust-which.spec index af3917d..f781c49 100644 --- a/rust-which.spec +++ b/rust-which.spec @@ -1,30 +1,29 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate which Name: rust-%{crate} Version: 2.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Rust equivalent of Unix command "which" +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/which Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(failure/std) >= 0.1.1 with crate(failure/std) < 0.2.0) -BuildRequires: (crate(libc/default) >= 0.2.10 with crate(libc/default) < 0.3.0) -%if %{with check} -BuildRequires: (crate(tempdir/default) >= 0.3.4 with crate(tempdir/default) < 0.4.0) -%endif -%global _description \ -A Rust equivalent of Unix command "which". Locate installed execuable in cross\ -platforms. +%global _description %{expand: +Rust equivalent of Unix command "which". Locate installed execuable in cross +platforms.} %description %{_description} @@ -58,6 +57,9 @@ which use "default" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -70,6 +72,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 13:09:58 CEST 2019 Igor Gnatenko - 2.0.1-4 +- Regenerate + * Mon Feb 11 2019 Igor Gnatenko - 2.0.1-3 - Run tests in infrastructure