From ee9b54e2b402e14ebc22cf0cc5d0d84aad199945 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 06:52:51 +0100 Subject: [PATCH] use %make_build/%make_install Signed-off-by: Igor Gnatenko --- libxml2.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libxml2.spec b/libxml2.spec index 8d8a9ab..1d94460 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -99,18 +99,18 @@ sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py %build %configure -make %{_smp_mflags} +%make_build find doc -type f -exec chmod 0644 \{\} \; %install rm -fr %{buildroot} -make install DESTDIR=%{buildroot} +%make_install make clean %configure --with-python=%{__python3} -make install DESTDIR=%{buildroot} +%make_install # multiarch crazyness on timestamp differences or Makefile/binaries for examples touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config