|
|
|
@ -1,32 +1,34 @@
|
|
|
|
|
# Generated by rust2rpm-9-1.fc30
|
|
|
|
|
%bcond_with check
|
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate sys-info
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.5.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.5.8
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Get system information in Rust
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/sys-info
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.29 with crate(libc/default) < 0.3.0)
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
Get system information in Rust.
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Get system information in Rust.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
Requires: %{_bindir}/hostname
|
|
|
|
|
Requires: /usr/bin/hostname
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
@ -55,6 +57,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
@ -65,13 +70,16 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%check
|
|
|
|
|
# https://github.com/FillZpp/sys-info-rs/issues/25
|
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
|
%cargo_test || :
|
|
|
|
|
%cargo_test -- -- --skip test::test_hostname --skip test::test_cpu_speed
|
|
|
|
|
%else
|
|
|
|
|
%cargo_test
|
|
|
|
|
%cargo_test -- -- --skip test::test_hostname
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 11 10:24:11 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.8-1
|
|
|
|
|
- Update to 0.5.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|