From 244c55b1e58ddaacd7334076fffa95c790d1d8d2 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 9 Dec 2019 09:35:10 -0800 Subject: [PATCH] Update to 0.5.1 --- .gitignore | 1 + home-fix-metadata.diff | 11 ++++++----- rust-home.spec | 23 ++++++++++++++++------- sources | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index a01da3e..c3f898a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /home-0.3.2.crate /home-0.3.3.crate /home-0.3.4.crate +/home-0.5.1.crate diff --git a/home-fix-metadata.diff b/home-fix-metadata.diff index 0a8a5b2..feafb1e 100644 --- a/home-fix-metadata.diff +++ b/home-fix-metadata.diff @@ -1,11 +1,12 @@ ---- home-0.3.4/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ home-0.3.4/Cargo.toml 2019-05-07T05:35:00.064849+00:00 -@@ -18,9 +18,3 @@ +--- home-0.5.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ home-0.5.1/Cargo.toml 2019-12-07T02:23:47.278876+00:00 +@@ -19,10 +19,3 @@ documentation = "https://docs.rs/home" - license = "MIT/Apache-2.0" + license = "MIT OR Apache-2.0" repository = "https://github.com/brson/home" -[target."cfg(windows)".dependencies.scopeguard] --version = "0.3" +-version = "1" +-default-features = false - -[target."cfg(windows)".dependencies.winapi] -version = "0.3" diff --git a/rust-home.spec b/rust-home.spec index 7d74235..b009c64 100644 --- a/rust-home.spec +++ b/rust-home.spec @@ -1,16 +1,15 @@ -# Generated by rust2rpm-9-1.fc31 +# Generated by rust2rpm 10 %bcond_with check %global debug_package %{nil} %global crate home Name: rust-%{crate} -Version: 0.3.4 -Release: 4%{?dist} +Version: 0.5.1 +Release: 1%{?dist} Summary: Shared definitions of home directories -# Upstream license specification: MIT/Apache-2.0 -# https://github.com/brson/home/issues/2 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/home Source: %{crates_source} @@ -19,11 +18,14 @@ Source: %{crates_source} Patch0: home-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%global _description \ -Shared definitions of home directories. +%global _description %{expand: +Shared definitions of home directories.} %description %{_description} @@ -37,6 +39,7 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel +%license LICENSE-APACHE LICENSE-MIT %doc README.md %{cargo_registry}/%{crate}-%{version}/ @@ -56,6 +59,9 @@ which use "default" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -68,6 +74,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sat Dec 07 2019 Josh Stone - 0.5.1-1 +- Update to 0.5.1 + * Fri Jul 26 2019 Fedora Release Engineering - 0.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 51753b4..d88069c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (home-0.3.4.crate) = 0e6fa44f4464229e833f8ffa893fd84dcd0bff181c718adcbe5f202b76bd2e16044aa44e1828d4eb332fc71637a3e9ac432a048ad2c6e8f87c719e9e88d4a9b1 +SHA512 (home-0.5.1.crate) = 338cae9c546881bcd1b25c03e1913a4c90142d4f2e7fb0b74f9169f529710251c185bd7fdd6be37cc55515d64384d568aa989b868a90f46f74ef7c2e3d701ae4