From db9a5e7d53f6693ce0a63c325c5ca6827680ff07 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 14 Jun 2018 08:36:05 +0200 Subject: [PATCH] Bump docopt to 1 Signed-off-by: Igor Gnatenko --- git2-0.7.1-fix-metadata.diff | 11 +++++++++++ rust-git2.spec | 10 ++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 git2-0.7.1-fix-metadata.diff diff --git a/git2-0.7.1-fix-metadata.diff b/git2-0.7.1-fix-metadata.diff new file mode 100644 index 0000000..930c899 --- /dev/null +++ b/git2-0.7.1-fix-metadata.diff @@ -0,0 +1,11 @@ +--- git2-0.7.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ git2-0.7.1/Cargo.toml 2018-06-14T08:36:27.122809+02:00 +@@ -37,7 +37,7 @@ + [dependencies.url] + version = "1.0" + [dev-dependencies.docopt] +-version = "0.8" ++version = "1.0" + + [dev-dependencies.serde] + version = "1.0" diff --git a/rust-git2.spec b/rust-git2.spec index 7807531..4fb2f37 100644 --- a/rust-git2.spec +++ b/rust-git2.spec @@ -6,12 +6,15 @@ Name: rust-%{crate} Version: 0.7.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Bindings to libgit2 for interoperating with git repositories License: MIT or ASL 2.0 URL: https://crates.io/crates/git2 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump docopt to 1.0, https://github.com/alexcrichton/git2-rs/pull/319 +Patch0: git2-0.7.1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -26,7 +29,7 @@ BuildRequires: (crate(openssl-sys) >= 0.9.0 with crate(openssl-sys) < 0.10.0) BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0) %if %{with check} # [dev-dependencies] -BuildRequires: (crate(docopt) >= 0.8.0 with crate(docopt) < 0.9.0) +BuildRequires: (crate(docopt) >= 1.0.0 with crate(docopt) < 2.0.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0) @@ -70,6 +73,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Thu Jun 14 2018 Igor Gnatenko - 0.7.1-2 +- Bump docopt to 1 + * Fri Mar 23 2018 Josh Stone - 0.7.1-1 - Update to 0.7.1