# Generated by rust2rpm 20 %bcond_without check %global crate broot Name: rust-%{crate} Version: 1.7.5 Release: %autorelease Summary: New file manager # Upstream license specification: MIT License: MIT URL: https://dystroy.org/broot Source: %{crates_source} # Initial patched metadata # Temporarily downgrade crossterm to 0.20 and phf to 0.8 # Bump lfs-core to 0.6 Patch0: broot-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: broot is a new file manager that makes it easy to get an overview of a directory, even a big one.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc CHANGELOG.md README.md documentation.md features.md %{_bindir}/broot %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE %doc CHANGELOG.md README.md documentation.md features.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+clipboard-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+clipboard-devel %{_description} This package contains library source intended for building other packages which use the "clipboard" feature of the "%{crate}" crate. %files -n %{name}+clipboard-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+terminal-clipboard-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+terminal-clipboard-devel %{_description} This package contains library source intended for building other packages which use the "terminal-clipboard" feature of the "%{crate}" crate. %files -n %{name}+terminal-clipboard-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog