--- rpms/ddclient/contribs10/ddclient.spec 2022/11/07 11:26:27 1.3 +++ rpms/ddclient/contribs10/ddclient.spec 2022/11/07 17:50:29 1.4 @@ -23,12 +23,14 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -#Requires: perl(Data::Validate::IP) +Requires: perl(Data::Validate::IP) Requires: perl(Digest::SHA1) Requires: perl(IO::Socket::INET6) Requires: perl(IO::Socket::SSL) Requires: perl(JSON::PP) +AutoReq: no + # Old NetworkManager expects the dispatcher scripts in a different place Conflicts: NetworkManager < 1.20 @@ -43,11 +45,11 @@ the failed updates and sending update st %setup -q # Move pid file location for running as non-root. sed -e 's|/var/run/ddclient.pid|%{rundir}/%{name}.pid|' \ - -i sample-etc_ddclient.conf + -i ddclient.conf.in # Send less mail by default, eg. not on every shutdown. -sed -e 's|^mail=|#mail=|' -i sample-etc_ddclient.conf +sed -e 's|^mail=|#mail=|' -i ddclient.conf.in # Backwards compatibility from pre-3.6.6-1 -sed -e 's|/etc/ddclient/|%{_sysconfdir}/|' -i %{name} +sed -e 's|/etc/ddclient/|%{_sysconfdir}/|' -i %{name}.in %build @@ -55,8 +57,8 @@ sed -e 's|/etc/ddclient/|%{_sysconfdir}/ %install -install -D -p -m 755 %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} -install -D -p -m 600 sample-etc_ddclient.conf \ +install -D -p -m 755 %{name}.in $RPM_BUILD_ROOT%{_sbindir}/%{name} +install -D -p -m 600 ddclient.conf.in \ $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf install -D -p -m 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/%{name} @@ -99,7 +101,7 @@ fi %files %license COPYING COPYRIGHT -%doc README* RELEASENOTE ChangeLog Changelog.old sample-etc_ppp_ip-up.local +%doc README* ChangeLog.md sample-etc_ppp_ip-up.local %doc sample-etc_dhclient-exit-hooks sample-etc_cron.d_ddclient %doc sample-ddclient-wrapper.sh sample-etc_dhcpc_dhcpcd-eth0.exe