Use %make_build and %make_install

This commit is contained in:
Pavel Roskin 2016-12-26 23:50:42 -08:00
parent b3f77696e1
commit 85247383dc

View File

@ -46,11 +46,10 @@ echo '#!/bin/bash -l
%build %build
%configure --enable-fuse --enable-pixman %configure --enable-fuse --enable-pixman
%{__make} %{?_smp_mflags} %make_build
%install %install
%{__rm} -rf %{buildroot} %make_install
%{__make} install DESTDIR=%{buildroot}
#install sesman pam config /etc/pam.d/xrdp-sesman #install sesman pam config /etc/pam.d/xrdp-sesman
%{__install} -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/xrdp-sesman %{__install} -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/xrdp-sesman