# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/joshmedeski/sesh %global goipath github.com/joshmedeski/sesh/v2 %global forgeurl https://github.com/joshmedeski/sesh Version: 2.30.1 %gometa -L -f Name: sesh Release: %autorelease Summary: Smart tmux session manager # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools Requires: zoxide Requires: tmux Recommends: (gum or fzf) # Provides tmux-sesh - the package name in copr Provides: tmux-sesh = %{version}-%{release} %description Smart tmux session manager. %prep %goprep -p1 tar -xf %{S:1} # delete obsidian files rm docs/.obsidian/*.json rmdir docs/.obsidian %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build # set currentgoldflags to nil; blocks default -X version string %global currentgoldflags %{nil} export GO_LDFLAGS="-X main.version=v%{version}" %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/sesh %{goipath} %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} go tool mockery %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs CLAUDE.md README.md %{_bindir}/sesh %changelog %autochangelog