## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.16.0 %bcond check 1 # https://github.com/liquidweb/liquidweb-cli %global goipath github.com/liquidweb/liquidweb-cli Version: 0.7.0 %gometa -L -f %global common_description %{expand: Official command line interface for the LiquidWeb API.} Name: lw-cli Release: %autorelease Summary: Official command line interface for the LiquidWeb API # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %gobuild -o %{gobuilddir}/bin/liquidweb-cli %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} # Fails checks with 1.24 %gocheck -d github.com/liquidweb/liquidweb-cli/cmd %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc examples README.md %{_bindir}/liquidweb-cli %changelog ## START: Generated by rpmautospec * Sat Jul 12 2025 Mikel Olasagasti Uranga - 0.7.0-3 - Adopt Go Vendor Tools - Closes rhbz#2340803 rhbz#2352310 * Fri Jan 17 2025 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Mikel Olasagasti Uranga - 0.7.0-1 - Initial package - Closes rhbz#2300025 ## END: Generated by rpmautospec