Fedora Account System
Red Hat Associate
Red Hat Customer
Spec URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker.spec SRPM URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker-0.1.2-1.fc44.src.rpm Description: Energy Tracker records CPU (RAPL) and NVIDIA GPU energy use in the background through a systemd user service, prices it at the user's tariff and shows per-session, daily and lifetime usage in a GUI. Sensors that cannot be read are shown as unavailable. Fedora Account System Username: laravelcompany This is my first package and I need a sponsor. I introduced myself on devel.org: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VMUPDZTSZS3ZI67I5TQGIUL5JHPH3Z44/ I am the upstream author (MIT). Upstream: https://github.com/izdrail/energy.izdrail.com COPR build (F43, F44, rawhide): https://copr.fedorainfracloud.org/coprs/laravelcompany/energy-tracker/ Notes: Go program built with go-vendor-tools (vendor archive, license expression and bundled(golang(...)) provides generated). The Fyne GUI needs cgo. A sysusers group and tmpfiles rule let that group read the RAPL energy counters (otherwise root-only), documented in the README. Status: fedora-review has not been run yet. So far only rpmbuild and rpmlint were run (0 errors). Reproducible: Always
Copr build: https://copr.fedorainfracloud.org/coprs/build/11416254 (succeeded) Review template: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2588044-energy-tracker/fedora-rawhide-x86_64/11416254-energy-tracker/fedora-review/review.txt Found issues: - Systemd user unit service file(s) in energy-tracker Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_user_units Please know that there can be false-positives. --- 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.
Updated the package to Release 2. Spec URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker.spec SRPM URL: https://github.com/izdrail/energy.izdrail.com/releases/download/v0.1.2/energy-tracker-0.1.2-2.fc44.src.rpm Changes in -2: - Added %systemd_user_post and %systemd_user_preun for the user unit energy-tracker.service. - Changelog entries added for -1 and -2. rpmlint on the SRPM and the built RPMs: 0 errors, 3 warnings (no manual page for the binary, Source1 is not a URL, empty %pre). I ran fedora-review locally in mock. It still lists the systemd user unit scriptlet check as an issue. I believe that is a false positive in the tool: it builds its regex from the full macro expansion including the trailing whitespace, and rpm strips that whitespace from the stored scriptlet, so it can't match the current macro. The built RPM does contain the scriptlets: %post runs systemd-update-helper install-user-units energy-tracker.service and %preun runs remove-user-units energy-tracker.service.
Created attachment 2164631 [details] The .spec file difference from Copr build 11416254 to 11418417
Copr build: https://copr.fedorainfracloud.org/coprs/build/11418417 (succeeded) Review template: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2588044-energy-tracker/fedora-rawhide-x86_64/11418417-energy-tracker/fedora-review/review.txt Found issues: - Systemd user unit service file(s) in energy-tracker Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_user_units Please know that there can be false-positives. --- 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.