mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-25 13:00:42 +00:00
72 lines
1.4 KiB
RPMSpec
72 lines
1.4 KiB
RPMSpec
# Generated by go2rpm 1.15.0
|
|
%bcond check 1
|
|
%bcond bootstrap 0
|
|
|
|
%if %{with bootstrap}
|
|
%global debug_package %{nil}
|
|
%endif
|
|
|
|
%if %{with bootstrap}
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
%endif
|
|
|
|
# https://github.com/nektos/act
|
|
%global goipath github.com/nektos/act
|
|
Version: 0.2.87
|
|
|
|
%gometa -f
|
|
|
|
%global common_description %{expand:
|
|
Run your GitHub Actions locally
|
|
}
|
|
|
|
%global golicenses LICENSE pkg/lookpath/LICENSE
|
|
%global godocs README.md
|
|
|
|
Name: gh-act
|
|
Release: 1%{?dist}
|
|
Summary: None
|
|
|
|
License: MIT AND ISC AND BSD-3-Clause AND Apache-2.0 AND BSD-2-Clause
|
|
URL: %{gourl}
|
|
Source: %{gosource}
|
|
Packager: xiaoshihou <xiaoshihou@tutamail.com>
|
|
BuildRequires: anda-srpm-macros
|
|
|
|
%description %{common_description}
|
|
|
|
%gopkg
|
|
|
|
%prep
|
|
%autosetup -p1 -n act-%{version}
|
|
|
|
%if %{without bootstrap}
|
|
%build
|
|
%define gomodulesmode GO111MODULE=on
|
|
%define __gobuild_extldflags -X main.version=%version
|
|
%gobuild -o %{gobuilddir}/bin/gh-act %{goipath}
|
|
%endif
|
|
|
|
%install
|
|
%if %{without bootstrap}
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%if %{with check}
|
|
%check
|
|
%gocheck
|
|
%endif
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%files
|
|
%license LICENSE pkg/lookpath/LICENSE
|
|
%doc CONTRIBUTING.md IMAGES.md README.md
|
|
%{_bindir}/gh-act
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|