# Generated by rust2rpm 27 %bcond check 1 %global crate doxx # prevent library files from being installed %global cargo_install_lib 0 Name: doxx Version: 0.1.1 Release: %autorelease Summary: Terminal document viewer for .docx files SourceLicense: MIT # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # BSD-2-Clause AND ISC # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # LGPL-3.0-or-later # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MIT-0 OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT License: MPL-2.0 AND BSD-2-Clause AND ISC AND BSD-3-Clause AND LGPL-3.0-or-later AND Zlib AND Apache-2.0 AND MIT AND Unicode-DFS-2016 AND (MIT OR Apache-2.0) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) # LICENSE.dependencies contains a full license breakdown URL: https://crates.io/crates/doxx Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Terminal document viewer for .docx files.} %description %{_description} %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install # FIXME: install shared library %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/doxx %changelog %autochangelog