In https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51 @pmatilai states that he would like the system location for spec templates moved in %{datadir}, and not directly in /etc like rpmdevtools is doing now
%{datadir}
/etc
rpmdevtools
Right, didn't realize rpmdevtools has uses it for such things, that seems equally non-optimal. Maybe /usr/share/rpmdevtools, and then update rpmdevtools to use that too where appropriate (there seems to be actual config material in /etc/rpmdevtools too)
Would that be problematic for rpmdevtools? Maybe only put in /etc templates the local admin has actually modified, like systemd does?
This is not a bad idea. I don't have the bandwidth right this moment to implement it, but I definitely would review a pull request to implement it if one was made.
Specific use-case for this that's currently broken is creating a new spec for a fonts package (on F32 though I'd expect it's been an issue for a release or two prior):
$ rpmdev-newspec foo-fonts Template "/etc/rpmdevtools/spectemplate-fonts-simple.spec" not found, exiting.
rpmdevtools doesn't include that template, so it isn't in /etc. However, fonts-rpm-templates provides something that seems appropriate, which is /usr/share/rpmdevtools/fedora/spectemplate-fonts-0-simple.spec. Ignoring the issue with the 0, it looks like at there is some package currently populating /usr/share with templates.
fonts-rpm-templates
/usr/share/rpmdevtools/fedora/spectemplate-fonts-0-simple.spec
0
/usr/share
Login to comment on this ticket.