From d89b4577eff9bba055e9878b69b09e3d0720ce59 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 25 Dec 2019 11:02:07 +0100 Subject: [PATCH] Bump git2 to 0.11 Signed-off-by: Igor Gnatenko --- rust-tokei.spec | 30 ++++++++++++++++++------------ tokei-fix-metadata.diff | 11 +++++++++++ 2 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 tokei-fix-metadata.diff diff --git a/rust-tokei.spec b/rust-tokei.spec index ef3599d..9880c3a 100644 --- a/rust-tokei.spec +++ b/rust-tokei.spec @@ -1,17 +1,20 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 13 %bcond_without check %global crate tokei Name: rust-%{crate} Version: 10.1.0 -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 +# * Update git2 to 0.11, https://github.com/XAMPPRocky/tokei/commit/6ebf893dcff3721b6aa083e3d1131fc902f035b2 +Patch0: tokei-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -47,7 +50,7 @@ which use "%{crate}" crate. %files devel %license LICENCE-MIT LICENCE-APACHE -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -59,7 +62,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+all-devel Summary: %{summary} @@ -71,7 +74,7 @@ This package contains library source intended for building other packages which use "all" feature of "%{crate}" crate. %files -n %{name}+all-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+cbor-devel Summary: %{summary} @@ -83,7 +86,7 @@ This package contains library source intended for building other packages which use "cbor" feature of "%{crate}" crate. %files -n %{name}+cbor-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+hex-devel Summary: %{summary} @@ -95,7 +98,7 @@ This package contains library source intended for building other packages which use "hex" feature of "%{crate}" crate. %files -n %{name}+hex-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} @@ -107,7 +110,7 @@ This package contains library source intended for building other packages which use "json" feature of "%{crate}" crate. %files -n %{name}+json-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_cbor-devel Summary: %{summary} @@ -119,7 +122,7 @@ This package contains library source intended for building other packages which use "serde_cbor" feature of "%{crate}" crate. %files -n %{name}+serde_cbor-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} @@ -131,7 +134,7 @@ This package contains library source intended for building other packages which use "serde_json" feature of "%{crate}" crate. %files -n %{name}+serde_json-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_yaml-devel Summary: %{summary} @@ -143,7 +146,7 @@ This package contains library source intended for building other packages which use "serde_yaml" feature of "%{crate}" crate. %files -n %{name}+serde_yaml-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+yaml-devel Summary: %{summary} @@ -155,7 +158,7 @@ This package contains library source intended for building other packages which use "yaml" feature of "%{crate}" crate. %files -n %{name}+yaml-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -176,6 +179,9 @@ which use "yaml" feature of "%{crate}" crate. %endif %changelog +* Wed Dec 25 11:00:37 CET 2019 Igor Gnatenko - 10.1.0-2 +- Update git2 to 0.11 + * Tue Nov 19 09:33:39 CET 2019 Igor Gnatenko - 10.1.0-1 - Update to 10.1.0 diff --git a/tokei-fix-metadata.diff b/tokei-fix-metadata.diff new file mode 100644 index 0000000..93cc823 --- /dev/null +++ b/tokei-fix-metadata.diff @@ -0,0 +1,11 @@ +--- tokei-10.1.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ tokei-10.1.0/Cargo.toml 2019-12-25T10:00:37.449891+00:00 +@@ -83,7 +83,7 @@ + [dependencies.toml] + version = "0.5.5" + [dev-dependencies.git2] +-version = "0.10.1" ++version = "0.11.0" + features = [] + default-features = false +