Blame act.spec

caa9ad
#
d3a845
# spec file for package act
d3a845
#
5a9943
# Copyright (c) 2024 SUSE LLC
d3a845
# Copyright (c) 2021 Orville Q. Song <orville@anislet.dev>
d3a845
#
d3a845
# All modifications and additions to the file contributed by third parties
d3a845
# remain the property of their copyright owners, unless otherwise agreed
d3a845
# upon. The license for this file, and modifications and additions to the
d3a845
# file, is the same license as for the pristine package itself (unless the
d3a845
# license for the pristine package is not an Open Source License, in which
d3a845
# case the license is the MIT License). An "Open Source License" is a
d3a845
# license that conforms to the Open Source Definition (Version 1.9)
d3a845
# published by the Open Source Initiative.
d3a845
d3a845
# Please submit bugfixes or comments via https://bugs.opensuse.org/
d3a845
#
d3a845
caa9ad
d3a845
%global provider        github
d3a845
%global provider_tld    com
d3a845
%global project         nketos
d3a845
%global repo            act
d3a845
%global provider_prefix %{provider}.%{provider_tld}/%{project}
d3a845
%global import_path     %{provider_prefix}/%{repo}
d3a845
Name:           act
7ef354
Version:        0.2.62
d3a845
Release:        0
d3a845
Summary:        Run your GitHub Actions locally
d3a845
License:        MIT
d3a845
Group:          Development/Tools/Other
d3a845
URL:            https://github.com/nektos/act
d3a845
Source0:        %{name}-%{version}.tar.xz
caa9ad
Source1:        vendor.tar.gz
d3a845
BuildRequires:  golang-packaging
d3a845
BuildRequires:  golang(API) >= 1.16
d3a845
Requires:       docker
d3a845
%{go_nostrip}
d3a845
%{go_provides}
d3a845
d3a845
%description
d3a845
act helps you run your Github Actions locally.
d3a845
d3a845
%prep
caa9ad
%setup -q
caa9ad
%setup -q -a1 %{SOURCE1}
2d7efc
sed -i 's_var version = \"v0.2.27-dev\"_var version = "%{version}"_g' main.go
d3a845
d3a845
%build
caa9ad
%{goprep} .
d3a845
mkdir -p vendor/%{provider_prefix}
d3a845
ln -s . vendor/%{import_path}
caa9ad
%{gobuild} -ldflags "-s -w -X main.Version=v%{version}" .
d3a845
d3a845
%install
caa9ad
%{goinstall}
d3a845
d3a845
%files
d3a845
%license LICENSE
d3a845
%doc README.md
d3a845
%{_bindir}/%{name}
d3a845
d3a845
%changelog