From 7a0fe9bfb27ab3099c3a51b6f8c369e3540775e3 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 2 May 2018 00:41:16 -0500 Subject: [PATCH] Fixup psl-make-dafsa shebang during %prep --- libpsl.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libpsl.spec b/libpsl.spec index 0427e67..6ad46fd 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -14,6 +14,7 @@ BuildRequires: libidn2-devel BuildRequires: libunistring-devel BuildRequires: libxslt BuildRequires: publicsuffix-list +BuildRequires: python3-devel Requires: publicsuffix-list-dafsa %description @@ -68,6 +69,7 @@ from a plain text Public Suffix List. %prep %setup -q rm -frv list +sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa %build # Tarballs from github have 2 versions, one is raw files from repo, and @@ -103,7 +105,6 @@ rm -frv list # the script is noinst but the manpage is installed install -m0755 src/psl-make-dafsa %{buildroot}%{_bindir}/ -sed -i -e "1s|#!.*|#!/usr/bin/python3|" %{buildroot}%{_bindir}/psl-make-dafsa find %{buildroot} -name '*.la' -delete -print