# Generated by rust2rpm 26
%bcond_without check
# prevent library files from being installed
%global cargo_install_lib 0
%global crate rust2rpm-helper
Name: rust2rpm-helper
Version: 0.1.5
Release: %autorelease
Summary: Helper program for rust2rpm
SourceLicense: MIT
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
# Apache-2.0
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
# MIT
# MIT OR Apache-2.0
# Unlicense OR MIT
License: Apache-2.0 AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
# LICENSE.dependencies contains a full license breakdown
URL: https://pagure.io/fedora-rust/rust2rpm-helper
Source: %{url}/archive/%{version}/rust2rpm-helper-%{version}.tar.gz
BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
Helper program for rust2rpm.}
%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
%if %{with check}
%check
%cargo_test
%endif
%files
%license LICENSE
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc README.md
%{_bindir}/rust2rpm-helper
%changelog
%autochangelog