diff --git a/cppunit.spec b/cppunit.spec index 3515621..a3b55bd 100644 --- a/cppunit.spec +++ b/cppunit.spec @@ -47,12 +47,12 @@ sed -i \ make %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' -rm $RPM_BUILD_ROOT%{_libdir}/*.la +make install DESTDIR=%{buildroot} INSTALL='install -p' +rm %{buildroot}%{_libdir}/*.la # 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 -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 rm -rf __dist-examples __dist-examples-dir