# Copyright (C) 2024 Maxwell G # SPDX-License-Identifier: MIT # Generated by go2rpm 1.10.0 # https://github.com/junegunn/fzf %global goipath github.com/junegunn/fzf Version: 0.46.1 %global tag %{version} %gometa -f %global common_description %{expand: :cherry_blossom: A command-line fuzzy finder.} Name: test-fzf Release: 1%{?dist} Summary: :cherry_blossom: A command-line fuzzy finder License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} Source1: fzf-%{version}-vendor.tar.bz2 Source2: expected-licenses.list Source3: go-vendor-tools.toml BuildRequires: go-vendor-tools %description %{common_description} %prep %goprep -A %setup -q -T -D -b1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:3} %go_vendor_license_buildrequires -c %{S:3} -d trivy %build %dnl We don't care about building or installing the package for the purposes of %dnl the integration test. %dnl %gobuild -o fzf %{goipath} %global debug_package %{nil} %install # Check go_vendor_license_buildrequires (%{go_vendor_license_buildrequires -d askalono}) | tee buildrequires test "$(cat buildrequires)" = "askalono-cli" (%{go_vendor_license_buildrequires -d trivy}) | tee buildrequires test "$(cat buildrequires)" = "trivy" # Specify -n manually for testing purposes %go_vendor_license_install -n not-fzf -c %{S:3} -D askalono_path=/usr/bin/askalono %check %go_vendor_license_check -c %{S:3} %go_vendor_license_check -d trivy -c %{S:3} diff -u "%{S:2}" "$(pwd)/licenses.list" %files -f %{go_vendor_license_filelist} %doc doc ADVANCED.md BUILD.md CHANGELOG.md README-VIM.md README.md %changelog * Thu Feb 29 2024 Maxwell G - 0.46.1-1 - Initial package