move chmod to %prep

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-24 07:29:51 +01:00
parent aa634eccad
commit 294ae933db

View File

@ -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}