Spec URL: https://decathorpe.fedorapeople.org/rust-x25519-dalek.spec SRPM URL: https://decathorpe.fedorapeople.org/rust-x25519-dalek-2.0.1-1.fc40.src.rpm Description: X25519 elliptic curve Diffie-Hellman key exchange in pure-Rust, using curve25519-dalek. Fedora Account System Username: decathorpe
Copr build: https://copr.fedorainfracloud.org/coprs/build/7396566 (failed) Build log: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2278160-rust-x25519-dalek/fedora-rawhide-x86_64/07396566-rust-x25519-dalek/builder-live.log.gz Please make sure the package builds successfully at least for Fedora Rawhide. - If the build failed for unrelated reasons (e.g. temporary network unavailability), please ignore it. - If the build failed because of missing BuildRequires, please make sure they are listed in the "Depends On" field --- 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.
No issues found; APPROVED. Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated The spec file is almost exactly as generated by rust2rpm, greatly simplifying the review. --- rust-x25519-dalek.spec 2024-05-09 19:00:50.176054320 -0400 +++ ../srpm-unpacked/rust-x25519-dalek.spec 2024-04-30 20:00:00.000000000 -0400 @@ -7,11 +7,14 @@ Name: rust-x25519-dalek Version: 2.0.1 Release: %autorelease -Summary: X25519 elliptic curve Diffie-Hellman key exchange in pure-Rust, using curve25519-dalek +Summary: X25519 elliptic curve Diffie-Hellman key exchange License: BSD-3-Clause URL: https://crates.io/crates/x25519-dalek Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: x25519-dalek-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 The summary is manually shortened, and a patch is added to drop a benchmark-only dependency. This is reasonable to do, and to keep downstream-only, and adequately commented. The contents of the patch match the comment. From https://cryptography.io/en/latest/hazmat/primitives/asymmetric/x25519/ “X25519 is an elliptic curve Diffie-Hellman key exchange using Curve25519.” and from https://fedoraproject.org/wiki/Legal:ECC, Curve 25519 is OK for Fedora. Issues: ======= - Package does not contain duplicates in %files. Note: warning: File listed twice: /usr/share/cargo/registry/x25519-dalek-2.0.1/CHANGELOG.md See: https://docs.fedoraproject.org/en-US/packaging- guidelines/#_duplicate_files This is not a serious problem; if it needs to be fixed, it should be done in rust2rpm. ===== MUST items ===== Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "BSD 3-Clause License". 11 files have unknown license. Detailed output of licensecheck in /home/ben/Downloads/review/2278160-rust-x25519-dalek/licensecheck.txt [x]: License file installed when any subpackage combination is installed. [x]: Package requires other packages for directories it uses. Note: No known owner of /usr/share/cargo, /usr/share/cargo/registry, /usr/share, /usr Spurious diagnostics (fedora-review bug). [x]: Package must own all directories that it creates. Note: Directories without known owners: /usr/share/cargo/registry, /usr/share, /usr, /usr/share/cargo Spurious diagnostics (fedora-review bug). [x]: %build honors applicable compiler flags or justifies otherwise. [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [x]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Package is not known to require an ExcludeArch tag. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [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. [x]: The License field must be a valid SPDX expression. [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. [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. [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. [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. Large could be size (~1MB) or number of files. Note: Documentation size is 0 bytes in 0 files. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [x]: Fully versioned dependency in subpackages if applicable. Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rust-x25519-dalek-devel , rust-x25519-dalek+default-devel , rust-x25519-dalek+alloc-devel , rust-x25519-dalek+getrandom-devel , rust-x25519-dalek+precomputed-tables-devel , rust-x25519-dalek+reusable_secrets-devel , rust-x25519-dalek+serde- devel , rust-x25519-dalek+static_secrets-devel , rust-x25519-dalek+zeroize-devel [x]: Package functions as described. (tests pass) [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: Patches link to upstream bugs/comments/lists or are otherwise justified. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [x]: Package should compile and build into binary rpms on all supported architectures. https://koji.fedoraproject.org/koji/taskinfo?taskID=117487255 [x]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [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 [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: There are rpmlint messages (see attachment). [x]: Spec file according to URL is the same as in SRPM. Rpmlint ------- Checking: rust-x25519-dalek-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+default-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+alloc-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+getrandom-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+precomputed-tables-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+reusable_secrets-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+serde-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+static_secrets-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek+zeroize-devel-2.0.1-1.fc41.noarch.rpm rust-x25519-dalek-2.0.1-1.fc41.src.rpm =========================================================================================== rpmlint session starts ========================================================================================== rpmlint: 2.5.0 configuration: /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml rpmlintrc: [PosixPath('/tmp/tmpstxxn9kp')] checks: 32, packages: 10 rust-x25519-dalek+alloc-devel.noarch: W: no-documentation rust-x25519-dalek+default-devel.noarch: W: no-documentation rust-x25519-dalek+getrandom-devel.noarch: W: no-documentation rust-x25519-dalek+precomputed-tables-devel.noarch: W: no-documentation rust-x25519-dalek+reusable_secrets-devel.noarch: W: no-documentation rust-x25519-dalek+serde-devel.noarch: W: no-documentation rust-x25519-dalek+static_secrets-devel.noarch: W: no-documentation rust-x25519-dalek+zeroize-devel.noarch: W: no-documentation ===================================================== 10 packages and 0 specfiles checked; 0 errors, 8 warnings, 47 filtered, 0 badness; has taken 0.5 s ==================================================== Rpmlint (installed packages) ---------------------------- ============================ rpmlint session starts ============================ rpmlint: 2.5.0 configuration: /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml checks: 32, packages: 9 rust-x25519-dalek+reusable_secrets-devel.noarch: W: no-documentation rust-x25519-dalek+alloc-devel.noarch: W: no-documentation rust-x25519-dalek+default-devel.noarch: W: no-documentation rust-x25519-dalek+precomputed-tables-devel.noarch: W: no-documentation rust-x25519-dalek+serde-devel.noarch: W: no-documentation rust-x25519-dalek+static_secrets-devel.noarch: W: no-documentation rust-x25519-dalek+getrandom-devel.noarch: W: no-documentation rust-x25519-dalek+zeroize-devel.noarch: W: no-documentation 9 packages and 0 specfiles checked; 0 errors, 8 warnings, 43 filtered, 0 badness; has taken 0.3 s Source checksums ---------------- https://crates.io/api/v1/crates/x25519-dalek/2.0.1/download#/x25519-dalek-2.0.1.crate : CHECKSUM(SHA256) this package : c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277 CHECKSUM(SHA256) upstream package : c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277 Requires -------- rust-x25519-dalek-devel (rpmlib, GLIBC filtered): (crate(curve25519-dalek) >= 4.0.0 with crate(curve25519-dalek) < 5.0.0~) (crate(rand_core) >= 0.6.0 with crate(rand_core) < 0.7.0~) cargo rust rust-x25519-dalek+default-devel (rpmlib, GLIBC filtered): cargo crate(x25519-dalek) crate(x25519-dalek/alloc) crate(x25519-dalek/precomputed-tables) crate(x25519-dalek/zeroize) rust-x25519-dalek+alloc-devel (rpmlib, GLIBC filtered): (crate(curve25519-dalek/alloc) >= 4.0.0 with crate(curve25519-dalek/alloc) < 5.0.0~) (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~) (crate(serde/alloc) >= 1.0.0 with crate(serde/alloc) < 2.0.0~) (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~) (crate(zeroize) >= 1.0.0 with crate(zeroize) < 2.0.0~) (crate(zeroize/alloc) >= 1.0.0 with crate(zeroize/alloc) < 2.0.0~) (crate(zeroize/zeroize_derive) >= 1.0.0 with crate(zeroize/zeroize_derive) < 2.0.0~) cargo crate(x25519-dalek) rust-x25519-dalek+getrandom-devel (rpmlib, GLIBC filtered): (crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~) cargo crate(x25519-dalek) rust-x25519-dalek+precomputed-tables-devel (rpmlib, GLIBC filtered): (crate(curve25519-dalek/precomputed-tables) >= 4.0.0 with crate(curve25519-dalek/precomputed-tables) < 5.0.0~) cargo crate(x25519-dalek) rust-x25519-dalek+reusable_secrets-devel (rpmlib, GLIBC filtered): cargo crate(x25519-dalek) rust-x25519-dalek+serde-devel (rpmlib, GLIBC filtered): (crate(curve25519-dalek/serde) >= 4.0.0 with crate(curve25519-dalek/serde) < 5.0.0~) (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~) (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~) cargo crate(x25519-dalek) rust-x25519-dalek+static_secrets-devel (rpmlib, GLIBC filtered): cargo crate(x25519-dalek) rust-x25519-dalek+zeroize-devel (rpmlib, GLIBC filtered): (crate(curve25519-dalek/zeroize) >= 4.0.0 with crate(curve25519-dalek/zeroize) < 5.0.0~) (crate(zeroize) >= 1.0.0 with crate(zeroize) < 2.0.0~) (crate(zeroize/zeroize_derive) >= 1.0.0 with crate(zeroize/zeroize_derive) < 2.0.0~) cargo crate(x25519-dalek) Provides -------- rust-x25519-dalek-devel: crate(x25519-dalek) rust-x25519-dalek-devel rust-x25519-dalek+default-devel: crate(x25519-dalek/default) rust-x25519-dalek+default-devel rust-x25519-dalek+alloc-devel: crate(x25519-dalek/alloc) rust-x25519-dalek+alloc-devel rust-x25519-dalek+getrandom-devel: crate(x25519-dalek/getrandom) rust-x25519-dalek+getrandom-devel rust-x25519-dalek+precomputed-tables-devel: crate(x25519-dalek/precomputed-tables) rust-x25519-dalek+precomputed-tables-devel rust-x25519-dalek+reusable_secrets-devel: crate(x25519-dalek/reusable_secrets) rust-x25519-dalek+reusable_secrets-devel rust-x25519-dalek+serde-devel: crate(x25519-dalek/serde) rust-x25519-dalek+serde-devel rust-x25519-dalek+static_secrets-devel: crate(x25519-dalek/static_secrets) rust-x25519-dalek+static_secrets-devel rust-x25519-dalek+zeroize-devel: crate(x25519-dalek/zeroize) rust-x25519-dalek+zeroize-devel Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24 Command line :/usr/bin/fedora-review -b 2278160 --mock-options=--dnf Buildroot used: fedora-rawhide-x86_64 Active plugins: Shell-api, Generic Disabled plugins: PHP, Ocaml, C/C++, fonts, Haskell, SugarActivity, Java, Python, Perl, R Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH
Thank you for the review!
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-x25519-dalek
Imported and built: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f0de07d08a