nitpick, use %{buildroot}

This commit is contained in:
David Tardon 2016-02-13 13:15:42 +01:00
parent 6db10f4c86
commit c0f9286546

View File

@ -47,12 +47,12 @@ sed -i \
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' make install DESTDIR=%{buildroot} INSTALL='install -p'
rm $RPM_BUILD_ROOT%{_libdir}/*.la rm %{buildroot}%{_libdir}/*.la
# remove double of doc # remove double of doc
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/cppunit $RPM_BUILD_ROOT%{_datadir}/%{name}/html rm -rf %{buildroot}%{_datadir}/doc/cppunit %{buildroot}%{_datadir}/%{name}/html
# remove unused cppunit-config # remove unused cppunit-config
rm -f $RPM_BUILD_ROOT%{_bindir}/cppunit-config $RPM_BUILD_ROOT%{_mandir}/man1/cppunit-config.1* $RPM_BUILD_ROOT%{_datadir}/aclocal/cppunit.m4 rm -f %{buildroot}%{_bindir}/cppunit-config %{buildroot}%{_mandir}/man1/cppunit-config.1* %{buildroot}%{_datadir}/aclocal/cppunit.m4
# clean up examples # clean up examples
rm -rf __dist-examples __dist-examples-dir rm -rf __dist-examples __dist-examples-dir