Bug 2365763 - Review Request: lf - Terminal file manager
Summary: Review Request: lf - Terminal file manager
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mikel Olasagasti Uranga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2365761
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-12 22:24 UTC by me@pennbauman.com
Modified: 2025-05-16 00:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
The .spec file difference from Copr build 9025547 to 9052994 (3.38 KB, patch)
2025-05-16 00:07 UTC, Fedora Review Service
no flags Details | Diff

Description me@pennbauman.com 2025-05-12 22:24:33 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/pennbauman/ports/srpm-builds/09021150/lf.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/pennbauman/ports/srpm-builds/09021150/lf-r35-1.src.rpm
Description: Terminal file manager.
Fedora Account System Username: pennbauman

This depends on golang-github-xuanwo-locale.

COPR: https://copr.fedorainfracloud.org/coprs/pennbauman/ports/package/lf
SCM: https://codeberg.org/pennbauman/lf.rpm

This will be my first Fedora package, so I require sponsorship. I have been packaging this tool for years on Copr, and in future I would like to introduce other software I package on Copr to Fedora. Please, let me know if you are interested in sponsoring me.

Comment 1 Fedora Review Service 2025-05-12 22:26:37 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9025547
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2365763-lf/fedora-rawhide-x86_64/09025547-lf/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Mikel Olasagasti Uranga 2025-05-13 20:08:56 UTC
> %global common_description %{expand:
> Terminal file manager.}

Description should be a bit more... descriptive.

> %generate_buildrequires
> %go_generate_buildrequires

Go-SIG will propose to make vendored builds the default option using go-vendor-tools for Fedora 43. lf's dependency stack is small, but I would recommend to adopt the new format to make things simpler for you. You can generate the new spec with `go2rpm -p vendor github.com/gokcehan/lf` and you can check examples like helm or opentofu packages to see how it works.

I would recommend to join Go-SIG's Matrix channel for more guidance if required: https://matrix.to/#/#golang:fedoraproject.org

If you prefer to keep the old method I can review the dependency as well.

> install -m 0644 -Dvp etc/%{name}.zsh        %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
> install -m 0644 -Dvp etc/%{name}.fish       %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish

You can use %{fish_completions_dir}/%{name}.fish and %{zsh_completions_dir}/_%{name} as you do with %{bash_completions_dir}

Comment 3 me@pennbauman.com 2025-05-16 00:05:11 UTC
I've updated the description and the macro usage. I've got vendoring working locally, but I don't think I can have it work on Copr without uploading the lf-r35-vendor.tar.bz2 file to the lookaside cache. If you want to upload that (and the regular regular source tarball) to the cache, I could setup vendoring and also add a sources file. 

Updated src.rpm and spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/pennbauman/ports/srpm-builds/09052967/lf-r35-1.src.rpm
Spec URL: https://download.copr.fedorainfracloud.org/results/pennbauman/ports/srpm-builds/09052967/lf.spec

Comment 4 Fedora Review Service 2025-05-16 00:07:09 UTC
Created attachment 2090045 [details]
The .spec file difference from Copr build 9025547 to 9052994

Comment 5 Fedora Review Service 2025-05-16 00:07:11 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9052994
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2365763-lf/fedora-rawhide-x86_64/09052994-lf/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.


Note You need to log in before you can comment on or make changes to this bug.