# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/tmuxpack/tpack %global goipath github.com/tmuxpack/tpack Version: 2.0.7 %gometa -L -f Name: tpack Release: %autorelease Summary: A drop-in replacement for tmux-plugin-manager (tpm) with a TUI. Written in Go # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: git-core BuildRequires: go-vendor-tools %description A drop-in replacement for tmux-plugin-manager (tpm) with a TUI. Written in Go. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X main.version=v%{version}" %global currentgoldflags %{nil} %gobuild -o %{gobuilddir}/bin/tpack %{goipath}/cmd/tpack %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} %gotest -count=1 ./internal/... ./cmd/... %endif %files -f %{go_vendor_license_filelist} %doc docs README.md %{_bindir}/tpack %changelog %autochangelog