File topgrade.spec of Package topgrade
Name: topgrade
Version: 11.0.2
Release: 0
Summary: Keeping your system up to date with one command
License: GPL-3.0
Group: System/Console
URL: https://topgrade-rs.github.io
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo-packaging
Recommends: libnotify-tools
# Disable this line if you wish to support all platforms.
# In most situations, you will likely only target tier1 arches for user facing components.
ExclusiveArch: %{rust_tier1_arches}
%description
Topgrade detects which tools you use and runs the appropriate commands to update them.
%prep
%autosetup -a1
install -D -m 644 %{SOURCE2} .cargo/config
%build
%{cargo_build}
%install
%{cargo_install}
%check
%{cargo_test}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}