2022-11-07 00:14:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package mdbook
|
|
|
|
#
|
2023-01-15 22:45:03 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-11-07 00:14:24 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mdbook
|
2023-08-01 09:36:34 +02:00
|
|
|
Version: 0.4.32
|
2022-11-07 00:14:24 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Create books from markdown
|
2022-12-13 10:17:08 +01:00
|
|
|
License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND MPL-2.0
|
2022-11-07 00:14:24 +01:00
|
|
|
URL: https://github.com/rust-lang/mdBook
|
2023-02-15 10:55:43 +01:00
|
|
|
Source0: mdBook-%{version}.tar.zst
|
|
|
|
Source1: vendor.tar.zst
|
2022-11-07 00:14:24 +01:00
|
|
|
Source2: cargo_config
|
|
|
|
BuildRequires: cargo-packaging
|
|
|
|
BuildRequires: rust+cargo
|
2023-03-01 11:26:22 +01:00
|
|
|
BuildRequires: zstd
|
2023-03-01 11:19:42 +01:00
|
|
|
ExclusiveArch: %{rust_tier1_arches}
|
2022-11-07 00:14:24 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
mdbook is a utility to create books from Markdown files
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -a1 -n mdBook-%{version}
|
|
|
|
mkdir .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
|
|
|
|
|
|
|
%build
|
2023-01-15 22:45:03 +01:00
|
|
|
%{cargo_build} --all-features
|
2022-11-07 00:14:24 +01:00
|
|
|
|
|
|
|
%install
|
2023-01-15 22:45:03 +01:00
|
|
|
%{cargo_install} --all-features
|
2022-11-07 00:14:24 +01:00
|
|
|
|
|
|
|
%check
|
2023-01-15 22:45:03 +01:00
|
|
|
%{cargo_test} --all-features
|
2022-11-07 00:14:24 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CONTRIBUTING.md CHANGELOG.md
|
|
|
|
%{_bindir}/mdbook
|
|
|
|
|
|
|
|
%changelog
|