Fixup psl-make-dafsa shebang during %prep
This commit is contained in:
parent
facdaf46c8
commit
7a0fe9bfb2
@ -14,6 +14,7 @@ BuildRequires: libidn2-devel
|
|||||||
BuildRequires: libunistring-devel
|
BuildRequires: libunistring-devel
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: publicsuffix-list
|
BuildRequires: publicsuffix-list
|
||||||
|
BuildRequires: python3-devel
|
||||||
Requires: publicsuffix-list-dafsa
|
Requires: publicsuffix-list-dafsa
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -68,6 +69,7 @@ from a plain text Public Suffix List.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
rm -frv list
|
rm -frv list
|
||||||
|
sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Tarballs from github have 2 versions, one is raw files from repo, and
|
# 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
|
# the script is noinst but the manpage is installed
|
||||||
install -m0755 src/psl-make-dafsa %{buildroot}%{_bindir}/
|
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
|
find %{buildroot} -name '*.la' -delete -print
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user