Use %autosetup

This commit is contained in:
Xavier Bachelot 2018-12-03 16:09:40 +01:00
parent 421ded8cc7
commit 62e36cd5da

View File

@ -197,12 +197,7 @@ library.
%endif %endif
%prep %prep
%setup -q -n %{name}-%{version} %autosetup -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
# Remove any python script shebang lines (unless they refer to python3) # Remove any python script shebang lines (unless they refer to python3)
sed -i -E -e '/^#![[:blank:]]*(\/usr\/bin\/env[[:blank:]]+python[^3]?\>)|(\/usr\/bin\/python[^3]?\>)/d' \ sed -i -E -e '/^#![[:blank:]]*(\/usr\/bin\/env[[:blank:]]+python[^3]?\>)|(\/usr\/bin\/python[^3]?\>)/d' \