Bug 1993498 - Review Request: rust-statrs - Statistical computing library for Rust
Summary: Review Request: rust-statrs - Statistical computing library for Rust
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1997730
TreeView+ depends on / blocked
 
Reported: 2021-08-13 15:40 UTC by Davide Cavalca
Modified: 2021-09-03 15:25 UTC (History)
2 users (show)

Fixed In Version: rust-statrs-0.15.0-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-03 15:25:14 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Davide Cavalca 2021-08-13 15:40:20 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-statrs/rust-statrs.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-statrs/rust-statrs-0.15.0-1.fc36.src.rpm

Description:
Statistical computing library for Rust.

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2021-08-13 15:40:23 UTC
This package built on koji:  https://koji.fedoraproject.org/koji/taskinfo?taskID=73790057

Comment 2 Fabio Valentini 2021-08-26 11:34:49 UTC
Taking this review.


Blocking issue:

Do you know the license of those "data/nist/*" files?
I *think* NIST should publish things into the public domain, but it would be good to check.

Non-blocking minor issues:

1) Convert README to unix line encodings (possibly with dox2unix):
rust-statrs-devel.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/rust-statrs-devel/README.md

2) Drop the "nightly" feature (it will never work in Fedora because we only have stable Rust).

3) Leave "# Initial patched metadata" generated comment in the spec file.

4) Open a PR / link the upstream PR for the nalgebra 0.27.1 → 0.29 bump.

5) Drop the useless "data" files from %doc:

"%doc README.md CHANGELOG.md data/nist/numacc4.txt data/nist/numacc3.txt data/nist/numacc2.txt data/nist/numacc1.txt data/nist/michaelso.txt data/nist/mavro.txt data/nist/lottery.txt data/nist/lew.txt"

Those do not look like documentation at all, but rather data.
They should not be marked as %doc, leaving only "%doc README.md CHANGELOG.md".

Comment 3 Davide Cavalca 2021-08-26 16:48:27 UTC
It looks like the NIST data comes from this dataset: https://www.itl.nist.gov/div898/strd/univ/backgroundinfo.html . I couldn't find a license statement there, but I did find https://www.nist.gov/open/copyright-fair-use-and-licensing-statements-srd-data-software-and-technical-series-publications#srd which seems to imply this is under a generic attribution license and should be freely redistributable. I'm not sure how this should be represented in the License of the package though.

Comment 4 Fabio Valentini 2021-08-26 16:52:19 UTC
Well ... better ask on the legal <at> lists.fedoraproject.org list if we're not sure about the terms of the license.

Comment 6 Davide Cavalca 2021-08-30 18:09:27 UTC
Updated to address feedback.

Changelog:
- remove non-redistributable data files and disable the corresponding tests
- drop nightly feature
- fix README EOL encoding
- add upstream PR link

Comment 7 Fabio Valentini 2021-08-30 21:02:02 UTC
Looks like my message to the legal list was blocked for moderation, so I'm posting it here too:

> I'm not sure that this will be enough. After all, source packages
> (including the original sources, with those data sets) are
> redistributed by Fedora, as well.
> In such situations, it's usually necessary to create "clean" tarballs
> such that the offending material is also not redistrubited with SRPMs,
> either.
> (For an example where I needed to do this for another Rust package,
> look at ompl: https://src.fedoraproject.org/rpms/rust-opml)

Comment 8 Davide Cavalca 2021-09-02 17:23:31 UTC
Updated to address feedback.

Changelog:
- generate clean tarball without non-redistributable data files

Comment 9 Fabio Valentini 2021-09-03 10:59:25 UTC
Great, thanks! Final review:

Package was generated with rust2rpm, simplifying the review.

- package builds and installs without errors on rawhide
- test suite is run and all (runnable) unit tests pass
- latest version of the crate is packaged
- license matches upstream specification and is acceptable for Fedora
- license file is included with %license in %files
- non-redistributable test data is removed before creating a clean source tarball
- package complies with Rust Packaging Guidelines

Package APPROVED.

Comment 10 Davide Cavalca 2021-09-03 14:53:01 UTC
Thanks!

$ fedpkg request-repo rust-statrs 1993498
https://pagure.io/releng/fedora-scm-requests/issue/36683

Comment 11 Gwyn Ciesla 2021-09-03 15:01:13 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-statrs


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