diff --git a/.gitignore b/.gitignore index 0b640ea..db034d1 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ /sysinfo-0.19.2.crate /sysinfo-0.23.13.crate /sysinfo-0.24.7.crate +/sysinfo-0.27.7.crate diff --git a/rust-sysinfo.spec b/rust-sysinfo.spec index 824928e..8af3e00 100644 --- a/rust-sysinfo.spec +++ b/rust-sysinfo.spec @@ -5,9 +5,9 @@ %global crate sysinfo Name: rust-sysinfo -Version: 0.24.7 +Version: 0.27.7 Release: %autorelease -Summary: Library to get system information +Summary: Library to get system information such as processes, CPUs, disks, components and networks License: MIT URL: https://crates.io/crates/sysinfo @@ -117,8 +117,14 @@ use the "rayon" feature of the "%{crate}" crate. %if %{with check} %check -# * skip tests that fail when run on VMs, on tmpfs, or in systemd-nspawn -%cargo_test -- -- --skip test::check_processes_cpu_usage --skip test::check_cpus_number --skip test_disks +%ifarch s390x +# these tests panic with assertion failures on s390x +%cargo_test -- -- \ + --skip test::check_cpus_number \ + --skip test::check_processes_cpu_usage +%else +%cargo_test +%endif %endif %changelog diff --git a/sources b/sources index 31906e3..b8f6f0e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sysinfo-0.24.7.crate) = d566701996b55cd54e656f196a824025a23b3c8e647594108aca751c97ec1c35bb32333500c86d2335e9f35c626bcea5dce54340244a9ffdd88411fe4634e8e3 +SHA512 (sysinfo-0.27.7.crate) = f96f8a1717fe47c3c876b42abf5b56badff27c940da6e50c5c83e3becce3292306c203f1ec14656ccf6389c89a43b4194082d398a285c58e840f392e99139cdd diff --git a/sysinfo-fix-metadata-auto.diff b/sysinfo-fix-metadata-auto.diff index 161af6f..8ef7e6a 100644 --- a/sysinfo-fix-metadata-auto.diff +++ b/sysinfo-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- sysinfo-0.24.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sysinfo-0.24.7/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -53,49 +53,9 @@ +--- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -52,51 +52,9 @@ [target."cfg(all(target_os = \"linux\", not(target_os = \"android\")))".dev-dependencies.tempfile] version = "3.2" @@ -14,7 +14,7 @@ version = "^0.2.112" -[target."cfg(windows)".dependencies.ntapi] --version = "0.3" +-version = "0.4" - -[target."cfg(windows)".dependencies.winapi] -version = "0.3.9" @@ -49,4 +49,6 @@ - "securitybaseapi", - "shellapi", - "std", +- "iphlpapi", +- "winsock2", -] diff --git a/sysinfo-fix-metadata.diff b/sysinfo-fix-metadata.diff index ae79010..035cd17 100644 --- a/sysinfo-fix-metadata.diff +++ b/sysinfo-fix-metadata.diff @@ -1,6 +1,6 @@ ---- sysinfo-0.24.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sysinfo-0.24.7/Cargo.toml 2022-12-15T13:46:46.677312+00:00 -@@ -42,13 +42,10 @@ +--- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sysinfo-0.27.7/Cargo.toml 2023-01-22T21:19:34.354379+00:00 +@@ -41,13 +41,10 @@ optional = true [features]