Orion

I used the following to create an initial spec file and
go-vendor-tools.toml:

go2rpm -p vendor -c 120ac86 --name cobbler-cli
https://github.com/cobbler/cli

This spec file then needed editing to successfully build rpms. I have not
included any of the
file completion content.

Brad




>

Attachment: go-vendor-tools.toml
Description: application/toml

# Generated by go2rpm 1.19.0
%bcond check 1

# https://github.com/cobbler/cli
%global goipath         github.com/cobbler/cli
Version:                1.0.0~rc1
%global tag             v%{gsub %{version} ~ -}

%gometa -L -f


Name:           cobbler-cli
Release:        %autorelease -p
Summary:        Independent CLI written in Go for the Cobbler server

# Generated by go-vendor-tools
License:        Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only 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
Independent CLI written in Go for the Cobbler server.

%prep
%goprep -p1
tar -xf %{S:1}

%generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}

%build
%global gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/cobbler %{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}
# tests all require staring cobbler server ...
# %%gotest ./...
%endif

%files -f %{go_vendor_license_filelist}
%doc docs AGENTS.md CHANGELOG.md CLAUDE.md MIGRATION.md README.md
%{_bindir}/cobbler


%changelog
%autochangelog
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to