From 8754e197063db2980a59fdd6d644d00fc8f5a9cd Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguchi Date: Thu, 17 Jan 2019 13:14:24 +0900 Subject: [PATCH] Do make install for rpmbuild Use make install to build in prmbuild directory instaed of using install command to individual file to reduce maintenance labor. --- SPECS/pg_hint_plan95.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/SPECS/pg_hint_plan95.spec b/SPECS/pg_hint_plan95.spec index e488266..e85c9d8 100644 --- a/SPECS/pg_hint_plan95.spec +++ b/SPECS/pg_hint_plan95.spec @@ -53,15 +53,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.1.7.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.7.sql -install -m 644 pg_hint_plan--1.1.6--1.1.7.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.6--1.1.7.sql -install -m 644 pg_hint_plan--1.1.5--1.1.6.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.5--1.1.6.sql -install -m 644 pg_hint_plan--1.1.4--1.1.5.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.4--1.1.5.sql -install -m 644 pg_hint_plan--1.1.3--1.1.4.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.3--1.1.4.sql -install -m 644 pg_hint_plan.control %{buildroot}%{_datadir}/extension/pg_hint_plan.control +make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} -- 2.11.0