Bug 2420917 - Review Request: pywhispercpp - Python bindings for whisper.cpp with a simple Pythonic API
Summary: Review Request: pywhispercpp - Python bindings for whisper.cpp with a simple ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/absadiki/pywhispercpp
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-10 07:18 UTC by Manish Tiwari
Modified: 2025-12-28 01:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-28 01:06:57 UTC
Type: ---
Embargoed:
panemade: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 9894152 to 9918264 (3.95 KB, patch)
2025-12-17 09:16 UTC, Fedora Review Service
no flags Details | Diff

Description Manish Tiwari 2025-12-10 07:18:43 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/matiwari/python-pywhispercpp/fedora-rawhide-x86_64/09894153-pywhispercpp/pywhispercpp.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/matiwari/python-pywhispercpp/fedora-rawhide-x86_64/09894153-pywhispercpp/pywhispercpp-1.3.3-1.fc44.src.rpm

Description: pywhispercpp provides Python bindings for whisper.cpp with a simple
Pythonic API on top of it.

Fedora Account System Username: matiwari

Comment 1 Fedora Review Service 2025-12-10 08:17:25 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9894152
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2420917-pywhispercpp/fedora-rawhide-x86_64/09894152-pywhispercpp/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.

Comment 2 Parag AN(पराग) 2025-12-16 02:21:23 UTC
Few suggestions:
1) Instead of patchelf use chrpath (https://docs.fedoraproject.org/en-US/packaging-guidelines/#_removing_rpath)

2) somehow libraries are not getting installed as links
libwhisper.so.1 file should be link to libwhisper.so.1.7.4 file
libwhisper.so file should be link to libwhisper.so.1 file

3) Fix rpmlint issue of shebang 

You can fix all above in %install section as
------------

# Below files are not links to libwhisper shared library hence remove them
rm -rf %{buildroot}%{python3_sitearch}/libwhisper.so
rm -rf %{buildroot}%{python3_sitearch}/libwhisper.so.1

# Remove rpath from libraries
chrpath --delete %{buildroot}%{python3_sitearch}/_pywhispercpp*.so
chrpath --delete %{buildroot}%{python3_sitearch}/libggml*.so
chrpath --delete %{buildroot}%{python3_sitearch}/libwhisper.so.1.7.4

# Create shared library links
ln -sr %{buildroot}%{python3_sitearch}/libwhisper.so.1 %{buildroot}%{python3_sitearch}/libwhisper.so
ln -sr %{buildroot}%{python3_sitearch}/libwhisper.so.1.7.4 %{buildroot}%{python3_sitearch}/libwhisper.so.1

# Remove shebang
for file in %{buildroot}%{python3_sitearch}/pywhispercpp/{constants,model,utils}.py \
            %{buildroot}%{python3_sitearch}/pywhispercpp/examples/{assistant,livestream,main,recording}.py; do
  sed -i -e '/^#!\//, 1d' $file
done
------------

4) Try to see if you can enable tests as
%check
%pyproject_check_import
%pytest -vv

5) Also fix any other rpmlint issues

Submit new package for further review.

Comment 4 Fedora Review Service 2025-12-17 09:16:42 UTC
Created attachment 2119011 [details]
The .spec file difference from Copr build 9894152 to 9918264

Comment 5 Fedora Review Service 2025-12-17 09:16:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9918264
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2420917-pywhispercpp/fedora-rawhide-x86_64/09918264-pywhispercpp/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.

Comment 6 Manish Tiwari 2025-12-18 09:21:23 UTC
Removed %global _python_dist_allow_version_zero 0, export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} as these does not required
Enabled debuginfo by removing %global debug_package %{nil}


Spec URL: https://download.copr.fedorainfracloud.org/results/matiwari/python-pywhispercpp/fedora-rawhide-x86_64/09929807-pywhispercpp/pywhispercpp.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/matiwari/python-pywhispercpp/fedora-rawhide-x86_64/09929807-pywhispercpp/pywhispercpp-1.4.0-1.fc44.src.rpm

Comment 7 Parag AN(पराग) 2025-12-19 05:19:34 UTC
Package Review
==============

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

Noted that this package bundles whisper.cpp for its ease of building this package against it.

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

C/C++:
[x]: Package does not contain kernel modules.
[-]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[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", "MIT License", "*No copyright* MIT
     License", "GNU General Public License, Version 2", "MIT No Attribution
     and/or The Unlicense", "MIT License and/or The Unlicense", "*No
     copyright* GNU Free Documentation License", "Apache License 2.0",
     "Apache License 2.0 and/or MIT License". 1124 files have unknown
     license. Detailed output of licensecheck in
     /home/test/2420917-pywhispercpp/licensecheck.txt
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/python3.14/site-
     packages, /usr/lib64/python3.14
[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.
[-]: 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.
[x]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[-]: 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 12452 bytes in 1 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 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

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[x]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

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

Generic:
[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.
[x]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[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.
[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]: 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: python3-pywhispercpp-1.4.0-1.fc44.x86_64.rpm
          pywhispercpp-1.4.0-1.fc44.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/tmpi3dcf7io')]
checks: 32, packages: 2

python3-pywhispercpp.x86_64: W: python-leftover-require python3-qt5
python3-pywhispercpp.x86_64: W: no-manual-page-for-binary pwcpp
python3-pywhispercpp.x86_64: W: no-manual-page-for-binary pwcpp-gui
 2 packages and 0 specfiles checked; 0 errors, 3 warnings, 7 filtered, 0 badness; has taken 1.6 s 




Rpmlint (installed packages)
----------------------------
============================ 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
checks: 32, packages: 1

python3-pywhispercpp.x86_64: W: python-leftover-require python3-qt5
python3-pywhispercpp.x86_64: W: no-manual-page-for-binary pwcpp
python3-pywhispercpp.x86_64: W: no-manual-page-for-binary pwcpp-gui
 1 packages and 0 specfiles checked; 0 errors, 3 warnings, 3 filtered, 0 badness; has taken 0.5 s 



Unversioned so-files
--------------------
python3-pywhispercpp: /usr/lib64/python3.14/site-packages/_pywhispercpp.cpython-314-x86_64-linux-gnu.so
python3-pywhispercpp: /usr/lib64/python3.14/site-packages/libggml-base.so
python3-pywhispercpp: /usr/lib64/python3.14/site-packages/libggml-cpu.so
python3-pywhispercpp: /usr/lib64/python3.14/site-packages/libggml.so

Source checksums
----------------
https://files.pythonhosted.org/packages/source/p/pywhispercpp/pywhispercpp-1.4.0.tar.gz :
  CHECKSUM(SHA256) this package     : b8fdd3c6ee92e6d8890da54a070442a77b15caf5c7ffb5dd8f9c426751ea922f
  CHECKSUM(SHA256) upstream package : b8fdd3c6ee92e6d8890da54a070442a77b15caf5c7ffb5dd8f9c426751ea922f
https://github.com/ggml-org/whisper.cpp/archive/refs/tags/v1.8.2.tar.gz :
  CHECKSUM(SHA256) this package     : bcee25589bb8052d9e155369f6759a05729a2022d2a8085c1aa4345108523077
  CHECKSUM(SHA256) upstream package : bcee25589bb8052d9e155369f6759a05729a2022d2a8085c1aa4345108523077


Requires
--------
python3-pywhispercpp (rpmlib, GLIBC filtered):
    /usr/bin/python3
    glibc
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libggml-base.so()(64bit)
    libggml-cpu.so()(64bit)
    libggml.so()(64bit)
    libgomp.so.1()(64bit)
    libgomp.so.1(GOMP_1.0)(64bit)
    libgomp.so.1(GOMP_4.0)(64bit)
    libgomp.so.1(OMP_1.0)(64bit)
    libm.so.6()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.11)(64bit)
    libstdc++.so.6(CXXABI_1.3.13)(64bit)
    libstdc++.so.6(CXXABI_1.3.2)(64bit)
    libstdc++.so.6(CXXABI_1.3.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.8)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    libwhisper.so.1()(64bit)
    python(abi)
    python3-qt5
    python3.14dist(numpy)
    python3.14dist(platformdirs)
    python3.14dist(requests)
    python3.14dist(tqdm)
    rtld(GNU_HASH)



Provides
--------
python3-pywhispercpp:
    libggml-base.so()(64bit)
    libggml-cpu.so()(64bit)
    libggml.so()(64bit)
    libwhisper.so.1()(64bit)
    python-pywhispercpp
    python3-pywhispercpp
    python3-pywhispercpp(x86-64)
    python3.14-pywhispercpp
    python3.14dist(pywhispercpp)
    python3dist(pywhispercpp)
    pywhispercpp



Generated by fedora-review 0.11.0 (05c5b26) last change: 2025-11-29
Command line :/usr/bin/fedora-review -b 2420917 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: C/C++, Shell-api, Python, Generic
Disabled plugins: fonts, PHP, Perl, SugarActivity, Haskell, Ocaml, Java, R
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

APPROVED.

Comment 8 Fedora Admin user for bugzilla script actions 2025-12-19 07:38:29 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/pywhispercpp

Comment 9 Fedora Update System 2025-12-19 09:34:23 UTC
FEDORA-2025-90f971e37c (pywhispercpp-1.4.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-90f971e37c

Comment 10 Fedora Update System 2025-12-20 01:32:43 UTC
FEDORA-2025-90f971e37c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-90f971e37c \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-90f971e37c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-12-28 01:06:57 UTC
FEDORA-2025-90f971e37c (pywhispercpp-1.4.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.