diff --git a/rust-failure.spec b/rust-failure.spec index 69b4f30..6ec3fcb 100644 --- a/rust-failure.spec +++ b/rust-failure.spec @@ -1,30 +1,30 @@ -# Generated by rust2rpm -# Tests are run in infrastructre -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate failure Name: rust-%{crate} Version: 0.1.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Experimental error handling abstraction # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/failure -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Mark ATOMIC_USIZE_INIT as deprecated (#303) Patch0: https://github.com/rust-lang-nursery/failure/commit/6820ba2cecbca12b21d9aade8a5c67b4997d7423.patch#/0001-Mark-ATOMIC_USIZE_INIT-as-deprecated.patch ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(backtrace/default) >= 0.3.3 with crate(backtrace/default) < 0.4.0) -BuildRequires: (crate(failure_derive/default) >= 0.1.5 with crate(failure_derive/default) < 0.2.0) -%global _description \ -Experimental error handling abstraction. +%global _description %{expand: +Experimental error handling abstraction.} %description %{_description} @@ -104,9 +104,12 @@ which use "std" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -119,6 +122,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 12:43:12 CEST 2019 Igor Gnatenko - 0.1.5-4 +- Regenerate + * Mon Apr 15 20:23:42 CET 2019 Robert-André Mauchin - 0.1.5-3 - Add patch to fix compilation with Rust 1.34