diff --git a/rust-term_size.spec b/rust-term_size.spec index 7e657a0..08372d2 100644 --- a/rust-term_size.spec +++ b/rust-term_size.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 9 +# Generated by rust2rpm 10 %bcond_without check %global debug_package %{nil} @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Functions for determining terminal sizes and dimensions # Upstream license specification: MIT/Apache-2.0 @@ -14,7 +14,6 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/term_size Source: %{crates_source} # Initial patched metadata -# * clippy is nightly # * No windows # * Exclude useless files, https://github.com/clap-rs/term_size-rs/pull/22 Patch0: term_size-fix-metadata.diff @@ -25,9 +24,6 @@ BuildArch: noarch %endif BuildRequires: rust-packaging -%if ! %{__cargo_skip_build} -BuildRequires: (crate(libc/default) >= 0.2.20 with crate(libc/default) < 0.3.0) -%endif %global _description %{expand: Functions for determining terminal sizes and dimensions.} @@ -136,6 +132,9 @@ which use "unstable" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -148,6 +147,9 @@ which use "unstable" feature of "%{crate}" crate. %endif %changelog +* Thu Jun 20 11:10:05 CEST 2019 Igor Gnatenko - 0.3.1-9 +- Regenerate + * Sun Jun 09 14:30:29 CEST 2019 Igor Gnatenko - 0.3.1-8 - Regenerate diff --git a/term_size-fix-metadata.diff b/term_size-fix-metadata.diff index 3777cd1..c046eee 100644 --- a/term_size-fix-metadata.diff +++ b/term_size-fix-metadata.diff @@ -1,5 +1,5 @@ ---- term_size-0.3.1/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ term_size-0.3.1/Cargo.toml 2018-10-27T12:26:53.038444+02:00 +--- term_size-0.3.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ term_size-0.3.1/Cargo.toml 2019-06-20T09:11:00.369597+00:00 @@ -14,7 +14,7 @@ name = "term_size" version = "0.3.1" @@ -9,20 +9,7 @@ description = "functions for determining terminal sizes and dimensions" documentation = "https://kbknapp.github.io/term_size-rs" readme = "README.md" -@@ -59,24 +59,13 @@ - debug = false - debug-assertions = false - rpath = false --[dependencies.clippy] --version = "~0.0.112" --optional = true - - [features] - debug = [] - default = [] --lints = ["clippy", "nightly"] --nightly = [] --travis = ["lints", "nightly"] +@@ -72,11 +72,6 @@ unstable = [] [target."cfg(not(target_os = \"windows\"))".dependencies.libc] version = "~0.2.20"