RPM: simplify make install rule
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Mar 2013 11:21:04 +0000 (12:21 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Mar 2013 11:21:04 +0000 (12:21 +0100)
pazpar2.spec

index e1c9d12..5f5fbd5 100644 (file)
@@ -71,8 +71,7 @@ make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -fr ${RPM_BUILD_ROOT}
-make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
-       libdir=${RPM_BUILD_ROOT}/%{_libdir} install
+make install DESTDIR=${RPM_BUILD_ROOT}
 mkdir -p ${RPM_BUILD_ROOT}/etc/pazpar2
 mkdir -p ${RPM_BUILD_ROOT}/etc/pazpar2/settings
 mkdir -p ${RPM_BUILD_ROOT}/etc/pazpar2/services-enabled