https://bugzilla.redhat.com/show_bug.cgi?id=2436366



--- Comment #4 from Diego Herrera <[email protected]> ---
(In reply to Neal Gompa from comment #3)
> Initial spec review:
> 
> > Source0:        
> > https://code.forgejo.org/forgejo/runner/archive/v%{version}.tar.gz
> 
> This should be restructured so that the tarball is properly named. Something
> like "%{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz"
> 
> You can see an example in Quickshell:
> https://src.fedoraproject.org/rpms/quickshell/blob/rawhide/f/quickshell.spec
> 

Sure, cleaned up

> > Requires:       git
> 
> Does it require *all* of git or just git-core and a few other things? Also,
> even "git" would not be enough to ensure things like git-lfs are pulled in,
> right?
> 

The docs about requiring git [0], but checking how it's being used [1], core
and lfs are enough to cover the usage.

> > %setup -n runner -q -a1
> > %autopatch -p1
> 
> Can't this be simplified to "%autosetup -C -a1 -p1"?
> 

Sure, cleaned up

> > %doc examples README.md RELEASE-NOTES.md release-notes/757.md
> 
> Is it always going to 757.md? Should you just include the release-notes
> folder entirely instead?
> 

Yeah, makes sense, changed

> > %attr(755, root, root) %{_bindir}/forgejo-runner
> > %config(noreplace) %attr(644, root, root) 
> > %{_sysconfdir}/forgejo-runner/config.yml
> 
> "root, root" is already default, you can use "-, -" here instead.
> 

Cleaned up

> > %config(noreplace) %attr(755, runner, runner) %{_sharedstatedir}/runner/
> 
> I don't love that the user+group and homedir are just called "runner". Can
> we call this "forgejo-runner" instead?

TBH, I kept it as "runner" since it is how upstream documented it's usage, but
I agree that it makes more sense to use "forgejo-runner" instead.
Changed.

Also updated the package to 12.7.0

[0]
https://forgejo.org/docs/next/admin/actions/runner-installation/#system-requirements
[1]
https://code.forgejo.org/forgejo/runner/src/commit/94ddcf7de6e7bf7a8e193bd9c3a82d864250371b/act/common/git/git.go#L433-L494


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2436366

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202436366%23c4

-- 
_______________________________________________
package-review 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