RPM: simplify make install rule
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Mar 2013 12:38:55 +0000 (13:38 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Mar 2013 12:38:55 +0000 (13:38 +0100)
idzebra.spec

index e99268e..72258bd 100644 (file)
@@ -63,8 +63,7 @@ make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -fr ${RPM_BUILD_ROOT}
-make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/%{_mandir} \
-        libdir=${RPM_BUILD_ROOT}/%{_libdir} install
+make install DESTDIR=${RPM_BUILD_ROOT}
 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
 rm ${RPM_BUILD_ROOT}/%{_bindir}/zebraidx
 rm ${RPM_BUILD_ROOT}/%{_mandir}/man1/zebraidx.*