Add: mdbook (#6254) (#6275)

This commit is contained in:
Raboneko
2025-09-02 20:18:44 -07:00
committed by GitHub
parent 5bc57376bc
commit f9b7faaf9f
3 changed files with 48 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "mdbook.spec"
}
}
+42
View File
@@ -0,0 +1,42 @@
Name: mdBook
Version: 0.4.52
Release: 1%?dist
Summary: Create a book from markdown files
License: MPL-2.0 AND MIT AND (Apache-2.0 OR MIT) AND Apache-2.0 AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND CC0-1.0 AND ISC AND (MIT OR Zlib OR Apache-2.0) AND Unicode-3.0 AND (Apache-2.0 OR BSL-1.0) AND (MIT AND BSD-3-Clause)
URL: https://github.com/rust-lang/mdBook
Source0: %url/archive/refs/tags/v%{version}.tar.gz
BuildRequires: anda-srpm-macros
BuildRequires: cargo-rpm-macros
BuildRequires: gcc
BuildRequires: cargo
BuildRequires: mold
Packager: Owen Zimmerman <owen@fyralabs.com>
Provides: mdbook
%description
mdBook is a utility to create modern online books from Markdown files.
%prep
%autosetup -n %{name}-%{version}
%cargo_prep_online
%build
%cargo_build
%install
%cargo_install
%cargo_license_summary_online
%{cargo_license_online -a} > LICENSE.dependencies
%files
%doc README.md CONTRIBUTING.md CHANGELOG.md
%license LICENSE
%license LICENSE.dependencies
%{_bindir}/mdbook
%changelog
* Mon Sep 01 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("rust-lang/mdBook"));