Bug 2571927

Summary: Review Request: dr_wav - WAV audio loader and writer
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: Package ReviewAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: RELEASE_PENDING --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: nixs.code, package-review
Target Milestone: ---Flags: dominik: 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:
Bug Depends On:    
Bug Blocks: 2218117    

Description Ben Beasley 2026-11-11 21:37:38 UTC
Spec URL: https://music.fedorapeople.org/dr_wav.spec
SRPM URL: https://music.fedorapeople.org/dr_wav-0.14.6-1.fc45.src.rpm
Description: WAV audio loader and writer.
Fedora Account System Username: music

Since I introduced https://src.fedoraproject.org/rpms/dr_libs, upstream has started tagging releases for each of the three header-only libraries currently shipped as subpackages of the dr_libs package: dr_flac, dr_mp3, and dr_wav. I’d like to start shipping them as three separate source packages so that I can package them from their release tags and avoid the need for snapshot versioning.

The Epoch is required because I need dr_wav-devel-0.14.6-1 to obsolete dr_wav-devel-0.14.6^20261030.35b5c39-2 from dr_libs.

Comment 1 Nikita Sizikov 2026-11-16 15:15:35 UTC
Unofficial review: I'm not a packager yet (sponsorship request:
https://forge.fedoraproject.org/packaging/sponsors/issues/805), so this
can't count as the formal review. I hope the notes are useful anyway.

I ran fedora-review 0.12.0 in mock (fedora-rawhide-x86_64), then went
through the spec and the wav-0.14.6 sources by hand. The packaging looks
good to me. There's one real finding about %check, one question about
branches, and a few small suggestions.

1. %check runs, but no tests are executed
=========================================

build.log shows:
    + /usr/bin/ctest --test-dir redhat-linux-build ...
    No tests were found!!!

Upstream's CMakeLists.txt builds dr_libs_test and the dr_wav_compilation
library, but it never calls add_test()/enable_testing(), and master
doesn't either. So %check only proves that dr_wav.h compiles with
-Wall -Wextra -Wpedantic. The ogg/flac/sndfile/mpg123 BuildRequires
only serve to link a test program that never runs. That also loses
most of the benefit of keeping the base package arched, which the
header-only guidelines ask for so that tests run on all arches.

dr_libs_test compares dr_wav's decoding and seeking against libsndfile,
so it can be run on generated files. I did a full mock rebuild of your
spec with the following added, and it passed (12 files, decoding and
seeking):

    %if %{with ctest}
    ...
    BuildRequires:  sox
    %endif

    %check -a
    mkdir vec
    gen() { sox -n -r 44100 -c 2 "$@" synth 1 sine 440; }
    gen -b 16 vec/s16.wav
    gen -b 8 -e unsigned-integer vec/u8.wav
    gen -b 24 vec/s24.wav
    gen -b 32 vec/s32.wav
    gen -b 32 -e floating-point vec/f32.wav
    gen -b 64 -e floating-point vec/f64.wav
    gen -e u-law vec/ulaw.wav
    gen -e a-law vec/alaw.wav
    gen -e ima-adpcm vec/ima.wav
    gen -e ms-adpcm vec/msadpcm.wav
    gen -b 16 vec/s16.w64
    gen -b 16 vec/s16.aiff
    %{_vpath_builddir}/dr_libs_test vec/*

As a negative control, I fed it a file of random bytes. It reported
"WAV correctness test failed" and exited 1, so it really checks
something. Since master's CMakeLists.txt has no add_test() either,
dr_flac, dr_mp3 and dr_libs are presumably in the same situation.

2. Question: which branches are you planning?
=============================================

On f43/f44/f45, dr_libs-devel has an exact dependency (from mdapi):
    f45: dr_wav-devel = 0:0.14.6^20261030.35b5c39-3.fc45
    f44: dr_wav-devel = 0:0.14.6^20261030.35b5c39-3.fc44
    f43: dr_wav-devel = 0:0.14.6^20261030.35b5c39-2.fc43
A 1:0.14.6 dr_wav-devel on those branches would break that dependency
unless dr_libs is updated together with it. Rawhide is fine because the
metapackage is gone there. I assume dr_libs will drop its dr_wav-devel
subpackage in rawhide together with this import.

Suggestions (non-blocking)
==========================

- Version sanity check: your dr_libs spec greps each header for its
  version in %check -p. The same would be cheap here. dr_wav.h has
  "v0.14.6" on line 3 and DRWAV_VERSION_MAJOR/MINOR/REVISION.
- %description is just the summary ("WAV audio loader and writer.").
  It might be worth a sentence more, e.g. that it's a single-file
  header-only library that reads WAV, RIFX, W64, RF64 and AIFF, and
  writes WAV, W64 and RF64.

Verified / OK
=============

- Epoch is needed: rpmdev-vercmp gives
      0:0.14.6-1.fc46 < 0:0.14.6^20261030.35b5c39-2.fc46
      1:0.14.6-1.fc46 > 0:0.14.6^20261030.35b5c39-2.fc46
  (rawhide currently has ...-3.fc46). The -static Provide carries the
  epoch: dr_wav-static = 1:0.14.6-1.fc46.
- Header-only guidelines: the header is in -devel, it Provides
  dr_wav-static, the base package is arched and -devel is noarch, and
  debug_package is %{nil}.
- License "Unlicense OR MIT-0" matches LICENSE and the notice at the end
  of dr_wav.h. external/fs/ has the same license and is used only by
  tests/dr_libs_test.c, as the spec comment says.
- Functional test: in the mock root I built tests/dr_libs_test.c against
  the *installed* /usr/include/dr_wav.h, which is identical to the
  tarball's. I ran it on 13 ffmpeg-generated files: PCM u8/s16/s24/s32,
  float32/64, u-law, a-law, IMA and MS ADPCM, W64, RF64 and AIFF.
  Decoding and seeking matched libsndfile for all of them.
- Source0 matches upstream (SHA256 8497d581...586fc5), and wav-0.14.6 is
  the latest wav-* tag.
- Timestamps are preserved (install --preserve-timestamps).
- rpmlint: 0 errors, 0 warnings (built and installed).

Comment 2 Ben Beasley 2026-11-17 07:01:57 UTC
> 1. %check runs, but no tests are executed

This is a good observation. Thanks. Indeed, %{_vpath_builddir}/dr_libs_test needs to be executed manually, and your suggested test vectors seem sane, so I’ve adopted them. In fact, they helped me discover a bug on s390x, https://github.com/mackron/dr_libs/issues/362.

> Question: which branches are you planning?

Rawhide/F46+ only, because of the dr_libs-devel metapackage. It’s possible to make this work in stable branches by no longer specifying versions and releases in the dr_libs-devel metapackage, making its dependencies satisfiable by the new standalone packages, but it would be more straightforward and consistent to make a clean break at Rawhide/F46.

> I assume dr_libs will drop its dr_wav-devel subpackage in rawhide together with this import.

Correct, and once all three libraries are packaged separately, dr_libs will be retired. If all three libraries pass review around the same time then I can import them all at once and retire dr_libs immediately.

> - Version sanity check: your dr_libs spec greps each header for its
>   version in %check -p. The same would be cheap here. dr_wav.h has
>   "v0.14.6" on line 3 and DRWAV_VERSION_MAJOR/MINOR/REVISION.

This is possible, but it misses the reason for the check in dr_libs: that package is versioned like 0^20261030.35b5c39, and the individual library subpackage versions come from macros in the spec file that need to be kept synchronized with the versions declared in the headers themselves. This is easy to forget, and the grep check protects us from mismatches. With the standalone dr_wav package, the version number is used to produce the source URL corresponding to the git tag for that version, so that kind of version mismatch isn’t possible unless upstream has really botched the release.

> - %description is just the summary ("WAV audio loader and writer.").
>   It might be worth a sentence more, e.g. that it's a single-file
>   header-only library that reads WAV, RIFX, W64, RF64 and AIFF, and
>   writes WAV, W64 and RF64.

I agree that this suggestion could lead to a higher-quality description, but I don’t really want to be in the business of maintaining a more detailed description than upstream and trying to keep it current over time. I would prefer to just keep reproducing upstream’s description, which they’ve chosen to keep very concise.

New Spec URL: https://music.fedorapeople.org/20261116/dr_wav.spec
New SRPM URL: https://music.fedorapeople.org/20261116/dr_wav-0.14.6-1.fc45.src.rpm

Comment 3 Nikita Sizikov 2026-11-17 18:46:42 UTC
Thanks, glad the generated files were useful, and nice catch on s390x
(https://github.com/mackron/dr_libs/issues/362).

Your reasoning on the version check and the description makes sense;
agreed on both.

I rebuilt the updated SRPM in mock (rawhide, x86_64): the new %check
generates the 12 files in the audiovectors layout, and dr_libs_test
passes both decoding and seeking. rpmlint is clean. Nothing further
from my side.

Comment 4 Ben Beasley 2026-11-20 06:40:49 UTC
Backported a fix for the s390x issue:

New Spec URL: https://music.fedorapeople.org/20261120/dr_wav.spec
New SRPM URL: https://music.fedorapeople.org/20261120/dr_wav-0.14.6-1.fc45.src.rpm

Comment 5 Dominik 'Rathann' Mierzejewski 2026-11-22 14:04:12 UTC
Package APPROVED.

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]: Header files in -devel subpackage, if present.
[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", "MIT No Attribution and/or The
     Unlicense". 20 files have unknown license. Detailed output of
     licensecheck in /home/rathann/2571927-dr_wav/licensecheck.txt
[-]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[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 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: 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]: 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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 1214 bytes in 1 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]: Package functions as described.
[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.
[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: No rpmlint messages.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: dr_wav-devel-0.14.6-1.fc46.noarch.rpm
          dr_wav-0.14.6-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/tmpa37aco0c')]
checks: 32, packages: 2

 2 packages and 0 specfiles checked; 0 errors, 0 warnings, 7 filtered, 0 badness; has taken 0.2 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: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 3 filtered, 0 badness; has taken 0.0 s 



Source checksums
----------------
https://github.com/mackron/dr_libs/archive/wav-0.14.6/dr_libs-wav-0.14.6.tar.gz :
  CHECKSUM(SHA256) this package     : 8497d58110bb0e4cac07a012ead1602b5e0deef37506ace34f5d7e6523586fc5
  CHECKSUM(SHA256) upstream package : 8497d58110bb0e4cac07a012ead1602b5e0deef37506ace34f5d7e6523586fc5


Requires
--------
dr_wav-devel (rpmlib, GLIBC filtered):



Provides
--------
dr_wav-devel:
    dr_wav-devel
    dr_wav-static



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

Comment 6 Ben Beasley 2026-11-23 11:51:04 UTC
Thank you both for the reviews!

https://release-monitoring.org/project/393467/

Comment 7 Fedora Admin user for bugzilla script actions 2026-11-23 11:56:39 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/dr_wav
Monitoring:
Anitya project is accessible by this link 
`https://release-monitoring.org/project/393467`
 you can modify it manually.