Bug 2577216

Summary: Review Request: tarpm - RPM metadata and payload utility
Product: [Fedora] Fedora Reporter: Dave Cantrell <dcantrell>
Component: Package ReviewAssignee: David Shea <reallylongword>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: package-review
Target Milestone: ---Flags: reallylongword: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
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:

Description Dave Cantrell 2026-11-19 19:56:15 UTC
Spec URL: https://dcantrell.fedorapeople.org/tarpm/tarpm.spec
SRPM URL: https://dcantrell.fedorapeople.org/tarpm/tarpm-0.4-1.fc44.src.rpm

Description:
tarpm is a command line utility to create or extract built RPM and SRPM files.  The usual way of creating an RPM or SRPM is to use rpmbuild(8).  The tarpm(1) program can take a built RPM or SRPM file and extract its contents to a subdirectory, in a manner similar to using tar(1) to unpack a tar file.  The RPM metadata is written to JSON files and the payload is extracted to a subdirectory.  You can also use tarpm(1) to create an RPM or SRPM using the header metadata in JSON files and the payload subdirectory.  The program will recalculate the necessary checksums and digests to ensure the resulting package is usable by rpm(8).

Fedora Account System Username: dcantrell

Comment 1 David Shea 2026-11-19 20:00:01 UTC
Reassigning to myself, but to the user ID associated with my Fedora account

Comment 2 David Shea 2026-11-20 15:57:05 UTC
Ok here comes a review:


This is a review *template*. Besides handling the [ ]-marked tests you are
also supposed to fix the template before pasting into bugzilla:
- Add issues you find to the list of issues on top. If there isn't such
  a list, create one.
- Add your own remarks to the template checks.
- Add new lines marked [!] or [?] when you discover new things not
  listed by fedora-review.
- Change or remove any text in the template which is plain wrong. In this
  case you could also file a bug against fedora-review
- Remove the "[ ] Manual check required", you will not have any such lines
  in what you paste.
- Remove attachments which you deem not really useful (the rpmlint
  ones are mandatory, though)
- Remove this text



Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

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", "GNU Lesser General Public License,
     Version 3", "*No copyright* Apache License 2.0", "BSD 3-Clause
     License", "*No copyright* GNU General Public License, Version 3", "GNU
     General Public License v3.0 or later", "*No copyright* MIT License",
     "GNU General Public License, Version 3", "Apache License 2.0". 48
     files have unknown license. Detailed output of licensecheck in
     /home/dshea/2577216-tarpm/licensecheck.txt
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
     (dshea: I'm ignore what this line appears to be saying (big ol' comment in the spec
      file), because that's not an actual documented requirement. The SPDX expression is correct
      and the individual files have the relevant license information)
[x]: %build honors applicable compiler flags or justifies otherwise.
     (builds with %meson_build, no flag overrides)
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.
     (autochangelog)
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: 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]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 19690 bytes in 6 files.
[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 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]: Package does not contain duplicates in %files.
[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]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[!]: Sources can be downloaded from URI in Source: tag
     Note: Could not download Source0:
     https://github.com/dcantrell/tarpm/archive/tarpm-0.4.tar.gz
     See: https://docs.fedoraproject.org/en-US/packaging-
     guidelines/SourceURL/
[-]: 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]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
     (Source0 is wrong but the URL points to github, can be figured out from there)
[-]: 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.
[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]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: tarpm-0.4-1.fc46.x86_64.rpm
          tarpm-0.4-1.fc46.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.9.0
configuration:
    /usr/lib/python3.15/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/tmp2603mlg7')]
checks: 32, packages: 2

tarpm.src: E: spelling-error ('rpmbuild', '%description -l en_US rpmbuild -> rpm build, rpm-build, rebuild')
tarpm.src: E: spelling-error ('subdirectory', '%description -l en_US subdirectory -> sub directory, sub-directory, directory')
tarpm.src: E: spelling-error ('checksums', '%description -l en_US checksums -> checksum, check sums, check-sums')
tarpm.x86_64: E: spelling-error ('rpmbuild', '%description -l en_US rpmbuild -> rpm build, rpm-build, rebuild')
tarpm.x86_64: E: spelling-error ('subdirectory', '%description -l en_US subdirectory -> sub directory, sub-directory, directory')
tarpm.x86_64: E: spelling-error ('checksums', '%description -l en_US checksums -> checksum, check sums, check-sums')
 2 packages and 0 specfiles checked; 6 errors, 0 warnings, 5 filtered, 6 badness; has taken 0.7 s 

(dshea: these are all nonsense)


Rpmlint (debuginfo)
-------------------
Checking: tarpm-debuginfo-0.4-1.fc46.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.9.0
configuration:
    /usr/lib/python3.15/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/tmpptuykwmz')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 0.3 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.10.0
configuration:
    /usr/lib/python3.15/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
checks: 33, packages: 2

tarpm.x86_64: W: spelling-error ('rpmbuild', '%description -l en_US rpmbuild -> rpm build, rpm-build, rebuild')
tarpm.x86_64: W: spelling-error ('subdirectory', '%description -l en_US subdirectory -> sub directory, sub-directory, directory')
tarpm.x86_64: W: spelling-error ('checksums', '%description -l en_US checksums -> checksum, check sums, check-sums')
 2 packages and 0 specfiles checked; 0 errors, 3 warnings, 8 filtered, 0 badness; has taken 0.4 s 

(dshea: these are also nonsense)

Requires
--------
tarpm (rpmlib, GLIBC filtered):
    libarchive.so.13()(64bit)
    libc.so.6()(64bit)
    libcrypto.so.4()(64bit)
    libcrypto.so.4(OPENSSL_4.0.0)(64bit)
    libjson-c.so.5()(64bit)
    libjson-c.so.5(JSONC_0.14)(64bit)
    liblzma.so.5()(64bit)
    liblzma.so.5(XZ_5.0)(64bit)
    libmagic.so.1()(64bit)
    librpm.so.10()(64bit)
    librpmio.so.10()(64bit)
    libzstd.so.1()(64bit)
    rtld(GNU_HASH)



Provides
--------
tarpm:
    tarpm
    tarpm(x86-64)



Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18
Command line :/usr/bin/fedora-review -b 2577216
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, R, Perl, SugarActivity, Ocaml, fonts, PHP, Python, Haskell
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT

Comment 3 David Shea 2026-11-20 15:59:57 UTC
There's a minor issue with the Source0 URL which I suspect is leftover from moving forges or something. It should be something like https://github.com/dcantrell/tarpm/releases/download/v%{version}/%{name}-%{version}.tar.gz (i.e., releases/download/ instead of archive/)

This is a SHOULD item and super minor so I'm not going to block the review on that. Fedora packaging PASS.