Bug 1823151 - Review Request: thinkpad-tools - Tools to manage ThinkPad properties
Summary: Review Request: thinkpad-tools - Tools to manage ThinkPad properties
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-NEEDSPONSOR
TreeView+ depends on / blocked
 
Reported: 2020-04-12 00:58 UTC by Dev Singh
Modified: 2021-07-19 02:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-17 13:01:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dev Singh 2020-04-12 00:58:12 UTC
Spec URL: https://raw.githubusercontent.com/devksingh4/thinkpad-tools/master/python3-thinkpad-tools.spec
SRPM URL: https://github.com/devksingh4/thinkpad-tools/releases/download/v0.11.0/python-thinkpad-tools-0.11.0-1.fc31.src.rpm
Description: This CLI tool allows users of Lenovo ThinkPads to edit properties such as TrackPoint speed, battery status, and undervolting.
Fedora Account System Username: dsingh

This is my first package and I need a sponsor. I am also the author of the upstream software. 

Here's the link to a koji build for the software: https://koji.fedoraproject.org/koji/taskinfo?taskID=43256182

Comment 1 Fabian Affolter 2020-04-13 07:54:04 UTC
Just some comments to get started...

- URL field is empty -> https://github.com/devksingh4/thinkpad-tools
- Source0 could be %{pypi_source}
- The descriptions should end with a period.
- LICENSE file must be added to the %files section (%license LICENSE)
- /etc/thinkpad-tools-persistence.sh looks misplaced, only configuration files should go under /etc 
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_configuration_files
- Systemd unit files: https://docs.fedoraproject.org/en-US/packaging-guidelines/Systemd/#_packaging
- Changelog is missing

Also, https://github.com/devksingh4/thinkpad-tools/issues/14 should be addressed.

Comment 2 Dev Singh 2020-04-13 14:16:59 UTC
Hello Fabian, 
Thank you for your comments. I have addressed all of them, however, I believe that the persistence bash script is in the correct place. While it is a bash script, it's really a config file for the user to specify what settings should be applied on startup. Do you have another location in mind for this file?

Comment 3 Dev Singh 2020-04-13 15:30:44 UTC
I have also added the package to a COPR for Fedora/CentOS here: https://copr.fedorainfracloud.org/coprs/dsingh/thinkpad-tools/

Comment 4 Matthew Miller 2020-04-13 18:03:36 UTC
Mightn't it be better to use a proper config file syntax for the persistent settings rather than a bash script? That's really an upstream issue rather than something for package review, though. (Also, along the same lines: thinkpad-tools.service should maybe be `oneshot` rather than `simple`, since it's not a daemon.)  I'll file these upstream.

Comment 5 Fabian Affolter 2020-04-15 07:48:09 UTC
Removing "needinfo"...

Comment 6 Robert-André Mauchin 🐧 2020-06-21 16:14:04 UTC
 - Missing systemD scriptlets: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd

 - /usr/lib/systemd/system/thinkpad-tools.service → %{_unitdir}/thinkpad-tools.service

 - Separate your changelog entries by a new line

 - Since you provide a binary, consider instead naming your package "thinkpad-tools" with no Python3 subpackage

 - Up to upstream, but generally configuration files are named *.conf not *.ini.

Comment 7 Package Review 2021-06-22 00:45:26 UTC
This is an automatic check from review-stats script.

This review request ticket hasn't been updated for some time. We're sorry
it is taking so long. If you're still interested in packaging this software
into Fedora repositories, please respond to this comment clearing the
NEEDINFO flag.

You may want to update the specfile and the src.rpm to the latest version
available and to propose a review swap on Fedora devel mailing list to increase
chances to have your package reviewed. If this is your first package and you
need a sponsor, you may want to post some informal reviews. Read more at
https://fedoraproject.org/wiki/How_to_get_sponsored_into_the_packager_group.

Without any reply, this request will shortly be considered abandoned
and will be closed.
Thank you for your patience.


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