# Generated by rust2rpm 15
%bcond_without check

%global crate broot

%global debug_package %{nil}

Name:           rust-%{crate}
Version:        1.0.1
Release:        1%{?dist}
Summary:        New file manager

# Upstream license specification: MIT
License:        MIT
URL:            https://crates.io/crates/broot
Source:         %{crates_source}

ExclusiveArch:  %{rust_arches}
%if %{__cargo_skip_build}
BuildArch:      noarch
%endif

BuildRequires:  rust-packaging

%global _description %{expand:
New file manager.}

%description %{_description}

%if ! %{__cargo_skip_build}
%package     -n %{crate}
Summary:        %{summary}

%description -n %{crate} %{_description}

%files       -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/broot
%{_mandir}/man1/broot.1*
%endif

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1

%build

%install
cargo install --path . --root "%{buildroot}%{_prefix}"
rm %{buildroot}%{_prefix}/.crates*

install -Dpm 0644 man/page %{buildroot}%{_mandir}/man1/broot.1

%changelog
* Thu Oct 01 22:54:47 +08 2020 Jens Petersen <petersen@redhat.com> - 1.0.1-1
- Initial package