diff --git a/difference-fix-metadata.diff b/difference-fix-metadata.diff index 69ecd8a..ef4bc6d 100644 --- a/difference-fix-metadata.diff +++ b/difference-fix-metadata.diff @@ -1,5 +1,5 @@ ---- difference-2.0.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ difference-2.0.0/Cargo.toml 2018-09-10T08:27:08.830276+02:00 +--- difference-2.0.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ difference-2.0.0/Cargo.toml 2019-06-21T19:38:43.050593+00:00 @@ -25,17 +25,13 @@ [[bin]] name = "difference" @@ -9,7 +9,7 @@ -optional = true [dev-dependencies.quickcheck] -version = "0.4" -+version = "0.7" ++version = "0.8" [dev-dependencies.term] -version = "0.2.7" diff --git a/rust-difference.spec b/rust-difference.spec index 771a681..9330055 100644 --- a/rust-difference.spec +++ b/rust-difference.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} # Binary is pretty useless @@ -9,29 +9,28 @@ Name: rust-%{crate} Version: 2.0.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Rust text diffing and assertion library +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/difference -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * Bump term to 0.5, https://github.com/johannhof/difference.rs/commit/01fb76830c72a716300b20c66866a226286e8670 -# * Bump quickcheck to 0.7, https://github.com/johannhof/difference.rs/pull/33 +# * Bump quickcheck to 0.7, https://github.com/johannhof/difference.rs/pull/38 # * Remove bin feature, it is useless Patch0: difference-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(getopts/default) >= 0.2.0 with crate(getopts/default) < 0.3.0) -%if %{with check} -BuildRequires: (crate(quickcheck/default) >= 0.7.0 with crate(quickcheck/default) < 0.8.0) -BuildRequires: (crate(term/default) >= 0.5.0 with crate(term/default) < 0.6.0) -%endif -%global _description \ -A Rust text diffing and assertion library. +%global _description %{expand: +Rust text diffing and assertion library.} %description %{_description} @@ -62,22 +61,13 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml -%package -n %{name}+getopts-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+getopts-devel %{_description} - -This package contains library source intended for building other packages -which use "getopts" feature of "%{crate}" crate. - -%files -n %{name}+getopts-devel -%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 @@ -90,6 +80,9 @@ which use "getopts" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 21 21:38:44 CEST 2019 Igor Gnatenko - 2.0.0-9 +- Regenerate + * Sun Feb 17 2019 Igor Gnatenko - 2.0.0-8 - Tests are run in infrastructure