Bug 2116065 - Review Request: rust-primal-check - Fast standalone primality testing
Summary: Review Request: rust-primal-check - Fast standalone primality testing
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 Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2116083 2116092
TreeView+ depends on / blocked
 
Reported: 2022-08-06 19:40 UTC by Orion Poplawski
Modified: 2022-10-01 02:29 UTC (History)
2 users (show)

Fixed In Version: rust-primal-check-0.3.2-1.fc38
Clone Of:
Environment:
Last Closed: 2022-10-01 02:29:17 UTC
Type: Bug
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Orion Poplawski 2022-08-06 19:40:11 UTC
Spec URL: https://orion.fedorapeople.org/rust-primal-check.spec
SRPM URL: https://orion.fedorapeople.org/rust-primal-check-0.3.1-1.fc37.src.rpm
Description:

Fast standalone primality testing.

Fedora Account System Username: orion

Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=90541823

Comment 1 Fabio Valentini 2022-08-11 16:39:23 UTC
c.f. https://bugzilla.redhat.com/show_bug.cgi?id=2116066#c1

Additionally, this:

%files
%license LICENSE-*

will result in the license files getting installed into the buildroot twice (once in %{crate_instdir}, once in %{_licensedir}).
Use this instead (which matches what rust2rpm will generate):

%files
%license %{crate_instdir}/LICENSE-Apache
%license %{crate_instdir}/LICENSE-MIT

Comment 3 Orion Poplawski 2022-08-16 01:10:34 UTC
Upstream now provides the license files.

Spec URL: https://orion.fedorapeople.org/rust-primal-check.spec
SRPM URL: https://orion.fedorapeople.org/rust-primal-check-0.3.2-1.fc38.src.rpm

Comment 4 Fabio Valentini 2022-08-16 21:40:45 UTC
Looks good to me!

===

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 (tests disabled to break dependency loop)
- latest version of the crate is packaged
- license matches upstream specification (MIT OR Apache-2.0) and is acceptable for Fedora
- license files are included with %license in %files
- package complies with Rust Packaging Guidelines

Package APPROVED.

===

Recommended post-import rust-sig tasks:

- add @rust-sig with "commit" access as package co-maintainer

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

- 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

- track package in koschei for all built branches

Comment 5 Fabio Valentini 2022-08-16 21:43:02 UTC
Two non-blocking comments:

1. Please make sure to regenerate .spec files with rust2rpm for *every* new version.

For example, this line is no longer correct:
# Upstream license specification: MIT/Apache-2.0
As the upstream crate metadata has updated the license string to use "OR" instead of the deprecated "/" SPDX syntax.

If you don't re-run rust2rpm for new versions, it can result in broken packages (for example, if features or optional dependencies change, the generated subpackages for those features / optional dependencies will be outdated, and will have broken dependencies, or will be missing).

2. Make sure you don't "fedpkg import" the SRPM file that you uploaded for this review. It was already munged by rpmautospec.

PS: I tend to build SRPM files for review requests with "rpmbuild -bs", which doesn't expand those macros, and creates SRPM files that are safe to be imported with "fedpkg import".

Comment 6 Orion Poplawski 2022-08-16 22:44:09 UTC
Thanks for the pointers, I'll try to remember them.

Comment 7 Gwyn Ciesla 2022-08-18 16:00:11 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-primal-check


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