Bug 2256310 - Review Request: golang-github-bep-mclib - A simple library to make it possible to run Mkcert's main method
Summary: Review Request: golang-github-bep-mclib - A simple library to make it possibl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mikel Olasagasti Uranga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2209669
TreeView+ depends on / blocked
 
Reported: 2023-12-31 01:37 UTC by W. Michael Petullo
Modified: 2024-01-13 23:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-13 23:00:27 UTC
Type: ---
Embargoed:
mikel: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6840051 to 6872116 (1.10 KB, patch)
2024-01-08 14:45 UTC, Fedora Review Service
no flags Details | Diff

Description W. Michael Petullo 2023-12-31 01:37:21 UTC
Spec URL: https://www.flyn.org/SRPMS/golang-github-bep-mclib.spec
SRPM URL: https://www.flyn.org/SRPMS/golang-github-bep-mclib-1.20400.20402-1.fc39.src.rpm
Description: A simple library to make it possible to run Mkcert's main method
Fedora Account System Username: mikep

This was generated using go2rpm and is required for the latest release of Hugo. See COPR builds at https://copr.fedorainfracloud.org/coprs/mikep/golang/builds/.

Comment 2 Fedora Review Service 2023-12-31 19:19:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6840051
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2256310-golang-github-bep-mclib/fedora-rawhide-x86_64/06840051-golang-github-bep-mclib/fedora-review/review.txt

Please take a look if any issues were found.


---
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 3 Mikel Olasagasti Uranga 2024-01-07 15:13:38 UTC
> %build
> for cmd in gen; do
>   %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
> done
> 
> %install
> %gopkginstall
> install -m 0755 -vd                     %{buildroot}%{_bindir}
> install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
> (...)
> %files
> %license LICENSE
> %doc README.md gen/truststore_other.go.txt
> %{_bindir}/*

The binary in gen is a testing tool not required to be present in the system to build Hugo (correct me if I'm wrong). Thus, it's better only to install the library.

You'll need to add "%global debug_package %{nil}" once removed the binary part.

I would also recommend to delete the `gen` dir in %prep, as it add some dependencies that are not required if the binary is not built.

Comment 4 W. Michael Petullo 2024-01-08 14:39:32 UTC
Spec URL: https://www.flyn.org/SRPMS/golang-github-bep-mclib.spec
SRPM URL: https://www.flyn.org/SRPMS/golang-github-bep-mclib-1.20400.20402-1.fc39.src.rpm

- Do not build binary in gen/
- Update %prep to remove gen/

Comment 5 Fedora Review Service 2024-01-08 14:45:31 UTC
Created attachment 2007798 [details]
The .spec file difference from Copr build 6840051 to 6872116

Comment 6 Fedora Review Service 2024-01-08 14:45:34 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6872116
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2256310-golang-github-bep-mclib/fedora-rawhide-x86_64/06872116-golang-github-bep-mclib/fedora-review/review.txt

Please take a look if any issues were found.


---
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 7 Mikel Olasagasti Uranga 2024-01-08 16:10:51 UTC
I am not going to go through the whole fedora-review template, as this package uses go2rpm.

- [x] The specfile is sane.
- [x] License is correct
- [x] Builds successfully in mock
- [x] Package is installable (checked by fedora-review)
- [x] No relevant rpmlint errors
- [x] %check section passes
- [x] The latest version is packaged
- [x] `%goipath` is set correctly
- [-] Binaries don't conflict with binaries already in the distribution
- [x] The package complies with the Packaging Guidelines.

Package approved! On import, don't forget to do the following:

- [ ] Add package to release-monitoring.org
- [ ] Give go-sig privileges on package
- [ ] Close the review bug by referencing it in the rpm changelog and the Bodhi ticket.

Comment 8 Fedora Admin user for bugzilla script actions 2024-01-13 22:42:54 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-bep-mclib

Comment 9 Fedora Update System 2024-01-13 22:58:03 UTC
FEDORA-2024-30386a09f8 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-30386a09f8

Comment 10 Fedora Update System 2024-01-13 23:00:27 UTC
FEDORA-2024-30386a09f8 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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