Greetings,
Still on my first OBS spec, having all sorts of newbie difficulties. Like these rpmlint warnings:
lirc-core.x86_64: W: systemd-service-without-service_del_preun lircmd.service
lirc-core.x86_64: W: systemd-service-without-service_del_preun lircd.socket
lirc-core.x86_64: W: systemd-service-without-service_del_preun lircd.service
The package contains a systemd service but doesn't contain a %preun with
call to service_del_preun.
lirc-core.x86_64: W: systemd-service-without-service_del_postun lircmd.service
lirc-core.x86_64: W: systemd-service-without-service_del_postun lircd.socket
lirc-core.x86_64: W: systemd-service-without-service_del_postun lircd.service
The package contains a systemd service but doesn't contain a %postun with acall to service_del_postun.
while having this in the spec:
%pre
%service_add_pre lircd.service lircd.socket lircmd.service
getent group lirc >/dev/null || groupadd -r lirc
getent passwd lirc >/dev/null || \
useradd -r -g lirc -d /var/log/lirc -s /sbin/nologin \
-c "LIRC daemon user, runs lircd." lirc
%post
%service_add_post lircd.service lircd.socket lircmd.service
%tmpfiles_create %{_tmpfilesdir}/lirc.conf
%preun
%service_del_preun lircd.service lircd.socket lircmd.service
%postun
%service_del_postun lircd.service lircd.socket lircmd.service
complete spec: http://ur1.ca/ngl19.
Are the rpmlint warnings bogus, or have I done something stupid? Based on experiance, it’s probably the last case. But I just cannot see any problem with these macros. I have checked that they are defined; and they are. Puzzled…
Any hint?