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