https://bugzilla.redhat.com/show_bug.cgi?id=2332550 --- Comment #4 from Uri Lublin <uril@xxxxxxxxxx> --- How was the spec-file created: 1. Clone upstream git git clone https://github.com/confidential-containers/guest-components 2. cd guest-components 3. Decide on a commit c=main # or a specific commit e.g. to create the same spec-file as was uploaded c=$(git log -1 --pretty=%H $c) 4. Check out the commit into a new branch 'fedora_packaging' git checkout -b fedora_packaging $c 5. Find the version relative to last release v=$(git describe $c --tags | sed 's/^v//') echo $v 6. Download the zip file of $c from github: curl -LO https://github.com/confidential-containers/guest-components/archive/$c.zip 8. Apply all the Fedora specific patches # git am <all patches> # git format-patch -N $c..HEAD # or copy the patches over 7. Edit the rust2rpm.toml (or verify it contains the right values for) # a. source-url contains the tarball # b. extra-patches contains all the patches 10. rust2rpm --path . kbs_protocol 11. mv kbs_protocol.spec trustee-guest-components.spec 12. edit trustee-guest-components.spec and fix name, version, license, and files # a. Name is trustee-guest-components # b. Version is a snapshot so replace in $v the first '-' with '^' and the '-g' with '.git' # echo $v | sed 's/\-/^/; s/\-g/.git/;' # c. License: TEMPORARILY write "Apache-2.0" (to be fixed later, in step 15) # d. %prep: fix autosetup: replace kbs_protocol-%{vesion} with the output of $(echo guest-components-$c) # NOT DONE e. %generate_buildrequires: add 'cd attestation-agent/kbs_protocol' above %cargo_generate_buildrequires # NOT DONE (It's probably not important, but that's what I did -- similar to other sections) # f. %files: # I) move trustee-attester-README.md a bit up - together with README.md # II) Remove evidence_getter (possibly keep it now?) # III) Make sure LICENSE exists 13. rpmbuild ... |& tee rpmbuild.OUT 14. Fix all dependencies that require vendor fixing (if any). This can happen if a dependency package was upgraded in Fedora. for each such fix: git commit + git format-patch + add to extra-patches in rust2rpm.toml go back to 13 15. Fix License: a. copy from rpmbuild.OUT the license comments (search for Apache-2.0) b. "License" is a concatenation of them in a single line. Add parenthesis around every line and AND between them. Leave a space before/after every license string -- e.g. ( Apache-2.0 OR ... ) and not (Apache-2.0 OR ...) If you modified the spec-file, rebuild the package (go back to 13) 16. Build on copr (local build was successful) -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2332550 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202332550%23c4 -- _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue