Bug 2070860 - Review Request: golang-bitbucket-creachadair-stringset - A lightweight set-of-strings implementation based on the Go built-in map type
Summary: Review Request: golang-bitbucket-creachadair-stringset - A lightweight set-o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fabio Alessandro Locati
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-01 08:36 UTC by Carmelo Sarta
Modified: 2022-04-21 07:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-21 07:52:40 UTC
Type: Bug
Embargoed:
me: fedora-review+


Attachments (Terms of Use)

Description Carmelo Sarta 2022-04-01 08:36:51 UTC
Spec URL: https://github.com/Laiot/golang-bitbucket-creachadair-stringset-rpm/blob/master/golang-bitbucket-creachadair-stringset.spec
SRPM URL: https://github.com/Laiot/golang-bitbucket-creachadair-stringset-rpm/blob/master/golang-bitbucket-creachadair-stringset-0.0.10-1.20220331git1f9a78a.fc36.src.rpm
Description: A lightweight set-of-strings implementation based on the Go built-in map type, providing some common set-like operations.
Fedora Account System Username: laiot

Comment 1 Fabio Alessandro Locati 2022-04-01 10:06:32 UTC
Hi Carmelo,

Thanks for the effort, and overall a good package! I see a couple of things to tweak before it's approvable:

1. For future request, please provide direct links and not links that require clicking around for both SRPM and SPEC files
2. The Summary is too long. The maximum length is 79 chars.
3. The shipped binary (makeset) only utility is to generate the source code, so we do not need to have it within the package, since we are already ship the output of it.

To strip the binary you should:
* Add the configuration to let the builder know to produce platform-independent RPM, since we are only going to ship sources:

    BuildArch:      noarch

* Remove the build of the binary:

    for cmd in makeset; do
      %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
    done

* Remove the installation of the binary and respective folder:

    install -m 0755 -vd                     %{buildroot}%{_bindir}
    install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

* Since we only need to put files in the -devel package, we can also remove the whole %file block since %gopkgfiles will take care of all files and put them in the right location without help:

    %files devel
    %license LICENSE
    %doc README.md
    %{_bindir}/*

Comment 2 Carmelo Sarta 2022-04-03 08:04:26 UTC
Thank you Fale for your comment.
I followed your instructions and pushed the modified .spec and srpm files in the same repo.

Spec URL: https://raw.githubusercontent.com/Laiot/golang-bitbucket-creachadair-stringset-rpm/master/golang-bitbucket-creachadair-stringset.spec
SRPM URL: https://github.com/Laiot/golang-bitbucket-creachadair-stringset-rpm/blob/master/golang-bitbucket-creachadair-stringset-0.0.10-1.20220331git1f9a78a.fc36.src.rpm
Description: A lightweight set-of-strings implementation based on the Go built-in map type.
Fedora Account System Username: laiot

Comment 3 Fabio Alessandro Locati 2022-04-03 21:36:10 UTC
go2rpm package, fedora-review is correct:

- The specfile is sane.
- License is correct
- Builds successfully in mock
- No rpmlint errors
- %check section passes
- The latest version is packaged
- The package complies with the Packaging Guidelines.

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

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

Thanks!

Comment 4 Gwyn Ciesla 2022-04-06 15:24:52 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-bitbucket-creachadair-stringset


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