|
|
@ -5,7 +5,7 @@
|
|
|
|
%global crate sysinfo
|
|
|
|
%global crate sysinfo
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-sysinfo
|
|
|
|
Name: rust-sysinfo
|
|
|
|
Version: 0.27.7
|
|
|
|
Version: 0.28.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Library to get system information such as processes, CPUs, disks, components and networks
|
|
|
|
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
|
|
|
|
Patch: sysinfo-fix-metadata-auto.diff
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * drop macOS-specific features
|
|
|
|
# * drop macOS-specific features
|
|
|
|
# * drop unused cdylib build target
|
|
|
|
|
|
|
|
Patch: sysinfo-fix-metadata.diff
|
|
|
|
Patch: sysinfo-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
@ -103,6 +102,18 @@ use the "rayon" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+rayon-devel
|
|
|
|
%files -n %{name}+rayon-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%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
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
@ -116,15 +127,15 @@ use the "rayon" feature of the "%{crate}" crate.
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# skip tests that fail when run on vms, on tmpfs, or in systemd-nspawn
|
|
|
|
# skip tests that fail when run on vms, on tmpfs, or in systemd-nspawn
|
|
|
|
%if 0%{?fedora} >= 38
|
|
|
|
%if 0%{?fedora} >= 38
|
|
|
|
SKIP_TESTS=""
|
|
|
|
SKIP_TESTS=""
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
SKIP_TESTS=" --skip test_disks"
|
|
|
|
SKIP_TESTS=" --skip test::check_all_process_uids_resolvable --skip test_disks"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%ifarch s390x
|
|
|
|
%ifarch s390x
|
|
|
|
# these tests panic with assertion failures on s390x
|
|
|
|
# these tests panic with assertion failures on s390x
|
|
|
|
SKIP_TESTS+=" --skip test::check_cpus_number --skip test::check_processes_cpu_usage"
|
|
|
|
SKIP_TESTS+=" --skip test::check_cpus_number --skip test::check_processes_cpu_usage"
|
|
|
|