diff --git a/brp-mangle-shebangs b/brp-mangle-shebangs index ef85ee4..ab7af60 100755 --- a/brp-mangle-shebangs +++ b/brp-mangle-shebangs @@ -76,7 +76,7 @@ cd "$RPM_BUILD_ROOT" # (Take care to exclude filenames which would mangle "file" output). find -executable -type f ! -path '*:*' ! -path $'*\n*' \ | file -N --mime-type -f - \ -| grep -P ".+(?=: text/)" \ +| grep -P ".+(?=: (text/|application/javascript))" \ | { fail=0 while IFS= read -r line; do diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 58eac1f..3c0c98e 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 205 +Version: 206 Release: 1%{?dist} # No version specified. License: GPL+ @@ -190,6 +190,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Tue Dec 07 2021 Miro HronĨok - 206-1 +- brp-mangle-shebangs: also mangle shebangs of JavaScript executables +- Fixes: rhbz#1998924 + * Thu Nov 18 2021 Michal Domonkos - 205-1 - Drop kernel-rpm-macros subpackage & kmod.attr (new home: kernel-srpm-macros)