# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/rhysd/actionlint %global goipath github.com/rhysd/actionlint Version: 1.7.12 %gometa -L -f Name: actionlint Release: 2%{?dist} Summary: Static checker for GitHub Actions workflow files # Cumulative SPDX over actionlint + all vendored deps, not just MIT. License: Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: _actionlint BuildRequires: go-vendor-tools BuildRequires: rubygem-ronn-ng %description %{summary}. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X %{goipath}.version=%{version}" %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name} ronn --roff man/actionlint.1.ronn %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 man/actionlint.1 %{buildroot}%{_mandir}/man1/actionlint.1 install -Dpm 0644 %{S:3} %{buildroot}%{zsh_completions_dir}/_actionlint %check %go_vendor_license_check -c %{S:2} %if %{with check} # scripts/* are actionlint's codegen tools; their tests need network + a git # checkout, so exclude them from the offline build. The CLI itself is tested. %gocheck2 -t scripts %endif %files -f %{go_vendor_license_filelist} %doc README.md CHANGELOG.md docs %{_bindir}/actionlint %{_mandir}/man1/actionlint.1* %{zsh_completions_dir}/_actionlint %changelog * Tue Jun 23 2026 Bahtiar `kalkin-` Gadimov - 1.7.12-2 - Ship zsh completion in /usr/share/zsh/site-functions/_actionlint * Mon Jun 22 2026 Bahtiar `kalkin-` Gadimov - 1.7.12-1 - Initial package