From fff6d5191b1838109a8430ef0836fd8c5183cb66 Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Sat, 21 Dec 2019 01:54:41 +0200 Subject: [PATCH] Update to 0.10.3 --- .gitignore | 1 + rust-sysinfo.spec | 21 ++++++++++++--------- sources | 2 +- sysinfo-fix-metadata.diff | 10 +++++----- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 077f9e5..3fa6ac1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sysinfo-0.10.2.crate +/sysinfo-0.10.3.crate diff --git a/rust-sysinfo.spec b/rust-sysinfo.spec index 1c5c699..5f3f1b0 100644 --- a/rust-sysinfo.spec +++ b/rust-sysinfo.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 11 +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate sysinfo Name: rust-%{crate} -Version: 0.10.2 -Release: 2%{?dist} +Version: 0.10.3 +Release: 1%{?dist} Summary: Library to handle processes # Upstream license specification: MIT @@ -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,7 +53,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}+c-interface-devel Summary: %{summary} @@ -65,7 +65,7 @@ This package contains library source intended for building other packages which use "c-interface" feature of "%{crate}" crate. %files -n %{name}+c-interface-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} @@ -77,7 +77,7 @@ This package contains library source intended for building other packages which use "debug" feature of "%{crate}" crate. %files -n %{name}+debug-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 @@ -94,11 +94,14 @@ which use "debug" feature of "%{crate}" crate. %if %{with check} %check -# https://github.com/GuillaumeGomez/sysinfo/issues/227 -%cargo_test -- -- --skip traits::SystemExt::new_with_specifics +%cargo_test -- -- --skip system::tests::test_get_process \ + --skip system::tests::test_refresh_process %endif %changelog +* Sat Dec 21 01:11:12 EET 2019 Artem Polishchuk - 0.10.3-1 +- Update to 0.10.3 + * Fri Dec 13 18:40:36 CET 2019 Igor Gnatenko - 0.10.2-2 - Enable tests diff --git a/sources b/sources index 5677c6d..bd6d072 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sysinfo-0.10.2.crate) = 907907568ae3a497b448b67ef9f6687fa702fc8117287487dc185cb2450277e38063b95a8f93b5510c02b660e09b373e634f5fe030663d1eea01dff45414db0b +SHA512 (sysinfo-0.10.3.crate) = 0a30d1a76a3bf766b56215bb7badd991d7b8b11de4dd24607249e174ea240d336e57e648db43b755678cf2aa34bc49eb51cf85a8fe3f449604fb8714ff6c62af diff --git a/sysinfo-fix-metadata.diff b/sysinfo-fix-metadata.diff index 3576206..480cfce 100644 --- a/sysinfo-fix-metadata.diff +++ b/sysinfo-fix-metadata.diff @@ -1,12 +1,12 @@ ---- sysinfo-0.10.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ sysinfo-0.10.2/Cargo.toml 2019-12-13T17:40:36.455517+00:00 -@@ -39,12 +39,6 @@ +--- sysinfo-0.10.3/Cargo.toml 2019-12-16T23:24:19+00:00 ++++ sysinfo-0.10.3/Cargo.toml 2019-12-20T23:19:05.377217+00:00 +@@ -39,12 +39,7 @@ debug = ["libc/extra_traits"] - [target."cfg(not(target_os = \"unknown\"))".dependencies.libc] + [target."cfg(not(any(target_os = \"unknown\", target_arch = \"wasm32\")))".dependencies.libc] version = "0.2" -[target."cfg(windows)".dependencies.ntapi] -version = "0.3" -- + -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["fileapi", "handleapi", "ioapiset", "minwindef", "pdh", "psapi", "synchapi", "sysinfoapi", "winbase", "winerror", "winioctl", "winnt", "oleauto", "wbemcli", "rpcdce", "combaseapi", "objidl", "objbase"]