File image-janitor.spec of Package image-janitor
Name:           image-janitor
Version:        0.2.0
Release:        0
Summary:        Cleans up unused kernel drivers and firmware
License:        GPL-2.0-or-later
URL:            https://github.com/fcrozat/image-janitor
Source0:        image-janitor-%{version}.tar.zst
Source1:	registry.tar.zst
BuildRequires:  cargo
BuildRequires:  cargo-packaging
%description
A simple tool to cleanup unused kernel drivers and firmware files.
%prep
%autosetup -p1 -a1
%build
export CARGO_HOME=$PWD/.cargo
%{cargo_build}
%install
export CARGO_HOME=$PWD/.cargo
%{cargo_install}
mkdir -p %{buildroot}/%{_datadir}/%{name}
install -m644 data/module.list* %{buildroot}/%{_datadir}/%{name}
%check
export CARGO_HOME=$PWD/.cargo
%{cargo_test}
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%changelog