Skip to content

Add Fedora packaging files. #220

Open
spotaws wants to merge 1 commit intoaws:mainlinefrom
spotaws:new-fedora-spec
Open

Add Fedora packaging files. #220
spotaws wants to merge 1 commit intoaws:mainlinefrom
spotaws:new-fedora-spec

Conversation

@spotaws
Copy link
Copy Markdown
Collaborator

@spotaws spotaws commented Mar 19, 2026

Fedora has specific packaging standards for Go applications, and while the .spec file in the base directory works fine. and is arguably simpler, the files in fedora/ are in the format that Fedora requires. The go2rpm tooling generates a second tarball that contains all of the Go module dependencies, and builds them locally. not downloaded over the network. so that the package can build in Fedoras air-gapped buildserver. It also does not use the provided Makefile, instead invoking go build directly with Fedoras preferred optflags.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…or Go applications, and while the .spec file in the base directory works fine. and is arguably simpler, the files in fedora/ are in the format that Fedora requires. The go2rpm tooling generates a second tarball that contains all of the Go module dependencies, and builds them locally. not downloaded over the network. so that the package can build in Fedoras air-gapped buildserver. It also does not use the provided Makefile, instead invoking go build directly with Fedoras preferred optflags.

Signed-off-by: Tom spot Callaway <spotaws@amazon.com>
Copy link
Copy Markdown
Contributor

@smhmhmd smhmhmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Tom

sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
expression = "MIT AND (MIT AND Apache-2.0)"
[[licensing.licenses]]
path = "cmd/credentials-fetcher/LICENSE.txt"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to add a LICENSE.txt file to the project root path, so you don't have to add it as source and workaround with Go Vendor Tools.

Copy link
Copy Markdown
Contributor

@smhmhmd smhmhmd Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, @spotaws had also brought this up as well, we will address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants