Name: mdbook Version: 0.4.37 Release: 1%{?dist} Summary: Creates a book from markdown files License: MPL-2.0 URL: https://crates.io/crates/mdbook Source0: https://raw.githubusercontent.com/rust-lang/mdBook/master/LICENSE BuildRequires: cargo %description mdBook is a utility to create modern online books from Markdown files. %prep cp %SOURCE0 . %build %install cargo install %{name} --root %{buildroot}%{_prefix} strip %{buildroot}%{_bindir}/mdbook rm %{buildroot}%{_prefix}/.crates* %check %{buildroot}%{_bindir}/mdbook --version | grep %{version} %files %license LICENSE %{_bindir}/mdbook %changelog * Fri Mar 8 2024 Jens Petersen - 0.4.37-1 - initial copr package