make the spec file easier to read and increase find statement flexibility
Jason Barnett committed
Jul 27, 2016 at 20:24 UTC
fbdc81acde604ffc455b541e1333c7bb13e24b8d
1 file changed
+3
-4
netdata.spec.in
+3
-4
@@ -69,12 +69,11 @@ happened, on your systems and applications.
69
70
%install
71
rm -rf $RPM_BUILD_ROOT
72
-%{__make} %{?_smp_mflags} install \
73
- DESTDIR=$RPM_BUILD_ROOT
72
+%{__make} %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
73
75
-install -m 644 -p system/netdata.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
74
+find $RPM_BUILD_ROOT -name .keep -print0 | xargs --null --no-run-if-empty rm
75
77
-find $RPM_BUILD_ROOT -name .keep | xargs -r rm
76
+install -m 644 -p system/netdata.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
77
78
%if %{with systemd}
79
install -d $RPM_BUILD_ROOT%{_unitdir}