diff --git a/anda/tools/mdbook/anda.hcl b/anda/tools/mdbook/anda.hcl new file mode 100644 index 0000000000..442f07baee --- /dev/null +++ b/anda/tools/mdbook/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "mdbook.spec" + } +} diff --git a/anda/tools/mdbook/mdbook.spec b/anda/tools/mdbook/mdbook.spec new file mode 100644 index 0000000000..8a600d4450 --- /dev/null +++ b/anda/tools/mdbook/mdbook.spec @@ -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 + +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 +- Initial commit diff --git a/anda/tools/mdbook/update.rhai b/anda/tools/mdbook/update.rhai new file mode 100644 index 0000000000..d56cee7e69 --- /dev/null +++ b/anda/tools/mdbook/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("rust-lang/mdBook"));