## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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 %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 export GO_LDFLAGS="-X github.com/jandedobbeleer/oh-my-posh/src/build.Version=%{version} \ -X github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d" 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 # skip tests as they need internet connection # see https://github.com/JanDeDobbeleer/oh-my-posh/issues/6674 %gotest $(go list ./... | awk '!/(upgrade|segments|config)/ {print $1}') cd .. %endif %files -f %{go_vendor_license_filelist} %license COPYING %license src/vendor/modules.txt %doc README.md SECURITY.md %{_bindir}/oh-my-posh %changelog ## START: Generated by rpmautospec * Thu Aug 28 2025 John Doe - 26.18.0-1 - Uncommitted changes ## END: Generated by rpmautospec