Bug 2250572 - Review Request: rust-enum-ordinalize - Construct enum variant from its ordinal
Summary: Review Request: rust-enum-ordinalize - Construct enum variant from its ordinal
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/enum-ordinalize
Whiteboard:
Depends On:
Blocks: 2250569
TreeView+ depends on / blocked
 
Reported: 2023-11-20 00:01 UTC by Daiki Ueno
Modified: 2023-11-29 21:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-29 21:52:42 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6671889 to 6677780 (693 bytes, patch)
2023-11-22 05:37 UTC, Fedora Review Service
no flags Details | Diff

Description Daiki Ueno 2023-11-20 00:01:57 UTC
Spec file: https://ueno.fedorapeople.org/rust-enum-ordinalize/rust-enum-ordinalize.spec
SRPM: https://ueno.fedorapeople.org/rust-enum-ordinalize/rust-enum-ordinalize-3.1.15-1.fc40.src.rpm
Description:
This crates provides a procedural macro to let enums not only get its
variants' ordinal but also be constructed from an ordinal.

Reproducible: Always

Comment 1 Fedora Review Service 2023-11-20 16:28:42 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6670540
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2250572-rust-enum-ordinalize/srpm-builds/06670540/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 3 Fedora Review Service 2023-11-21 00:32:56 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6671889
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2250572-rust-enum-ordinalize/fedora-rawhide-x86_64/06671889-rust-enum-ordinalize/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 4 Fabio Valentini 2023-11-21 18:07:50 UTC
Package looks pretty good, but the Summary is much too long.
Please trim the Summary tag to something that's more sensible, maybe like

"""
Summary:        Construct enum variant from its ordinal
"""

Once that is done, please also update the bug title accordingly.

Comment 5 Daiki Ueno 2023-11-22 05:30:19 UTC
Thank you for the suggestion, updated the Summary.

Spec URL: https://ueno.fedorapeople.org/rust-enum-ordinalize/rust-enum-ordinalize.spec
SRPM URL: https://ueno.fedorapeople.org/rust-enum-ordinalize/rust-enum-ordinalize-3.1.15-1.fc40.src.rpm

[fedora-review-service-build]

Comment 6 Fedora Review Service 2023-11-22 05:37:21 UTC
Created attachment 2000831 [details]
The .spec file difference from Copr build 6671889 to 6677780

Comment 7 Fedora Review Service 2023-11-22 05:37:23 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6677780
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2250572-rust-enum-ordinalize/fedora-rawhide-x86_64/06677780-rust-enum-ordinalize/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 8 Fabio Valentini 2023-11-29 14:56:24 UTC
Thank you for the update! Looks good to me now, with one minor caveat noted at the bottom.

===

Package was generated with rust2rpm, simplifying the review.

- package builds and installs without errors on rawhide
- test suite is run and all unit tests pass
! latest version of the crate is packaged
- license matches upstream specification (MIT) and is acceptable for Fedora
- license file is included with %license in %files
- package complies with Rust Packaging Guidelines

Package APPROVED.

===

Recommended post-import rust-sig tasks:

- set up package on release-monitoring.org:
  project: $crate
  homepage: https://crates.io/crates/$crate
  backend: crates.io
  version scheme: semantic
  version filter: alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

- add @rust-sig with "commit" access as package co-maintainer
  (should happen automatically)

- set bugzilla assignee overrides to @rust-sig (optional)

- track package in koschei for all built branches
  (should happen automatically once rust-sig is co-maintainer)

===

There is a newer release of this crate available (v4, with the latest being v4.2.0).
But if you explicitly need v3 for what you're working on, then packaging v3.1.15 (the most recent version in the v3 series) is fine.

Comment 9 Daiki Ueno 2023-11-29 20:53:02 UTC
(In reply to Fabio Valentini from comment #8)

> There is a newer release of this crate available (v4, with the latest being
> v4.2.0).
> But if you explicitly need v3 for what you're working on, then packaging
> v3.1.15 (the most recent version in the v3 series) is fine.

Thank you for the review. As this is for rust-educe, whose upstream still requires ^3.1 of enum-ordinalize, I would go with v3 for now.

Comment 10 Fedora Admin user for bugzilla script actions 2023-11-29 20:54:08 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-enum-ordinalize

Comment 11 Daiki Ueno 2023-11-29 21:52:42 UTC
The package has been imported and built in rawhide:
https://bodhi.fedoraproject.org/updates/FEDORA-2023-7decf6f42f


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