655b1a5
# Generated by rust2rpm 25
736e6a6
%bcond_without check
736e6a6
736e6a6
%global crate askalono-cli
736e6a6
2046790
Name:           rust-askalono-cli
2046790
Version:        0.4.6
0f30abd
Release:        %autorelease
736e6a6
Summary:        Tool to detect the contents of license files
736e6a6
655b1a5
# * askalono-cli: Apache-2.0
655b1a5
# * spdx/license-list-data: CC0-1.0
655b1a5
License:        Apache-2.0 AND CC0-1.0
736e6a6
URL:            https://crates.io/crates/askalono-cli
655b1a5
Source:         %{crates_source}
655b1a5
# updated SPDX license list data; generated with:
cdb24e6
# $ git clone https://github.com/spdx/license-list-data.git spdx-license-list -b v3.22 --depth 1
655b1a5
# $ askalono cache load-spdx spdx-license-list/json/details
cdb24e6
# $ mv askalono-cache.bin.zstd askalono-cache-3.22.bin.zstd
cdb24e6
Source:         askalono-cache-3.22.bin.zstd
736e6a6
655b1a5
BuildRequires:  cargo-rpm-macros >= 24
fed9255
fed9255
%global _description %{expand:
655b1a5
A tool to detect the contents of license files.}
736e6a6
736e6a6
%description %{_description}
736e6a6
736e6a6
%package     -n %{crate}
736e6a6
Summary:        %{summary}
655b1a5
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
2046790
# Apache-2.0
2046790
# Apache-2.0 OR BSL-1.0
2046790
# Apache-2.0 OR MIT
2046790
# MIT
2046790
# MIT OR Apache-2.0
2046790
# MIT OR Apache-2.0 OR Zlib
2046790
# Unlicense OR MIT
2046790
# Zlib OR Apache-2.0 OR MIT
655b1a5
License:        Apache-2.0 AND CC0-1.0 MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
2046790
# LICENSE.dependencies contains a full license breakdown
736e6a6
cdb24e6
Provides:       bundled(spdx-license-list-data) = 3.22
655b1a5
fed9255
%description -n %{crate} %{_description}
736e6a6
736e6a6
%files       -n %{crate}
2046790
%license LICENSE
2046790
%license NOTICE
655b1a5
%license LICENSE.dependencies
4df7f20
%doc README.md
736e6a6
%{_bindir}/askalono
736e6a6
736e6a6
%prep
655b1a5
%autosetup -n %{crate}-%{version} -p1
736e6a6
%cargo_prep
655b1a5
# update bundled SPDX license list data
655b1a5
cp -pav %{SOURCE1} embedded-cache.bin.zstd
736e6a6
fed9255
%generate_buildrequires
2046790
%cargo_generate_buildrequires -f diagnostics
fed9255
736e6a6
%build
2046790
%cargo_build -f diagnostics
655b1a5
%{cargo_license_summary -f diagnostics}
655b1a5
%{cargo_license -f diagnostics} > LICENSE.dependencies
736e6a6
736e6a6
%install
2046790
%cargo_install -f diagnostics
736e6a6
736e6a6
%if %{with check}
736e6a6
%check
2046790
%cargo_test -f diagnostics
736e6a6
%endif
736e6a6
736e6a6
%changelog
0f30abd
%autochangelog