Name: mdbook Version: 0.4.52 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/refs/heads/master/LICENSE BuildRequires: cargo %description mdBook is a utility to create modern online books from Markdown files. %prep #====----------------------------------------------------------------------------------------- prep cp %SOURCE0 . %build #=====--------------------------------------------------------------------------------------- build %install #=======----------------------------------------------------------------------------------- install cargo install %{name} --root %{buildroot}%{_prefix} strip %{buildroot}%{_bindir}/mdbook rm %{buildroot}%{_prefix}/.crates* %check #=====--------------------------------------------------------------------------------------- check %{buildroot}%{_bindir}/mdbook --version | grep %{version} %files #=====--------------------------------------------------------------------------------------- files %license LICENSE %{_bindir}/mdbook %changelog #=========------------------------------------------------------------------------------- changelog * Fri Sep 12 2025 Dejan Lekić - 0.4.52 - Initial version of the mdbook RPM spec file.