diff --git a/cmd/tar2rpm/main.go b/cmd/tar2rpm/main.go index 39db1f0..b03c431 100644 --- a/cmd/tar2rpm/main.go +++ b/cmd/tar2rpm/main.go @@ -40,6 +40,7 @@ var ( description = flag.String("description", "", "the rpm description") vendor = flag.String("vendor", "", "the rpm vendor") packager = flag.String("packager", "", "the rpm packager") + group = flag.String("group", "", "the rpm group") url = flag.String("url", "", "the rpm url") licence = flag.String("licence", "", "the rpm licence name") @@ -112,6 +113,7 @@ func main() { OS: *osName, Vendor: *vendor, Packager: *packager, + Group: *group, URL: *url, Licence: *licence, Description: *description, diff --git a/rpm.go b/rpm.go index 83fa539..3aefe3d 100644 --- a/rpm.go +++ b/rpm.go @@ -50,6 +50,7 @@ type RPMMetaData struct { Vendor, URL, Packager, + Group, Licence, Compressor string Provides, @@ -251,6 +252,7 @@ func (r *RPM) writeGenIndexes(h *index) { h.Add(tagVendor, entry(r.Vendor)) h.Add(tagLicence, entry(r.Licence)) h.Add(tagPackager, entry(r.Packager)) + h.Add(tagGroup, entry(r.Group)) h.Add(tagURL, entry(r.URL)) h.Add(tagPayloadDigest, entry([]string{fmt.Sprintf("%x", sha256.Sum256(r.payload.Bytes()))})) h.Add(tagPayloadDigestAlgo, entry([]int32{hashAlgoSHA256})) diff --git a/tags.go b/tags.go index 144df32..bc6cac1 100644 --- a/tags.go +++ b/tags.go @@ -33,6 +33,7 @@ const ( tagVendor = 0x03f3 // 1011 tagLicence = 0x03f6 // 1014 tagPackager = 0x03f7 // 1015 + tagGroup = 0x03f8 // 1016 tagURL = 0x03fc // 1020 tagOS = 0x03fd // 1021 tagArch = 0x03fe // 1022