Use make macros
Based on https://src.fedoraproject.org/rpms/openssh/pull-request/11 https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
This commit is contained in:
parent
dfeecfb1e8
commit
68460c09bb
@ -509,7 +509,7 @@ fi
|
|||||||
perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
|
perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make
|
%make_build
|
||||||
|
|
||||||
# Define a variable to toggle gnome1/gtk2 building. This is necessary
|
# Define a variable to toggle gnome1/gtk2 building. This is necessary
|
||||||
# because RPM doesn't handle nested %%if statements.
|
# because RPM doesn't handle nested %%if statements.
|
||||||
@ -540,7 +540,7 @@ LDFLAGS="$SAVE_LDFLAGS"
|
|||||||
--libexecdir=/%{_libdir}/security \
|
--libexecdir=/%{_libdir}/security \
|
||||||
--with-mantype=man \
|
--with-mantype=man \
|
||||||
--without-openssl-header-check `# The check is broken`
|
--without-openssl-header-check `# The check is broken`
|
||||||
make
|
%make_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -557,7 +557,7 @@ mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh/ssh_config.d
|
|||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh/sshd_config.d
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh/sshd_config.d
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ssh/ldap.conf
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ssh/ldap.conf
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
||||||
@ -598,7 +598,7 @@ perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
|
|||||||
|
|
||||||
%if %{pam_ssh_agent}
|
%if %{pam_ssh_agent}
|
||||||
pushd pam_ssh_agent_auth-%{pam_ssh_agent_ver}
|
pushd pam_ssh_agent_auth-%{pam_ssh_agent_ver}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
%pre
|
%pre
|
||||||
|
Loading…
Reference in New Issue
Block a user