Bug 2407352 - Review Request: headset-battery-indicator - System tray application for controlling USB headsets (HeadsetControl GUI)
Summary: Review Request: headset-battery-indicator - System tray application for contr...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/ruflas/headset-bat...
Whiteboard:
Depends On:
Blocks: FE-NEEDSPONSOR
TreeView+ depends on / blocked
 
Reported: 2025-10-30 10:42 UTC by Juan Jose Vazquez Prieto
Modified: 2026-08-01 13:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
The .spec file difference from Copr build 10424171 to 10776047 (2.67 KB, patch)
2026-07-27 03:08 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 10776271 to 10802463 (1.28 KB, patch)
2026-08-01 13:48 UTC, Fedora Review Service
no flags Details | Diff

Description Juan Jose Vazquez Prieto 2025-10-30 10:42:51 UTC
Headset Battery Indicator is a Python/Qt application that provides a clean system tray interface (GUI) for managing USB headset features, including battery level, ChatMix, Sidetone, and Auto-Off time. It acts as a graphical frontend for the already existing `headsetcontrol` binary.

SPEC URL:https://copr-dist-git.fedorainfracloud.org/packages/ruflas/headset-battery-indicator/headset-battery-indicator.git/plain/python-headset-battery-indicator.spec
SRPM URL:https://download.copr.fedorainfracloud.org/results/ruflas/headset-battery-indicator/fedora-43-x86_64/09747960-headset-battery-indicator/headset-battery-indicator-1.3.0-1.fc43.src.rpm

Dependencies:

Requires: headsetcontrol, python3-PySide6, xdg-utils
BuildRequires: python3-devel, pyproject-rpm-macros


As this is my initial attempt at uploading and creating a package for Fedora, I require a sponsor to review and approve the packaging.
Fedora Account System Username: ruflas

Comment 1 Fedora Review Service 2025-10-30 10:43:02 UTC
Cannot find any valid SRPM URL for this ticket. Common causes are:

- You didn't specify `SRPM URL: ...` in the ticket description
  or any of your comments
- The URL schema isn't HTTP or HTTPS
- The SRPM package linked in your URL doesn't match the package name specified
  in the ticket summary


---
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 3 Fedora Review Service 2025-10-30 14:44:32 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9749333
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2407352-headset-battery-indicator/fedora-rawhide-x86_64/09749333-headset-battery-indicator/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 4 Juan Jose Vazquez Prieto 2026-05-04 20:20:17 UTC
Updated package to v2.2.0 with the following fixes based on Fedora packaging guidelines:

Migrated to modern pyproject RPM macros (%pyproject_wheel, %pyproject_install, %generate_buildrequires)
Fixed Requires: python3-pyside6 (correct Fedora package name)
Added .desktop file to source repository with proper fields
Used desktop-file-install for .desktop validation
Successful Copr build on Fedora 42, 43, 44 and rawhide:
https://copr.fedorainfracloud.org/coprs/ruflas/headset-battery-indicator/build/10424162/

SPEC URL: https://raw.githubusercontent.com/ruflas/headset-battery-indicator/main/python-headset-battery-indicator.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/ruflas/headset-battery-indicator/srpm-builds/10424162/python-headset-battery-indicator-2.2.0-1.src.rpm

Comment 5 Fedora Review Service 2026-05-04 20:24:12 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10424171
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2407352-headset-battery-indicator/fedora-rawhide-x86_64/10424171-python-headset-battery-indicator/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 Juan Jose Vazquez Prieto 2026-05-11 18:03:55 UTC
Updated package to v2.2.0 with the following additional fixes:

Renamed spec from python-headset-battery-indicator.spec to headset-battery-indicator.spec — the python- prefix is reserved for Python libraries per Fedora guidelines, not applications
Changed Name: field accordingly to headset-battery-indicator
Added Obsoletes: python-headset-battery-indicator < 2.3.0 and Provides: python-headset-battery-indicator = %{version} for a clean upgrade path
Successful Copr build on Fedora 42, 43, 44 and rawhide:
https://copr.fedorainfracloud.org/coprs/ruflas/headset-battery-indicator/build/10445409/

SPEC URL: https://raw.githubusercontent.com/ruflas/headset-battery-indicator/main/headset-battery-indicator.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/ruflas/headset-battery-indicator/srpm-builds/10445409/headset-battery-indicator-2.2.0-1.src.rpm

Comment 7 Artur Frenszek-Iwicki 2026-07-24 15:32:25 UTC
> Provides:       python-headset-battery-indicator = %{version}
This should include the Release number, as well.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-replacing-existing-packages

> %post
> update-desktop-database &> /dev/null || :
> touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
> gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
> 
> %postun
> update-desktop-database &> /dev/null || :
> gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
These are not needed since at least Fedora 30.

Comment 8 Juan Jose Vazquez Prieto 2026-07-26 18:56:33 UTC
(In reply to Artur Frenszek-Iwicki from comment #7)
> > Provides:       python-headset-battery-indicator = %{version}
> This should include the Release number, as well.
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-
> replacing-existing-packages
> 
> > %post
> > update-desktop-database &> /dev/null || :
> > touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
> > gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
> > 
> > %postun
> > update-desktop-database &> /dev/null || :
> > gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
> These are not needed since at least Fedora 30.

Fixed both issues raised in the previous review:

1. `Provides` now includes the Release number:
   `Provides: python-headset-battery-indicator = %{version}-%{release}`

2. Removed the `%post` and `%postun` scriptlets (`update-desktop-database`,
   `gtk-update-icon-cache`) along with their associated `Requires(post)` and
   `Requires(postun)` entries — no longer needed since Fedora 30.

Successful Copr build on Fedora 42, 43, 44 and rawhide:
https://copr.fedorainfracloud.org/coprs/ruflas/headset-battery-indicator/build/10775090/

SPEC URL: https://raw.githubusercontent.com/ruflas/headset-battery-indicator/main/headset-battery-indicator.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/ruflas/headset-battery-indicator/srpm-builds/10775090/headset-battery-indicator-2.3.1-1.src.rpm

Comment 10 Fedora Review Service 2026-07-27 03:08:13 UTC
Created attachment 2152757 [details]
The .spec file difference from Copr build 10424171 to 10776047

Comment 11 Fedora Review Service 2026-07-27 03:08:15 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10776047
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2407352-headset-battery-indicator/fedora-rawhide-x86_64/10776047-headset-battery-indicator/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 12 Fedora Review Service 2026-07-27 04:55:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10776271
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2407352-headset-battery-indicator/fedora-rawhide-x86_64/10776271-headset-battery-indicator/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 13 Artur Frenszek-Iwicki 2026-07-31 15:14:37 UTC
> install -Dm0644 headset-battery-indicator.png \
>     %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/headset-battery-indicator.png
Add -p here to preserve the file timestamp.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps

> %files
> %{_datadir}/icons/hicolor/512x512/apps/headset-battery-indicator.png
This necessitates "Requires: hicolor-icon-theme".

Comment 14 Juan Jose Vazquez Prieto 2026-08-01 13:43:59 UTC
(In reply to Artur Frenszek-Iwicki from comment #13)
> > install -Dm0644 headset-battery-indicator.png \
> >     %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/headset-battery-indicator.png
> Add -p here to preserve the file timestamp.
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps
> 
> > %files
> > %{_datadir}/icons/hicolor/512x512/apps/headset-battery-indicator.png
> This necessitates "Requires: hicolor-icon-theme".

Fixed both issues from comment #13:

Added -p to install -Dpm0644 to preserve the file timestamp, per Fedora packaging guidelines.
Added Requires: hicolor-icon-theme since the package installs a file into the hicolor icon directory.
Bumped to 2.3.1-2.

SPEC URL: https://raw.githubusercontent.com/ruflas/headset-battery-indicator/main/headset-battery-indicator.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/ruflas/headset-battery-indicator/srpm-builds/10802458/headset-battery-indicator-2.3.1-2.src.rpm

Comment 15 Fedora Review Service 2026-08-01 13:48:06 UTC
Created attachment 2153214 [details]
The .spec file difference from Copr build 10776271 to 10802463

Comment 16 Fedora Review Service 2026-08-01 13:48:09 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10802463
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2407352-headset-battery-indicator/fedora-rawhide-x86_64/10802463-headset-battery-indicator/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.


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