only call install once doing both actions

This commit is contained in:
Paul Wouters 2017-03-22 12:39:38 -04:00
parent 3e1303eda9
commit 1d0203d0e6

View File

@ -208,8 +208,7 @@ pushd %{pkgname}_python2
%else
pushd %{pkgname}
%endif # with_python
%{__make} DESTDIR=%{buildroot} install
%{__make} DESTDIR=%{buildroot} unbound-event-install
%{__make} DESTDIR=%{buildroot} unbound-event-install install
install -m 0755 streamtcp %{buildroot}%{_sbindir}/unbound-streamtcp
%if 0%{with_python}
popd
@ -217,8 +216,7 @@ popd
%if 0%{with_python3}
pushd %{pkgname}_python3
%{__make} DESTDIR=%{buildroot} install
%{__make} DESTDIR=%{buildroot} unbound-event-install
%{__make} DESTDIR=%{buildroot} unbound-event-install install
install -m 0755 streamtcp %{buildroot}%{_sbindir}/unbound-streamtcp
popd
%endif # with_python3