use 'new' %make_build and %make_install macros
This commit is contained in:
parent
4d953fe693
commit
025ee05fb3
@ -108,7 +108,7 @@ sed -i "s/SUBDIRS += ipcheck/#SUBDIRS += ipchec/" testing/programs/Makefile
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} \
|
%make_build \
|
||||||
%if 0%{with_development}
|
%if 0%{with_development}
|
||||||
OPTIMIZE_CFLAGS="%{?_hardened_cflags}" \
|
OPTIMIZE_CFLAGS="%{?_hardened_cflags}" \
|
||||||
%else
|
%else
|
||||||
@ -125,10 +125,8 @@ FS=$(pwd)
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make \
|
%make_install \
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
%{libreswan_config} \
|
%{libreswan_config} \
|
||||||
install
|
|
||||||
FS=$(pwd)
|
FS=$(pwd)
|
||||||
rm -rf %{buildroot}/usr/share/doc/libreswan
|
rm -rf %{buildroot}/usr/share/doc/libreswan
|
||||||
rm -rf %{buildroot}%{_libexecdir}/ipsec/*check
|
rm -rf %{buildroot}%{_libexecdir}/ipsec/*check
|
||||||
|
Loading…
Reference in New Issue
Block a user