# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate sysinfo Name: rust-sysinfo0.22 Version: 0.22.5 Release: %autorelease Summary: Library to get system information such as processes, processors, disks, components and networks License: MIT URL: https://crates.io/crates/sysinfo Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: sysinfo-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: Library to get system information such as processes, processors, disks, components and networks.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc ADDING_NEW_PLATFORMS.md %doc CHANGELOG.md %doc README.md %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/ADDING_NEW_PLATFORMS.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+apple-app-store-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+apple-app-store-devel %{_description} This package contains library source intended for building other packages which use the "apple-app-store" feature of the "%{crate}" crate. %files -n %{name}+apple-app-store-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+apple-sandbox-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+apple-sandbox-devel %{_description} This package contains library source intended for building other packages which use the "apple-sandbox" feature of the "%{crate}" crate. %files -n %{name}+apple-sandbox-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+c-interface-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+c-interface-devel %{_description} This package contains library source intended for building other packages which use the "c-interface" feature of the "%{crate}" crate. %files -n %{name}+c-interface-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+multithread-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multithread-devel %{_description} This package contains library source intended for building other packages which use the "multithread" feature of the "%{crate}" crate. %files -n %{name}+multithread-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unknown-ci-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unknown-ci-devel %{_description} This package contains library source intended for building other packages which use the "unknown-ci" feature of the "%{crate}" crate. %files -n %{name}+unknown-ci-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install # FIXME: install shared library %if %{with check} %check # * skip tests that fail when run on VMs, on tmpfs, or in systemd-nspawn %cargo_test -- -- --skip test_disks --skip test_physical_core_numbers --skip check_processes_cpu_usage --skip test_process_disk_usage %endif %changelog %autochangelog