# Generated by go2rpm 1.17.1 %bcond check 1 # https://github.com/go-task/task %global goipath github.com/go-task/task %global goialtpath github.com/go-task/task/v3 Version: 3.51.1 %gometa -L -f %global common_description %{expand: A task runner / simpler Make alternative written in Go.} Name: go-task Release: %autorelease Summary: A task runner / simpler Make alternative written in Go # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description %{common_description} %gopkg %package doc Provides: golang-github-task-doc = %{version}-%{release} Obsoletes: golang-github-task-doc < %{version}-%{release} Summary: Extended documentation for %{name} %description doc %{common_description} This package contains extended documentation for go-task. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} sed -i "s/unknown/v%{version}/" internal/version/version.go sed -i "s/task-version\"\, expected\: \"unknown\"/task-version\"\, expected\: \"v%{version}\"/" task_test.go %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/task -v %{goialtpath}/cmd/task %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/task %{buildroot}%{_bindir}/go-task %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc CHANGELOG.md README.md %{_bindir}/go-task %files doc %doc website %changelog %autochangelog