diff --git a/.gitignore b/.gitignore index db034d1..ec7a589 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ /sysinfo-0.23.13.crate /sysinfo-0.24.7.crate /sysinfo-0.27.7.crate +/sysinfo-0.28.0.crate diff --git a/rust-sysinfo.spec b/rust-sysinfo.spec index 8518975..6cb8917 100644 --- a/rust-sysinfo.spec +++ b/rust-sysinfo.spec @@ -5,7 +5,7 @@ %global crate sysinfo Name: rust-sysinfo -Version: 0.27.7 +Version: 0.28.0 Release: %autorelease Summary: Library to get system information such as processes, CPUs, disks, components and networks @@ -16,7 +16,6 @@ Source: %{crates_source} Patch: sysinfo-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop macOS-specific features -# * drop unused cdylib build target Patch: sysinfo-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -103,6 +102,18 @@ use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -116,15 +127,15 @@ use the "rayon" feature of the "%{crate}" crate. %install %cargo_install -%if %{with check} %check # skip tests that fail when run on vms, on tmpfs, or in systemd-nspawn %if 0%{?fedora} >= 38 SKIP_TESTS="" %else -SKIP_TESTS=" --skip test_disks" +SKIP_TESTS=" --skip test::check_all_process_uids_resolvable --skip test_disks" %endif +%if %{with check} %ifarch s390x # these tests panic with assertion failures on s390x SKIP_TESTS+=" --skip test::check_cpus_number --skip test::check_processes_cpu_usage" diff --git a/sources b/sources index b8f6f0e..cd8fb95 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sysinfo-0.27.7.crate) = f96f8a1717fe47c3c876b42abf5b56badff27c940da6e50c5c83e3becce3292306c203f1ec14656ccf6389c89a43b4194082d398a285c58e840f392e99139cdd +SHA512 (sysinfo-0.28.0.crate) = 85687f7809d52209e38aa53432125b29dd193c13a48439204ff747564dce12bab1675c5f148b5001b0a5d9f30e91ec93265dd905248bd361e4340228a3fc6de5 diff --git a/sysinfo-fix-metadata-auto.diff b/sysinfo-fix-metadata-auto.diff index b198de8..c2ce9e1 100644 --- a/sysinfo-fix-metadata-auto.diff +++ b/sysinfo-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sysinfo-0.27.7/Cargo.toml 2023-02-16T20:14:29.958242+00:00 -@@ -52,51 +52,9 @@ +--- sysinfo-0.28.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sysinfo-0.28.0/Cargo.toml 2023-02-22T18:42:41.367029+00:00 +@@ -58,52 +58,9 @@ [target."cfg(all(target_os = \"linux\", not(target_os = \"android\")))".dev-dependencies.tempfile] version = "3.2" @@ -51,4 +51,5 @@ - "std", - "iphlpapi", - "winsock2", +- "sddl", -] diff --git a/sysinfo-fix-metadata.diff b/sysinfo-fix-metadata.diff index 2795c83..5868494 100644 --- a/sysinfo-fix-metadata.diff +++ b/sysinfo-fix-metadata.diff @@ -1,15 +1,7 @@ ---- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sysinfo-0.27.7/Cargo.toml 2023-02-16T20:14:44.222298+00:00 -@@ -30,7 +30,6 @@ - name = "sysinfo" - crate_type = [ - "rlib", -- "cdylib", - ] - - [dependencies.cfg-if] -@@ -41,13 +40,10 @@ - optional = true +--- sysinfo-0.28.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sysinfo-0.28.0/Cargo.toml 2023-02-22T18:43:20.922551+00:00 +@@ -47,13 +47,10 @@ + version = "1.0" [features] -apple-app-store = ["apple-sandbox"]