Bug 2053963

Summary: Review Request: golang-github-martinhoefling-goxkcdpwgen - Xkcd style password generator library and cli tool
Product: [Fedora] Fedora Reporter: Fabio Alessandro Locati <me>
Component: Package ReviewAssignee: Mikel Olasagasti Uranga <mikel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mikel, package-review
Target Milestone: ---Flags: mikel: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-25 23:16:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2053969    

Comment 1 Mikel Olasagasti Uranga 2022-02-21 21:46:06 UTC
> %global common_description %{expand:
> Xkcd style password generator library and cli tool.}
> (...)
> Summary:        Xkcd style password generator library and cli tool

Should be `xkcd` instead of `Xkcd` as described in https://xkcd.com/about/

> %global godocs          README.md wordlists/eff_short_wordlist_2_0.txt\\\
>                        wordlists/eff_large_wordlist.txt\\\
>                        wordlists/de_wordlist.txt
> %doc README.md wordlists/eff_short_wordlist_2_0.txt
> %doc wordlists/eff_large_wordlist.txt wordlists/de_wordlist.txt

The wordlist are included in the code, I don't think they should go as doc.

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

The cmd in _generator is used to generate the generated.go file in xkcdpwgen, I don't think it makes sense to ship it in Fedora

> BuildRequires:  golang(golang.org/x/tools/imports)
> (...)
> %generate_buildrequires
> %go_generate_buildrequires

As the package only depends on golang(golang.org/x/tools/imports) and in golang(github.com/stretchr/testify/assert) for tests, maybe you can just use one method.

On top of all that, consider using rpmautospec for easier future maintenance.

Comment 3 Mikel Olasagasti Uranga 2022-03-17 12:31:19 UTC
Thanks applying proposed changes.

go2rpm package, fedora-review is correct:

- The specfile is sane
- License is correct
- Builds successfully in mock
- No rpmlint errors
- %check section passes (no tests available)
- 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

Comment 4 Tomas Hrcka 2022-03-17 20:54:27 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-martinhoefling-goxkcdpwgen

Comment 5 Fedora Update System 2022-03-17 22:34:48 UTC
FEDORA-2022-0702344b40 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0702344b40

Comment 6 Fedora Update System 2022-03-17 22:34:48 UTC
FEDORA-2022-956bb75251 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-956bb75251

Comment 7 Fedora Update System 2022-03-18 15:53:33 UTC
FEDORA-2022-0702344b40 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-0702344b40 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0702344b40

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-03-18 20:08:36 UTC
FEDORA-2022-956bb75251 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-956bb75251 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-956bb75251

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-03-25 23:16:16 UTC
FEDORA-2022-956bb75251 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-03-26 15:24:59 UTC
FEDORA-2022-0702344b40 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.