Bug 2335293

Summary: Review Request: rust-notify-types - Types used by the notify crate
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: Package ReviewAssignee: Fabio Valentini <decathorpe>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: decathorpe: fedora-review+
Hardware: All   
OS: Linux   
URL: https://crates.io/crates/notify-types
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-03 13:40:55 UTC Type: Bug
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: 2321807    
Attachments:
Description Flags
Configuration file for rust2rpm
none
Updated configuration file for rust2rpm
none
The .spec file difference from Copr build 8464224 to 8464549 none

Description Ben Beasley 2025-01-02 15:34:23 UTC
Created attachment 2064531 [details]
Configuration file for rust2rpm

Spec URL: https://music.fedorapeople.org/rust-notify-types.spec
SRPM URL: https://music.fedorapeople.org/rust-notify-types-1.0.1-1.fc41.src.rpm
Description: Types used by the notify crate.
Fedora Account System Username: music

Comment 1 Ben Beasley 2025-01-02 15:35:52 UTC
https://release-monitoring.org/project/376196/

Comment 2 Fedora Review Service 2025-01-02 15:41:01 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8464223
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2335293-rust-notify-types/fedora-rawhide-x86_64/08464223-rust-notify-types/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 3 Fedora Review Service 2025-01-02 15:41:19 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8464224
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2335293-rust-notify-types/fedora-rawhide-x86_64/08464224-rust-notify-types/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 2025-01-02 15:42:23 UTC
It looks like one included file still has the old license header: src/event.rs

This references the old CC0-1.0 / Artistic-ish license of notify < 6, so it's probably a mistake, but it would be good to get confirmation.

Other than that, the package LGTM.

Comment 5 Ben Beasley 2025-01-02 15:52:05 UTC
(In reply to Fabio Valentini from comment #4)
> It looks like one included file still has the old license header:
> src/event.rs
> 
> This references the old CC0-1.0 / Artistic-ish license of notify < 6, so
> it's probably a mistake, but it would be good to get confirmation.
> 
> Other than that, the package LGTM.

Hmm, according to https://github.com/notify-rs/notify/commit/08e74dae8e96fbd25704cdaa530ffc02f6d33039#diff-fec21ee7a34c09969f535791a7963a9f59b57d12291e50864e0bb465aeb0e787 this file was just moved over from the notify crate, so the header is probably correct. (The actual notify crate wasn’t relicensed for 7.0.0; it’s still CC0-1.0.)

I guess I’ll open an upstream PR to adjust the crate license from MIT OR Apache-2.0 to (MIT OR Apache-2.0) AND (CC0-1.0 OR Artistic-2.0).

Comment 7 Ben Beasley 2025-01-02 18:18:31 UTC
Created attachment 2064543 [details]
Updated configuration file for rust2rpm

The spec file is no longer the unmodified output of rust2rpm; some comments are added manually, and so is the LICENSE-CC0 file in the %files list.

Comment 8 Fedora Review Service 2025-01-02 18:23:56 UTC
Created attachment 2064544 [details]
The .spec file difference from Copr build 8464224 to 8464549

Comment 9 Fedora Review Service 2025-01-02 18:23:58 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8464549
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2335293-rust-notify-types/fedora-rawhide-x86_64/08464549-rust-notify-types/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 10 Fabio Valentini 2025-01-02 22:28:53 UTC
Thank you, this looks good to me. If the upstream project removes the differing license header from src/events.rs in the next release, as they suggest in the upstream ticket, the additional CC0-1.0 license can be dropped again. I agree that this use of CC0-1.0 for code in a new package falls under the rule that CC0-1.0 licensed code that was in Fedora before it was dropped as a "good" license, since the file in question has just been moved from the "notify" into the "notify-types" project as of version 7.0.0 of the "notify" crate.

===

Package was generated with rust2rpm, simplifying the review.

✅ package contains only permissible content
✅ 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 and is acceptable for Fedora (with justified clarifications)
✅ license files are 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 (*NOT* pre-release) 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)

Comment 11 Fedora Admin user for bugzilla script actions 2025-01-03 13:12:58 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-notify-types

Comment 12 Fedora Update System 2025-01-03 13:38:17 UTC
FEDORA-2025-3a3f9ff8bd (rust-notify-types-1.0.1-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3a3f9ff8bd

Comment 13 Fedora Update System 2025-01-03 13:40:55 UTC
FEDORA-2025-3a3f9ff8bd (rust-notify-types-1.0.1-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.