diff --git a/heatseeker-fix-metadata.diff b/heatseeker-fix-metadata.diff index 0ad4f8d..fed5ab5 100644 --- a/heatseeker-fix-metadata.diff +++ b/heatseeker-fix-metadata.diff @@ -1,5 +1,5 @@ ---- heatseeker-1.6.1/Cargo.toml 1969-12-31T16:00:00-08:00 -+++ heatseeker-1.6.1/Cargo.toml 2019-04-16T10:23:52.439782-07:00 +--- heatseeker-1.6.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ heatseeker-1.6.1/Cargo.toml 2019-07-21T07:08:17.828343+00:00 @@ -44,8 +44,3 @@ [target."cfg(not(windows))".dependencies.signal-hook] diff --git a/rust-heatseeker.spec b/rust-heatseeker.spec index 135c6eb..9d43fe9 100644 --- a/rust-heatseeker.spec +++ b/rust-heatseeker.spec @@ -1,5 +1,6 @@ -# Generated by rust2rpm +# Generated by rust2rpm 10 %bcond_without check +%global __cargo_skip_build 0 %global crate heatseeker @@ -8,6 +9,7 @@ Version: 1.6.1 Release: 1%{?dist} Summary: Fast, robust, and portable fuzzy finder +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/heatseeker Source: %{crates_source} @@ -18,24 +20,16 @@ Patch0: heatseeker-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -BuildRequires: (crate(crossbeam/default) >= 0.7.0 with crate(crossbeam/default) < 0.8.0) -BuildRequires: (crate(getopts/default) >= 0.2.15 with crate(getopts/default) < 0.3.0) -BuildRequires: (crate(libc/default) >= 0.2.31 with crate(libc/default) < 0.3.0) -BuildRequires: (crate(num_cpus/default) >= 1.7.0 with crate(num_cpus/default) < 2.0.0) -BuildRequires: (crate(signal-hook/default) >= 0.1.3 with crate(signal-hook/default) < 0.2.0) -BuildRequires: (crate(time/default) >= 0.1.38 with crate(time/default) < 0.2.0) -BuildRequires: (crate(unicode-width/default) >= 0.1.4 with crate(unicode-width/default) < 0.2.0) -%global _description \ -A fast, robust, and portable fuzzy finder. +%global _description %{expand: +Fast, robust, and portable fuzzy finder.} %description %{_description} %package -n %{crate} Summary: %{summary} -%description -n %{crate} -%{summary}. +%description -n %{crate} %{_description} %files -n %{crate} %license LICENSE @@ -44,10 +38,13 @@ Summary: %{summary} %prep %autosetup -n %{crate}-%{version_no_tilde} -N -find -type f -name '*.rs' -exec sed -i -e 's/\r$//' {} + +grep -IUlr $'\r' | xargs sed -i 's/\r$//' %autopatch -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -60,6 +57,9 @@ env TRAVIS=1 %cargo_test %endif %changelog +* Sun Jul 21 09:08:17 CEST 2019 Igor Gnatenko - 1.6.1-2 +- Regenerate + * Tue Apr 16 2019 Josh Stone - 1.6.1-1 - Update to 1.6.1