From ab65fedceed6c12557ad909fee1983fbbd4763c3 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Tue, 11 Feb 2020 14:17:47 +0100 Subject: [PATCH] Update to 0.3.0 Signed-off-by: Igor Raits --- .gitignore | 1 + hostname-fix-metadata.diff | 13 +++++++------ rust-hostname.spec | 27 +++++++++++++++------------ sources | 2 +- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 5900ba4..96e0980 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /hostname-0.1.5.crate +/hostname-0.3.0.crate diff --git a/hostname-fix-metadata.diff b/hostname-fix-metadata.diff index cc35f60..3e05fe5 100644 --- a/hostname-fix-metadata.diff +++ b/hostname-fix-metadata.diff @@ -1,8 +1,9 @@ ---- hostname-0.1.5/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ hostname-0.1.5/Cargo.toml 2019-06-21T19:37:03.848369+00:00 -@@ -30,5 +30,3 @@ - unstable = [] +--- hostname-0.3.0/Cargo.toml 2019-12-19T08:42:51+00:00 ++++ hostname-0.3.0/Cargo.toml 2020-02-11T13:16:41.845551+00:00 +@@ -32,6 +32,3 @@ + set = [] [target."cfg(any(unix, target_os = \"redox\"))".dependencies.libc] version = "^0.2" --[target."cfg(windows)".dependencies.winutil] --version = "^0.1.1" +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "^0.3" +-features = ["sysinfoapi"] diff --git a/rust-hostname.spec b/rust-hostname.spec index 83417bb..8b96131 100644 --- a/rust-hostname.spec +++ b/rust-hostname.spec @@ -1,13 +1,13 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate hostname Name: rust-%{crate} -Version: 0.1.5 -Release: 5%{?dist} -Summary: Get hostname +Version: 0.3.0 +Release: 1%{?dist} +Summary: Cross-platform system's host name functions # Upstream license specification: MIT License: MIT @@ -25,7 +25,7 @@ BuildArch: noarch BuildRequires: rust-packaging %global _description %{expand: -Get hostname. Compatible with windows and linux, redox.} +Cross-platform system's host name functions.} %description %{_description} @@ -41,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -53,19 +53,19 @@ 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}+unstable-devel +%package -n %{name}+set-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+unstable-devel %{_description} +%description -n %{name}+set-devel %{_description} This package contains library source intended for building other packages -which use "unstable" feature of "%{crate}" crate. +which use "set" feature of "%{crate}" crate. -%files -n %{name}+unstable-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%files -n %{name}+set-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -86,6 +86,9 @@ which use "unstable" feature of "%{crate}" crate. %endif %changelog +* Tue Feb 11 14:16:41 CET 2020 Igor Raits - 0.3.0-1 +- Update to 0.3.0 + * Thu Jan 30 2020 Fedora Release Engineering - 0.1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 29b271f..623518c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (hostname-0.1.5.crate) = 1b822bc6261cda2a52518c625790878eb4592fbccbea72b503da42322659b8e6c95ccac442753a6cf1d5d612413679221650e0c584bb06162c3b1c89d8bafb02 +SHA512 (hostname-0.3.0.crate) = 1858028a9dc28dd6952c3416ccbda834f74fa3d448586c7faccd88c1d439fd41f4f3a000d7abe94cbf2f60f5fe6a381fccc3616e4956ebea97f5f88b6642ce3e