From eea5cd0403ba8d1f36a239c95e4def377c23f9f7 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 10 Jun 2019 09:40:37 -0700 Subject: [PATCH] Bump git2 to 0.9 --- rust-tokei.spec | 12 +++++++++--- tokei-fix-metadata.diff | 11 +++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 tokei-fix-metadata.diff diff --git a/rust-tokei.spec b/rust-tokei.spec index 9ba89ba..32ab40c 100644 --- a/rust-tokei.spec +++ b/rust-tokei.spec @@ -1,17 +1,20 @@ -# Generated by rust2rpm +# Generated by rust2rpm-9-1.fc30 %bcond_without check %global crate tokei Name: rust-%{crate} Version: 9.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utility that allows you to count code, quickly # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/tokei Source: %{crates_source} +# Initial patched metadata +# * Bump git2 to 0.9, https://github.com/XAMPPRocky/tokei/pull/336 +Patch0: tokei-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -34,7 +37,7 @@ BuildRequires: (crate(serde_yaml/default) >= 0.8.0 with crate(serde_yaml/defaul BuildRequires: (crate(term_size/default) >= 0.3.1 with crate(term_size/default) < 0.4.0) BuildRequires: (crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0) %if %{with check} -BuildRequires: (crate(git2) >= 0.8.0 with crate(git2) < 0.9.0) +BuildRequires: (crate(git2) >= 0.9.0 with crate(git2) < 0.10.0) BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0) BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0) BuildRequires: (crate(tempfile/default) >= 3.0.7 with crate(tempfile/default) < 4.0.0) @@ -191,6 +194,9 @@ which use "yaml" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 07 2019 Josh Stone - 9.1.1-2 +- Bump git2 to 0.9 + * Sat Mar 30 14:59:32 CET 2019 Igor Gnatenko - 9.1.1-1 - Update to 9.1.1 diff --git a/tokei-fix-metadata.diff b/tokei-fix-metadata.diff new file mode 100644 index 0000000..84a07e2 --- /dev/null +++ b/tokei-fix-metadata.diff @@ -0,0 +1,11 @@ +--- tokei-9.1.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ tokei-9.1.1/Cargo.toml 2019-06-07T19:18:38.385030+00:00 +@@ -77,7 +77,7 @@ + [dependencies.toml] + version = "0.5" + [dev-dependencies.git2] +-version = "0.8.0" ++version = "0.9.0" + features = [] + default-features = false +