From 294ae933dbd0319333aa9eb0b10879ce86dad8d2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 07:29:51 +0100 Subject: [PATCH] move chmod to %prep Signed-off-by: Igor Gnatenko --- libxml2.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libxml2.spec b/libxml2.spec index c0ebfbd..7b9ee4a 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -91,10 +91,7 @@ at parse time or later once the document has been modified. %prep %autosetup -p1 - -mkdir py3doc -cp doc/*.py py3doc -sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py +find doc -type f -executable -print -exec chmod 0644 {} ';' %build mkdir py2 py3 @@ -104,8 +101,6 @@ mkdir py2 py3 %make_build -C py2 %make_build -C py3 -find doc -type f -exec chmod 0644 \{\} \; - %install rm -fr %{buildroot}