On Fri, 22 Oct 2021, Peter Kotvan wrote:
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.
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.