diff --git a/rust-skeptic.spec b/rust-skeptic.spec index 6084b21..5d7b8ac 100644 --- a/rust-skeptic.spec +++ b/rust-skeptic.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate skeptic Name: rust-%{crate} Version: 0.13.4 -Release: 2%{?dist} +Release: 1%{?dist} Summary: Test your Rust markdown documentation via Cargo # Upstream license specification: MIT/Apache-2.0 @@ -15,26 +15,19 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/skeptic Source: %{crates_source} # Initial patched metadata -# * Update bytecount to 0.5, https://github.com/budziq/rust-skeptic/pull/95 +# * Update bytecount to 0.5 (upstreamed) +# * Update glob to 0.3 (upstreamed) Patch0: skeptic-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(bytecount/default) >= 0.5.0 with crate(bytecount/default) < 0.6.0) -BuildRequires: (crate(cargo_metadata/default) >= 0.6.0 with crate(cargo_metadata/default) < 0.7.0) -BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0) -BuildRequires: (crate(glob/default) >= 0.2.0 with crate(glob/default) < 0.3.0) -BuildRequires: (crate(pulldown-cmark) >= 0.2.0 with crate(pulldown-cmark) < 0.3.0) -BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) -BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0) -BuildRequires: (crate(walkdir/default) >= 2.2.0 with crate(walkdir/default) < 3.0.0) -%if %{with check} -BuildRequires: (crate(unindent/default) >= 0.1.0 with crate(unindent/default) < 0.2.0) -%endif -%global _description \ -Test your Rust markdown documentation via Cargo. +%global _description %{expand: +Test your Rust markdown documentation via Cargo.} %description %{_description} @@ -67,6 +60,9 @@ which use "default" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -79,6 +75,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Wed Jul 31 19:54:43 CEST 2019 Robert-André Mauchin - 0.13.4-3 +- Bump glob to 0.3 + * Fri Jul 26 2019 Fedora Release Engineering - 0.13.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/skeptic-fix-metadata.diff b/skeptic-fix-metadata.diff index 58ae8ed..ae22751 100644 --- a/skeptic-fix-metadata.diff +++ b/skeptic-fix-metadata.diff @@ -1,5 +1,5 @@ ---- skeptic-0.13.4/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ skeptic-0.13.4/Cargo.toml 2019-03-13T17:58:11.778083+01:00 +--- skeptic-0.13.4/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ skeptic-0.13.4/Cargo.toml 2019-07-31T17:54:43.231811+00:00 @@ -27,7 +27,7 @@ name = "skeptic" path = "lib.rs" @@ -9,3 +9,12 @@ [dependencies.cargo_metadata] version = "0.6" +@@ -37,7 +37,7 @@ + default-features = false + + [dependencies.glob] +-version = "0.2" ++version = "0.3" + + [dependencies.pulldown-cmark] + version = "0.2"