File rust2rpm-helper.spec of Package rust2rpm-helper

#
# spec file for package rust2rpm-helper
#
# Copyright (c) 2025 rust2rpm <opensuse-packaging@opensuse.org>.
#
# 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

Name:           rust2rpm-helper
Version:        0.1.7
Release:        0
Summary:        Helper program for rust2rpm
Group:          Development/Libraries/Rust

# FIXME: paste output of %%cargo_license_summary here
License:        # FIXME
# LICENSE.dependencies contains a full license breakdown

URL:            https://codeberg.org/rust2rpm/rust2rpm-helper
Source: %{name}-%{version}.tar.xz
Source:         rust2rpm-helper-0.1.7-vendor.tar.xz

ExclusiveArch:  %{rust_arches}

BuildRequires:  cargo-rpm-macros >= 26

%global _description %{expand:
Helper program for rust2rpm.}

%description %{_description}

%prep
%autosetup -n rust2rpm-helper-%{version} -p1 -a1
%cargo_prep -v vendor

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%{cargo_vendor_manifest}

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%files
%license LICENSE
%license LICENSE.dependencies
%license cargo-vendor.txt
%doc CHANGELOG.md
%doc README.md
%{_bindir}/rust2rpm-helper

%changelog
* Sat Nov 15 13:21:28 +03 2025 rust2rpm <opensuse-packaging@opensuse.org>
- Version 0.1.7
- Initial package
openSUSE Build Service is sponsored by