diff --git a/linuxptp.spec b/linuxptp.spec index 40a2926..3acf3fa 100644 --- a/linuxptp.spec +++ b/linuxptp.spec @@ -31,9 +31,6 @@ Supporting legacy APIs and other platforms is not a goal. %prep %setup -q -n %{name} -# Comment everything out. -sed 's/^[[:alnum:]]/#\0/' < default.cfg > ptp4l.conf - %build make %{?_smp_mflags} \ INC="" \ @@ -43,8 +40,8 @@ make %{?_smp_mflags} \ %install %makeinstall mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir}} -install -m 644 -p ptp4l.conf $RPM_BUILD_ROOT%{_sysconfdir} -install -m 644 -p -t $RPM_BUILD_ROOT%{_unitdir} %{SOURCE1} %{SOURCE2} +install -m 644 -p default.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ptp4l.conf +install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir} echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \ $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l