OSDN Git Service

Do make install for rpmbuild
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 17 Jan 2019 04:14:24 +0000 (13:14 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 17 Jan 2019 04:14:24 +0000 (13:14 +0900)
Use make install to build in prmbuild directory instaed of using
install command to individual file to reduce maintenance labor.

SPECS/pg_hint_plan10.spec

index 5586121..1729c6f 100644 (file)
@@ -54,13 +54,7 @@ make USE_PGXS=1 %{?_smp_mflags}
 ## Set variables for install
 %install
 rm -rf %{buildroot}
-install -d %{buildroot}%{_libdir}
-install pg_hint_plan.so %{buildroot}%{_libdir}/pg_hint_plan.so
-install -d %{buildroot}%{_datadir}/extension
-install -m 644 pg_hint_plan--1.3.2.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.2.sql
-install -m 644 pg_hint_plan--1.3.0--1.3.1.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.0--1.3.1.sql
-install -m 644 pg_hint_plan--1.3.1--1.3.2.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.1--1.3.2.sql
-install -m 644 pg_hint_plan.control %{buildroot}%{_datadir}/extension/pg_hint_plan.control
+make install DESTDIR=%{buildroot}
 
 %clean
 rm -rf %{buildroot}