File rust-askalono-cli.spec of Package rust-askalono-cli
#
# spec file for package rust-askalono-cli
#
# Copyright (c) 2025 qr243vbi <qr243vbi@atomicmail.io>.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Generated by rust2rpm 27
%bcond check 1
# prevent library files from being installed
%global cargo_install_lib 0
%global crate askalono-cli
Name: rust-askalono-cli
Version: 0.5.0
Release: 0
Summary: Tool to detect the contents of license files
Group: Development/Libraries/Rust
License: Apache-2.0
URL: https://crates.io/crates/askalono-cli
Source0: %{crates_source}
Source1: askalono-cli-0.5.0-vendor.tar.xz
Source2: askalono-cache.bin.gz
ExclusiveArch: %{rust_arches}
BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
A tool to detect the contents of license files.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
Group: # FIXME
# FIXME: paste output of %%cargo_license_summary here
License: # FIXME
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license NOTICE
%license LICENSE.dependencies
%license cargo-vendor.txt
%doc README.md
%{_bindir}/askalono
%prep
%autosetup -n %{crate}-%{version} -p1 -a1
%cargo_prep -v vendor
cp %{SOURCE2} embedded-cache.bin.gz
%build
%cargo_build -f gzip
%{cargo_license_summary -f gzip}
%{cargo_license -f gzip} > LICENSE.dependencies
%{cargo_vendor_manifest}
%install
%cargo_install -f gzip
%changelog
* Sat Nov 15 22:48:33 +03 2025 qr243vbi <qr243vbi@atomicmail.io>
- Version 0.5.0
- Initial package