Hello folks!
I'd like to package the autorandr https://github.com/phillipberndt/autorandr project for Fedora. This would be my first python package so I'd like to ask some questions.
Firstly the project already contains a spec https://github.com/phillipberndt/autorandr/blob/master/contrib/packaging/rpm/autorandr.spec file. However I'm not sure whether it could be used without any modifications. For example the %install section doesn't contain %pyproject_install but rather uses make and install commands. But maybe it's the correct approach since the package should contain not just python files and executables but also systemd unit and udev rule.
I'd like to ask for guidance on how to approach this, especially whether the original spec file is usable or if I should create a new one according to Python Packaging Guidelines https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/.
Thanks in advance and kind regards.
On Fri, 22 Oct 2021, Peter Kotvan wrote:
Hello folks!
I'd like to package the autorandr project for Fedora. This would be my first python package so I'd like to ask some questions.
Firstly the project already contains a spec file. However I'm not sure whether it could be used without any modifications. For example the %install section doesn't contain %pyproject_install but rather uses make and install commands. But maybe it's the correct approach since the package should contain not just python files and executables but also systemd unit and udev rule.
I'd like to ask for guidance on how to approach this, especially whether the original spec file is usable or if I should create a new one according to Python Packaging Guidelines.
Hi Peter!
I took a quick look at the upstream .spec and it seems that it has a fair amount of cruft that is no longer allowed in Fedora packaging (e.g., BuildRoot, Group, etc.) and as such probably doesn't meet current packaging guidelines. I would just create a new one, or you could take the existing one and update it to current standards - which is likely to result in a smaller/simpler spec.
Scott
On Fri, 22 Oct 2021, Peter Kotvan wrote:
Hi Peter!
I took a quick look at the upstream .spec and it seems that it has a fair amount of cruft that is no longer allowed in Fedora packaging (e.g., BuildRoot, Group, etc.) and as such probably doesn't meet current packaging guidelines. I would just create a new one, or you could take the existing one and update it to current standards - which is likely to result in a smaller/simpler spec.
Scott
Hi Scott!
Thanks for the suggestion! I've done some work on the spec file and filed a package review bug https://bugzilla.redhat.com/show_bug.cgi?id=2016767
We'll see how the review will go.
P.
python-devel@lists.fedoraproject.org