# # spec file for package mage # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: mage Version: 1.15.0 Release: 0 Summary: A make-like build tool using Go License: Apache-2.0 URL: https://github.com/magefile/mage Source: https://github.com/magefile/mage/archive/refs/tags/v%{version}.tar.gz BuildRequires: go BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.12 %description Mage is a make-like build tool using Go. You write plain-old go functions, and Mage automatically uses them as Makefile-like runnable targets. %prep %setup -q %build if test -z "$GOPATH"; then GOPATH="$HOME/go" fi mkdir -p $GOPATH go run bootstrap.go %install mkdir -p %{buildroot}%{_bindir} if test -z "$GOPATH"; then GOPATH="$HOME/go" fi mv $GOPATH/bin/mage %{buildroot}%{_bindir} %files %license LICENSE %doc README.md %{_bindir}/mage %changelog