https://bugzilla.redhat.com/show_bug.cgi?id=2544940
Sergio Correia <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-review? |fedora-review+ --- Comment #1 from Sergio Correia <[email protected]> --- Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated Issues: ======= None - package meets all MUST requirements. Note: fedora-review flags "Package does not contain duplicates in %files" due to LICENSE listed both via %license and via %{crate_instdir}/. This is the standard rust2rpm pattern and is correct per Rust SIG guidance. ===== MUST items ===== Generic: [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. Note: Built in fedora-rawhide-aarch64 mock chroot via fedora-review. [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. Note: MIT License. LICENSE file contains standard MIT text with copyright (c) 2025 Microsoft Azure. [x]: License field in the package spec file matches the actual license. Note: Spec declares "License: MIT". Cargo.toml declares license = "MIT". LICENSE file is MIT. All three match. [x]: License file installed when any subpackage combination is installed. Note: %license %{crate_instdir}/LICENSE on spec line 37. [x]: %build honors applicable compiler flags or justifies otherwise. Note: Uses %cargo_build which sets %build_rustflags automatically. [x]: Package contains no bundled libraries without FPC exception. Note: All dependencies declared via Cargo and resolved from Fedora registry via %cargo_generate_buildrequires. No vendored deps. [x]: Changelog in prescribed format. Note: Uses %autochangelog. [x]: Sources contain only permissible code or content. Note: TPM 2.0 command interface library for Azure VMs. Pure Rust, no native code. Reviewed source; legitimate cryptographic/TPM operations, no malware or suspicious code. [-]: Package contains desktop file if it is a GUI application. Note: Library package, not a GUI application. [x]: Development files must be in a -devel package. Note: Rust -devel package with library source. [x]: Package uses nothing in %doc for runtime. Note: Only README.md marked as %doc. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. Note: rust-azure-tpm follows Rust crate naming (rust-$crate). [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. Note: Installs to %{crate_instdir} = /usr/share/cargo/registry/azure-tpm-0.1.0/ [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. Note: New package, not a rename. [x]: Requires correct, justified where necessary. Note: Dependencies auto-generated via cargo-rpm-macros. Requires bitfield-struct, digest, hex, rand, serde, serde_json, sha1, sha2, tracing, all with appropriate SemVer version constraints. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. Note: Library package, no systemd files needed. [x]: Package is not known to require an ExcludeArch tag. [x]: Package complies to the Packaging Guidelines. [x]: Package installs properly. Note: Tested in clean fedora-rawhide-aarch64 mock chroot. Both rust-azure-tpm-devel and rust-azure-tpm+default-devel install successfully with all dependencies resolved from Fedora repos. [x]: Rpmlint is run on all rpms the build produces. Note: 0 errors, 0 warnings. [x]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %license. Note: LICENSE included via %license directive. [x]: The License field must be a valid SPDX expression. Note: "MIT" is a valid SPDX identifier. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT. [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. Note: Uses %autorelease which includes dist tag. [x]: Package does not contain duplicates in %files. Note: LICENSE listed via %license and via %{crate_instdir}/. This is the standard rust2rpm pattern and is correct (confirmed by Rust SIG). [x]: Permissions on files are set properly. [x]: Package must not depend on deprecated() packages. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. Note: Uses %cargo_install. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. Note: SHA256 checksums match: 6aba3c76b6720eabed3349061682cf67b47370ed580642ea205147bed8de089c [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Large documentation must go in a -doc subpackage. Note: Documentation size is 0 bytes in 0 files. [x]: Packages must not store files under /srv, /opt or /usr/local. ===== Rust-Specific MUST items ===== [x]: Rust crate packages MUST use rust-$crate naming. Note: Package name is rust-azure-tpm, crate name is azure-tpm. [x]: Rust crate packages MUST use %{crates_source} as source. Note: Spec line 14. [x]: Rust packages building with cargo MUST have BuildRequires: cargo-rpm-macros. Note: Spec line 20: BuildRequires: cargo-rpm-macros >= 24. [x]: Rust packages MUST set %bcond check. Note: Spec line 2: %bcond check 1 (tests enabled). [x]: Rust packages MUST call %cargo_prep in %prep. Note: Spec line 55. [x]: Rust packages building with cargo MUST use %cargo_generate_buildrequires. Note: Spec line 58. [x]: Rust packages MUST call %cargo_build in %build. Note: Spec line 61. [x]: Rust crate library packages MUST call %cargo_install in %install. Note: Spec line 64. [x]: Rust packages MUST call %cargo_test in %check when tests enabled. Note: Spec line 68, guarded by %{with check}. [x]: Feature subpackages match crate features. Note: Cargo.toml has no [features] table, only the implicit "default" feature. Spec has rust-azure-tpm-devel (main) and rust-azure-tpm+default-devel. This is correct. [x]: +default-devel subpackage exists. Note: Spec line 41. [x]: No -n/--no-default-features flag misuse. Note: No -n or --no-default-features in any %cargo_* macro call. [x]: %cargo_* macro flags are consistent. Note: No -a, -n, or -f flags used on any %cargo_* macro. Consistent. [x]: Crate license metadata matches Fedora package License tag. Note: Cargo.toml license = "MIT", spec License: MIT. Match. [x]: Patches to Cargo.toml are documented in the spec. Note: Spec lines 15-16 (auto-generated metadata patch) and lines 17-18 (bitfield-struct dep version update) both have comments. [x]: Patches use rust2rpm-generated filenames. Note: azure-tpm-fix-metadata-auto.diff follows the rust2rpm convention. azure-tpm-fix-bitfield-struct-dep.diff is a manual patch but follows a consistent naming pattern. [-]: No ExcludeArch misuse for library crates. Note: No ExcludeArch in spec. [-]: No OPENSSL_NO_VENDOR without vendored deps. Note: Not present in spec. [-]: %cargo_license_summary needed for binary targets. Note: Library-only crate, no binary targets. Not required. [x]: Spec generated by rust2rpm. Note: Spec line 1: "# Generated by rust2rpm 28". ===== MUST Installation Test ===== [x]: All subpackages install cleanly in a mock chroot. Note: Tested in clean fedora-rawhide-aarch64 mock chroot. Installed: rust-azure-tpm-devel-0.1.0-1.fc46.noarch.rpm rust-azure-tpm+default-devel-0.1.0-1.fc46.noarch.rpm Both installed successfully, all dependencies resolved. ===== SHOULD items ===== Generic: [x]: Reviewer should test that the package builds in mock. Note: fedora-review ran mock build successfully. [x]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. Note: LICENSE file is included in upstream source. [x]: Final provides and requires are sane (see below). [-]: Fully versioned dependency in subpackages if applicable. Note: Rust feature packages use crate() dependencies. The %{name}%{?_isa} pattern is not applicable for noarch Rust packages. [x]: Package functions as described. Note: TPM 2.0 command interface for Azure VMs. [x]: Latest version is packaged. Note: Version 0.1.0 is the latest on crates.io (published 2026-07-28). [-]: Package does not include license text files separate from upstream. [-]: Patches link to upstream bugs/comments/lists or are otherwise justified. Note: Two patches: 1. azure-tpm-fix-metadata-auto.diff: strips Windows-only dependencies (windows-sys) and Windows-only dev-dependencies (getrandom with vtpm_tests cfg). Standard for Linux packaging. 2. azure-tpm-fix-bitfield-struct-dep.diff: updates bitfield-struct dependency from 0.6 to 0.13 to match version available in Fedora. Fedora-specific, appropriate. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: crates.io does not provide GPG signatures. [-]: Package should compile and build into binary rpms on all supported architectures. Note: BuildArch: noarch. Rust source packages are architecture independent. [x]: %check is present and all tests pass. Note: %bcond check 1, %cargo_test runs in %check. [x]: Packages should try to preserve timestamps of original installed files. Note: Handled by cargo-rpm-macros. [x]: Buildroot is not present. [x]: Package has no %clean section with rm -rf %{buildroot}. [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file. [x]: Sources can be downloaded from URI in Source: tag. Note: Uses %{crates_source} pointing to crates.io. [x]: SourceX is a working URL. [x]: Spec use %global instead of %define unless justified. ===== EXTRA items ===== Generic: [x]: Rpmlint is run on all installed packages. Note: 0 errors, 0 warnings. [-]: Spec file according to URL is the same as in SRPM. Note: Diff shows only rpmautospec expansion (%autorelease / %autochangelog). This is expected and harmless. Rpmlint ------- Checking: rust-azure-tpm-devel-0.1.0-1.fc46.noarch.rpm rust-azure-tpm+default-devel-0.1.0-1.fc46.noarch.rpm rust-azure-tpm-0.1.0-1.fc46.src.rpm 3 packages and 0 specfiles checked; 0 errors, 0 warnings, 13 filtered, 0 badness; has taken 0.1 s Rpmlint (installed packages) ---------------------------- 2 packages and 0 specfiles checked; 0 errors, 0 warnings, 9 filtered, 0 badness; has taken 0.0 s Source checksums ---------------- https://crates.io/api/v1/crates/azure-tpm/0.1.0/download#/azure-tpm-0.1.0.crate : CHECKSUM(SHA256) this package : 6aba3c76b6720eabed3349061682cf67b47370ed580642ea205147bed8de089c CHECKSUM(SHA256) upstream package : 6aba3c76b6720eabed3349061682cf67b47370ed580642ea205147bed8de089c Requires -------- rust-azure-tpm-devel (rpmlib, GLIBC filtered): (crate(bitfield-struct/default) >= 0.13.0 with crate(bitfield-struct/default) < 0.14.0~) (crate(digest/default) >= 0.10.0 with crate(digest/default) < 0.11.0~) (crate(hex/default) >= 0.4.0 with crate(hex/default) < 0.5.0~) (crate(rand/default) >= 0.9.0 with crate(rand/default) < 0.10.0~) (crate(rand/std) >= 0.9.0 with crate(rand/std) < 0.10.0~) (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~) (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~) (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~) (crate(serde_json/preserve_order) >= 1.0.0 with crate(serde_json/preserve_order) < 2.0.0~) (crate(sha1/default) >= 0.10.0 with crate(sha1/default) < 0.11.0~) (crate(sha2/default) >= 0.10.0 with crate(sha2/default) < 0.11.0~) (crate(tracing/default) >= 0.1.0 with crate(tracing/default) < 0.2.0~) cargo rust rust-azure-tpm+default-devel (rpmlib, GLIBC filtered): cargo crate(azure-tpm) Provides -------- rust-azure-tpm-devel: crate(azure-tpm) purl(pkg:cargo/[email protected]) rust-azure-tpm-devel rust-azure-tpm+default-devel: crate(azure-tpm/default) rust-azure-tpm+default-devel Package APPROVED. Clean rust2rpm-generated library crate, all MUST items pass, installation verified in mock, rpmlint clean, checksums match. -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2544940 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202544940%23c1 -- _______________________________________________ package-review mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
