diff --git a/.gitignore b/.gitignore index f624a7f..57bf921 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /silver-1.0.5.crate +/silver-1.0.7.crate diff --git a/0001-Convert-get_current_username-into-string.patch b/0001-Convert-get_current_username-into-string.patch deleted file mode 100644 index b4b7d13..0000000 --- a/0001-Convert-get_current_username-into-string.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 64072e0655fea2a9208aa1a24d57922276d14bcf Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= -Date: Fri, 26 Apr 2019 20:40:16 +0200 -Subject: [PATCH] Convert get_current_username into string -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - - - Convert get_current_username into string - -Signed-off-by: Robert-André Mauchin ---- - src/modules/user.rs | 2 +- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/src/modules/user.rs b/src/modules/user.rs -index 752881b..047b1c3 100644 ---- a/src/modules/user.rs -+++ b/src/modules/user.rs -@@ -5,7 +5,7 @@ use Segment; - pub fn segment(segment: &mut Segment, _: &[&str]) { - segment.value = format!( - "{}@{}", -- users::get_current_username().unwrap(), -+ users::get_current_username().unwrap().into_string().unwrap(), - hostname::get_hostname().unwrap() - ) - } --- -2.21.0 - diff --git a/rust-silver.spec b/rust-silver.spec index 8384be0..933bc0d 100644 --- a/rust-silver.spec +++ b/rust-silver.spec @@ -1,24 +1,17 @@ -# Generated by rust2rpm +# Generated by rust2rpm-9-1.fc30 %bcond_without check %global crate silver Name: rust-%{crate} -Version: 1.0.5 +Version: 1.0.7 Release: 1%{?dist} Summary: Cross-shell customizable powerline-like prompt with icons +# Upstream license specification: Unlicense License: Unlicense URL: https://crates.io/crates/silver Source: %{crates_source} -# Initial patched metadata -# https://github.com/reujab/silver/pull/6 -# - Bump git2 to 0.8.0 -# - Bump rust-ini to 0.13.0 -# - Bump users to 0.9.0 -Patch0: silver-fix-metadata.diff -# For users > 0.8.0: Convert get_current_username into string -Patch1: 0001-Convert-get_current_username-into-string.patch ExclusiveArch: %{rust_arches} @@ -68,5 +61,8 @@ Summary: %{summary} %endif %changelog +* Thu May 09 2019 Josh Stone - 1.0.7-1 +- Update to 1.0.7 + * Fri Apr 26 20:18:32 CEST 2019 Robert-André Mauchin - 1.0.5-1 - Initial package diff --git a/silver-fix-metadata.diff b/silver-fix-metadata.diff deleted file mode 100644 index b5d72f2..0000000 --- a/silver-fix-metadata.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- silver-1.0.5/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ silver-1.0.5/Cargo.toml 2019-04-26T18:18:32.057602+00:00 -@@ -31,7 +31,7 @@ - version = "1.0.1" - - [dependencies.git2] --version = "0.7.2" -+version = "0.8.0" - - [dependencies.hostname] - version = "0.1.5" -@@ -49,10 +49,10 @@ - version = "1.0.1" - - [dependencies.rust-ini] --version = "0.12.2" -+version = "0.13.0" - - [dependencies.url] - version = "1.7.1" - - [dependencies.users] --version = "0.7.0" -+version = "0.9.0" diff --git a/sources b/sources index 043c07c..da347bf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (silver-1.0.5.crate) = 06d087f0824404f4343e728b66a69c9e37f98c3cda931b0d7d3a87dc6f4f89ae433976d7ed9fa8b12bd047b298ea9c4aaa7305c538cea1d04f3de7c8f4a7a8fb +SHA512 (silver-1.0.7.crate) = 265ec494f79b3563f6decb5b807368b51cb33d2078c5d27ace222a986ad7282dbd0fbc5e21e84418911c6ed6684e9d062d0af5c7f661ae82c537931f71b9f9d7