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.
62 lines
1.3 KiB
62 lines
1.3 KiB
# Generated by rust2rpm 16
|
|
%bcond_without check
|
|
%global __cargo_skip_build 0
|
|
|
|
%global crate below
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.2.0
|
|
Release: 1%{?dist}
|
|
Summary: Interactive tool to view and record historical system data
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
License: ASL 2.0
|
|
URL: https://crates.io/crates/below
|
|
Source: %{crates_source}
|
|
# Bump serde to 1.0.126, tokio to 1.6.1, toml to 0.58, users to 0.11
|
|
Patch0: below-fix-metadata.diff
|
|
# Fix record_replay_integration test
|
|
Patch1: below-fix-tests.patch
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
Interactive tool to view and record historical system data.}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE
|
|
%{_bindir}/%{crate}
|
|
%dir %{_localstatedir}/log/%{crate}
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
install -d -m1777 %{buildroot}%{_localstatedir}/log/%{crate}
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
* Tue Jun 15 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.2.0-1
|
|
- Initial package
|