Sync from SUSE:SLFO:Main mage revision 2031c56b2484585b8a6f4e2b9d0706b6

This commit is contained in:
Adrian Schröter 2024-05-03 16:30:33 +02:00
commit 67b29c8a09
6 changed files with 113 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/magefile/mage</param>
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
<param name="revision">v1.11.0</param>
<param name="scm">git</param>
</service>
<service name="set_version" mode="manual" />
<service mode="buildtime" name="tar"/>
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

BIN
mage-v1.11.0~git0.07afc7d.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

9
mage.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Fri Jan 7 01:29:18 UTC 2022 - Jeff Mahoney <jeffm@suse.com>
- Reduce go dependency to >= 1.12 as that's all mage requires.
-------------------------------------------------------------------
Wed Dec 15 18:44:12 UTC 2021 - Jeff Mahoney <jeffm@suse.com>
- Initial packaging.

5
mage.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: mage
version: v1.11.0~git0.07afc7d
mtime: 1609218707
commit: 07afc7d24f4d6d6442305d49552f04fbda5ccb3e

58
mage.spec Normal file
View File

@ -0,0 +1,58 @@
#
# spec file for package mage
#
# Copyright (c) 2021 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: v1.11.0~git0.07afc7d
Release: 0
Summary: A make-like build tool using Go
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: Apache-2.0
URL: https://github.com/magefile/mage
Source: mage-%{version}.tar.xz
BuildRequires: go
BuildRequires: golang(API) >= 1.12
BuildRequires: golang-packaging
%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