Fedora Account System
Red Hat Associate
Red Hat Customer
Spec URL: https://solomoncyj.fedorapeople.org/reviews/rust-lodepng/rust-lodepng.spec SRPM URL: https://solomoncyj.fedorapeople.org/reviews/rust-lodepng/rust-lodepng-3.12.2-1.fc45.src.rpm Description: Reading and writing PNG files without system dependencies. Pure Rust port of LodePNG. Fedora Account System Username: solomoncyj
Copr build: https://copr.fedorainfracloud.org/coprs/build/10159240 (succeeded) Review template: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2441748-rust-lodepng/fedora-rawhide-x86_64/10159240-rust-lodepng/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.
I found just a few minor things that need to be adjusted before this can be approved. Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated The spec file is generated by rust2rpm, simplifying the review. One test is skipped, with a rather cryptic comment. +# * tried to unwrap on Err. unable to repo +%cargo_test -- -- --skip read_icc Skipping this test is appropriate, but it’s hard to understand that by looking at the spec file. Try something like this in rust2rpm.toml instead: [tests] comments = [ "Test read_icc requires tests/profile.png, not distributed in the crate", ] Issues: ======= - Package installs properly. Note: Installation errors (see attachment) See: https://docs.fedoraproject.org/en-US/packaging-guidelines/ Problem: conflicting requests - nothing provides (crate(flate2/zlib-ng-compat) >= 1.1.2 with crate(flate2/zlib-ng-compat) < 2.0.0~) needed by rust-lodepng+ngzlib-devel-3.12.2-1.fc46.noarch from @commandline The feature metapackage rust-lodepng+ngzlib-devel requires crate(flate2/zlib-ng-compat), which our rust-flate2 package doesn’t offer. All subpackages need to be installable. Try this in rust2rpm.toml: [features] hide = [ # Requires flate2/zlib-ng-compat "ngzlib", ] While you’re at it, hide the "cfzlib" feature, too. It’s denoted as deprecated, and is already merely an alias for the zlibrs feature. # Obsolete. Use zlibrs. cfzlib = ["flate2/zlib-rs"] - Package does not contain duplicates in %files. Note: warning: File listed twice: /usr/share/cargo/registry/lodepng-3.12.2/COPYRIGHT See: https://docs.fedoraproject.org/en-US/packaging- guidelines/#_duplicate_files OK: not a serious problem; due to reasonable rust2rpm design decisions. - The comment about the skipped test is cryptic. See the discussion above the Issues section. ===== 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", "zlib License". 14 files have unknown license. Detailed output of licensecheck in /home/ben/fedora/review/2441748-rust-lodepng/licensecheck.txt [x]: License file installed when any subpackage combination is installed. [x]: %build honors applicable compiler flags or justifies otherwise. [x]: Package contains no bundled libraries or specifies bundled libraries with Provides: bundled(<libname>) if unbundling is not possible. [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 does not use a name that already exists. Note: Couldn't connect to Pagure, check manually [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]: Rpmlint is run on all rpms the build produces. Note: No rpmlint messages. [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 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. [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 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). [-]: Fully versioned dependency in subpackages if applicable. Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rust- lodepng-devel , rust-lodepng+default-devel , rust- lodepng+_deprecated_c_ffi_default_-devel , rust-lodepng+c_ffi-devel , rust-lodepng+cfzlib-devel , rust-lodepng+ngzlib-devel , rust- lodepng+rust_backend-devel , rust-lodepng+zlibrs-devel [x]: Package functions as described. (tests pass) [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [-]: 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=151549556 [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: [!]: Rpmlint is run on all installed packages. Note: Mock build failed See: https://docs.fedoraproject.org/en-US/packaging- guidelines/#_use_rpmlint [!]: Spec file according to URL is the same as in SRPM. Note: Spec file as given by url is not the same as in SRPM (see attached diff). See: (this test has no URL) Installation errors ------------------- INFO: mock.py version 6.9 starting (python version = 3.14.8, NVR = mock-6.9-1.fc44), args: /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean --plugin-option=tmpfs:keep_mounted=True --resultdir=/home/ben/fedora/review/2441748-rust-lodepng/results install /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+c_ffi-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+cfzlib-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+default-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+zlibrs-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+rust_backend-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+_deprecated_c_ffi_default_-devel-3.12.2-1.fc46.noarch.rpm /home/ben/fedora/review/2441748-rust-lodepng/results/rust-lodepng+ngzlib-devel-3.12.2-1.fc46.noarch.rpm Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Mock Version: 6.9 INFO: Mock Version: 6.9 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Package manager dnf5 detected and used (fallback) Finish(bootstrap): chroot init Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) Finish: chroot init INFO: installing package(s): /builddir/rust-lodepng+c_ffi-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+cfzlib-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+default-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+zlibrs-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+rust_backend-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+_deprecated_c_ffi_default_-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+ngzlib-devel-3.12.2-1.fc46.noarch.rpm ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M c17cbbb89f4646c68eb28a6fb3749ca3 -D /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root -a --capability=cap_ipc_lock --resolv-conf=off --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora-rawhide-x86_64/root/installation-homedir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 /usr/bin/dnf5 --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 46 install /builddir/rust-lodepng+c_ffi-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+cfzlib-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+default-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+zlibrs-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+rust_backend-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+_deprecated_c_ffi_default_-devel-3.12.2-1.fc46.noarch.rpm /builddir/rust-lodepng+ngzlib-devel-3.12.2-1.fc46.noarch.rpm --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --setopt=tsflags=nocontexts Rpmlint ------- Checking: rust-lodepng-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+default-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+_deprecated_c_ffi_default_-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+c_ffi-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+cfzlib-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+ngzlib-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+rust_backend-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng+zlibrs-devel-3.12.2-1.fc46.noarch.rpm rust-lodepng-3.12.2-1.fc46.src.rpm ============================ rpmlint session starts ============================ rpmlint: 2.8.0 configuration: /usr/lib/python3.14/site-packages/rpmlint/configdefaults.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/tmpuj4e4wnd')] checks: 32, packages: 9 9 packages and 0 specfiles checked; 0 errors, 0 warnings, 49 filtered, 0 badness; has taken 0.3 s Source checksums ---------------- https://crates.io/api/v1/crates/lodepng/3.12.2/download#/lodepng-3.12.2.crate : CHECKSUM(SHA256) this package : fe7982db11054edc023a1b424dddcc65be18f71fa46ec6bde2efcfc1fb6b22da CHECKSUM(SHA256) upstream package : fe7982db11054edc023a1b424dddcc65be18f71fa46ec6bde2efcfc1fb6b22da Requires -------- rust-lodepng-devel (rpmlib, GLIBC filtered): (crate(crc32fast/default) >= 1.3.2 with crate(crc32fast/default) < 2.0.0~) (crate(flate2) >= 1.1.2 with crate(flate2) < 2.0.0~) (crate(rgb) >= 0.8.50 with crate(rgb) < 0.9.0~) (crate(rgb/bytemuck) >= 0.8.50 with crate(rgb/bytemuck) < 0.9.0~) cargo rust rust-lodepng+default-devel (rpmlib, GLIBC filtered): cargo crate(lodepng) crate(lodepng/_deprecated_c_ffi_default_) crate(lodepng/zlibrs) rust-lodepng+_deprecated_c_ffi_default_-devel (rpmlib, GLIBC filtered): (crate(libc/default) >= 0.2.126 with crate(libc/default) < 0.3.0~) cargo crate(lodepng) rust-lodepng+c_ffi-devel (rpmlib, GLIBC filtered): (crate(libc/default) >= 0.2.126 with crate(libc/default) < 0.3.0~) cargo crate(lodepng) rust-lodepng+cfzlib-devel (rpmlib, GLIBC filtered): (crate(flate2/zlib-rs) >= 1.1.2 with crate(flate2/zlib-rs) < 2.0.0~) cargo crate(lodepng) rust-lodepng+ngzlib-devel (rpmlib, GLIBC filtered): (crate(flate2/zlib-ng-compat) >= 1.1.2 with crate(flate2/zlib-ng-compat) < 2.0.0~) cargo crate(lodepng) rust-lodepng+rust_backend-devel (rpmlib, GLIBC filtered): (crate(flate2/rust_backend) >= 1.1.2 with crate(flate2/rust_backend) < 2.0.0~) cargo crate(lodepng) rust-lodepng+zlibrs-devel (rpmlib, GLIBC filtered): (crate(flate2/zlib-rs) >= 1.1.2 with crate(flate2/zlib-rs) < 2.0.0~) cargo crate(lodepng) Provides -------- rust-lodepng-devel: crate(lodepng) purl(pkg:cargo/lodepng.2) rust-lodepng-devel rust-lodepng+default-devel: crate(lodepng/default) rust-lodepng+default-devel rust-lodepng+_deprecated_c_ffi_default_-devel: crate(lodepng/_deprecated_c_ffi_default_) rust-lodepng+_deprecated_c_ffi_default_-devel rust-lodepng+c_ffi-devel: crate(lodepng/c_ffi) rust-lodepng+c_ffi-devel rust-lodepng+cfzlib-devel: crate(lodepng/cfzlib) rust-lodepng+cfzlib-devel rust-lodepng+ngzlib-devel: crate(lodepng/ngzlib) rust-lodepng+ngzlib-devel rust-lodepng+rust_backend-devel: crate(lodepng/rust_backend) rust-lodepng+rust_backend-devel rust-lodepng+zlibrs-devel: crate(lodepng/zlibrs) rust-lodepng+zlibrs-devel Diff spec file in url and in SRPM --------------------------------- --- /home/ben/fedora/review/2441748-rust-lodepng/srpm/rust-lodepng.spec 2026-10-20 12:59:28.336582238 +0100 +++ /home/ben/fedora/review/2441748-rust-lodepng/srpm-unpacked/rust-lodepng.spec 2026-02-22 00:00:00.000000000 +0000 @@ -1,2 +1,12 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.8.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + # Generated by rust2rpm 28 %bcond check 1 @@ -140,3 +150,6 @@ %changelog -%autochangelog +## START: Generated by rpmautospec +* Sun Feb 22 2026 John Doe <packager> - 3.12.2-1 +- Uncommitted changes +## END: Generated by rpmautospec Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18 Command line :/usr/bin/fedora-review -b 2441748 Buildroot used: fedora-rawhide-x86_64 Active plugins: Generic, Shell-api Disabled plugins: C/C++, PHP, R, fonts, Ocaml, Perl, Python, Java, SugarActivity, Haskell Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT