# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate sysinfo Name: rust-%{crate} Version: 0.23.0 Release: %autorelease Summary: Library to get system information such as processes, processors, disks, components and networks # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/sysinfo Source: %{crates_source} # Initial patched metadata # * No Windows deps # * No Mac OS deps Patch0: sysinfo-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Library to get system information such as processes, processors, disks, components and networks.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "apple-app-store" feature of "%{crate}" crate. %files -n %{name}+apple-app-store-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "c-interface" feature of "%{crate}" crate. %files -n %{name}+c-interface-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "debug" feature of "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "multithread" feature of "%{crate}" crate. %files -n %{name}+multithread-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "rayon" feature of "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %if %{with check} %check # https://github.com/GuillaumeGomez/sysinfo/issues/517 # https://github.com/GuillaumeGomez/sysinfo/issues/518 # https://github.com/GuillaumeGomez/sysinfo/issues/519 %cargo_test -- -- --skip test::check_processes_cpu_usage --skip test::check_uid_gid --skip test_disks --skip test_physical_core_numbers --skip test_process_disk_usage %endif %changelog %autochangelog