From f367b1286a65cbd2d822bdd466d57d78369e8fbf Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 18 Jun 2019 23:41:54 +0200 Subject: [PATCH] Update to 0.8.1 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-libgit2-sys.spec | 27 +++++++++++++++++---------- sources | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index fe55678..4676b17 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /libgit2-sys-0.7.10.crate /libgit2-sys-0.7.11.crate /libgit2-sys-0.8.0.crate +/libgit2-sys-0.8.1.crate diff --git a/rust-libgit2-sys.spec b/rust-libgit2-sys.spec index b5770ca..5fc9348 100644 --- a/rust-libgit2-sys.spec +++ b/rust-libgit2-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm-9-1.fc30 -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate libgit2-sys Name: rust-%{crate} -Version: 0.8.0 +Version: 0.8.1 Release: 1%{?dist} Summary: Native bindings to the libgit2 library @@ -17,16 +17,14 @@ Source: %{crates_source} Patch0: 0001-build.rs-always-use-pkg-config.patch ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(cc/default) >= 1.0.25 with crate(cc/default) < 2.0.0) -BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) -BuildRequires: (crate(libz-sys/default) >= 1.0.22 with crate(libz-sys/default) < 2.0.0) -BuildRequires: (crate(pkg-config/default) >= 0.3.7 with crate(pkg-config/default) < 0.4.0) -BuildRequires: (pkgconfig(libgit2) >= 0.28 with pkgconfig(libgit2) < 0.29) -%global _description \ -Native bindings to the libgit2 library. +%global _description %{expand: +Native bindings to the libgit2 library.} %description %{_description} @@ -122,6 +120,12 @@ which use "ssh_key_from_memory" feature of "%{crate}" crate. rm -vrf libgit2 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires +%if ! %{__cargo_skip_build} +echo '(pkgconfig(libgit2) >= 0.28 with pkgconfig(libgit2) < 0.29)' +%endif + %build %cargo_build @@ -134,6 +138,9 @@ rm -vrf libgit2 %endif %changelog +* Tue Jun 18 23:40:18 CEST 2019 Igor Gnatenko - 0.8.1-1 +- Update to 0.8.1 + * Fri Jun 07 2019 Josh Stone - 0.8.0-1 - Update to 0.8.0 diff --git a/sources b/sources index 7efbb75..4557bff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libgit2-sys-0.8.0.crate) = 0892697a330852840d4a77891cb2bfe9befe2f31438838f8c327045b2a253d7b343080bd2ea32d39ed9eebf3699d824f666f1a1d4e92ea75b4f2a165e30b3d84 +SHA512 (libgit2-sys-0.8.1.crate) = 15cc37fde84725195441c066294392263a8cead13439c02a114b031c41dc6c508fe440b0866c4e70c6bac5060921629432d92cbb767429a75f8462a6854a6e72