You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-sysinfo/rust-sysinfo.spec

143 lines
3.8 KiB

# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate sysinfo
Name: rust-%{crate}
Version: 0.19.2
Release: %autorelease
Summary: Library to get system information
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/sysinfo
Source: %{crates_source}
# Initial patched metadata
5 years ago
# * 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:
5 years ago
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
5 years ago
%{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
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
4 years ago
%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}+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
5 years ago
%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
5 years ago
%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
%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
4 years ago
# 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_uid_gid --skip test_disks --skip test_physical_core_numbers
%endif
%changelog
%autochangelog