Bug 2434123

Summary: Review Request: rust-string-cases - String case conversion utilities
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: Package ReviewAssignee: Ben Beasley <code>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: code: fedora-review?
Hardware: Unspecified   
OS: Unspecified   
URL: https://crates.io/crates/string-cases
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2434130    

Comment 1 Fedora Review Service 2026-01-28 21:56:19 UTC
There seems to be some problem with the following file.
SRPM URL: https://fedorapeople.org/~limb/review/rust-string-cases/rust-string-cases-0.2.0-1.fc44.src.rpm
Fetching it results in a 404 Not Found error.
Please make sure the URL is correct and publicly available.


---
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 2 Ben Beasley 2026-02-23 10:21:07 UTC
> # FIXME: no license files detected

You have to actually fix this. The MIT license does require the text (copyright and permission statements) to be distributed. See https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text. Try working with upstream first.

Comment 3 Ben Beasley 2026-02-23 10:25:32 UTC
Since the README.md is included as a Rust documentation string,

> #![doc = include_str!("./README.md")]

it should not be packaged as documentation, because compilation of the crate will fail without it. This is a subtle issue, easy to miss and unlikely to cause problems in practice since Rust library packages are generally only useful for building other Fedora packages, but strictly speaking you should do something about it. You can try something like this in rust2rpm.toml

[package]
doc-files.exclude = [
    # This file is included as a documentation string in the library, so
    # compilation fails if it is not present. It therefore must not be marked
    # as documentation, because packages should be equally useful when their
    # documentation is not installed.
    "README.md",
]

Comment 4 Gwyn Ciesla 2026-02-26 21:59:33 UTC
To being with:

https://github.com/kaleidawave/string-cases/issues/2

Comment 5 Gwyn Ciesla 2026-02-26 22:02:47 UTC
I tried the rust2rpm.toml suggesting but it doesn't seem to work.

Comment 6 Ben Beasley 2026-02-27 10:02:17 UTC
(In reply to Gwyn Ciesla from comment #5)
> I tried the rust2rpm.toml suggesting but it doesn't seem to work.

Hmm, I just tried copying everything starting with [package] from https://bugzilla.redhat.com/show_bug.cgi?id=2434123#c3 into a rust2rpm.toml file in an empty directory, then running “rust2rpm -I string-cases”, and it worked exactly as expected, generating a spec file like the current submission but without the line “%doc %{crate_instdir}/README.md”. What does it do instead for you?

Comment 7 Ben Beasley 2026-03-01 09:55:21 UTC
(In reply to Gwyn Ciesla from comment #4)
> https://github.com/kaleidawave/string-cases/issues/2

Upstream fixed this in https://github.com/kaleidawave/string-cases/commit/787ef44c626edc30e1aaf420da5eb14fca0f491a. You would be well-justified in using the new LICENCE file as an additional source (https://github.com/kaleidawave/string-cases/raw/787ef44c626edc30e1aaf420da5eb14fca0f491a/LICENCE) and patching it in using something similar to https://src.fedoraproject.org/rpms/rust-quote-use-macros/blob/rawhide/f/rust2rpm.toml.

Comment 8 Gwyn Ciesla 2026-03-03 16:57:15 UTC
(In reply to Ben Beasley from comment #6)
> (In reply to Gwyn Ciesla from comment #5)
> > I tried the rust2rpm.toml suggesting but it doesn't seem to work.
> 
> Hmm, I just tried copying everything starting with [package] from
> https://bugzilla.redhat.com/show_bug.cgi?id=2434123#c3 into a rust2rpm.toml
> file in an empty directory, then running “rust2rpm -I string-cases”, and it
> worked exactly as expected, generating a spec file like the current
> submission but without the line “%doc %{crate_instdir}/README.md”. What does
> it do instead for you?

That. I was looking for an %exclude line because I'm as new to rust packaging as I am to rust. Thank you. :)

Comment 10 Fedora Review Service 2026-03-04 09:09:13 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10189712
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2434123-rust-string-cases/fedora-rawhide-x86_64/10189712-rust-string-cases/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.