diff --git a/rust-atty.spec b/rust-atty.spec index 66de558..840a42a 100644 --- a/rust-atty.spec +++ b/rust-atty.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 9 # * Checks are pretty much useless, because they rely on tty %bcond_with check %global debug_package %{nil} @@ -7,24 +7,30 @@ Name: rust-%{crate} Version: 0.2.11 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Simple interface for querying atty +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/atty -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows/redox # * Exclude CI files, https://github.com/softprops/atty/pull/32 Patch0: atty-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging +%if ! %{__cargo_skip_build} BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +%endif -%global _description \ -A simple interface for querying atty. +%global _description %{expand: +Simple interface for querying atty.} %description %{_description} @@ -55,7 +61,7 @@ which use "default" 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 %build @@ -70,6 +76,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 09 11:35:58 CEST 2019 Igor Gnatenko - 0.2.11-5 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 0.2.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild