# Generated by go2rpm 1.17.1 %bcond check 1 # https://github.com/jandedobbeleer/oh-my-posh %global goipath github.com/jandedobbeleer/oh-my-posh Version: 26.18.0 %gometa -L -f Name: oh-my-posh Release: %autorelease Summary: The most customisable and low-latency cross platform/shell prompt renderer # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (FTL OR GPL-2.0-or-later) URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools Provides: ohmyposh = %{version}-%{release} #alias %description The most customisable and low-latency cross platform/shell prompt renderer. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on cd src %gobuild -o %{gobuilddir}/bin/oh-my-posh cd .. %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} cd src %gotest ./... cd .. %endif %files -f %{go_vendor_license_filelist} %license COPYING # crashing build due to file not found %license src/vendor/modules.txt %doc README.md SECURITY.md %{_bindir}/oh-my-posh %changelog %autochangelog