diff options
Diffstat (limited to 'scripts/prep-librewolf-rpm.sh')
-rwxr-xr-x | scripts/prep-librewolf-rpm.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/prep-librewolf-rpm.sh b/scripts/prep-librewolf-rpm.sh index f8ab7d4..8e9ef01 100755 --- a/scripts/prep-librewolf-rpm.sh +++ b/scripts/prep-librewolf-rpm.sh @@ -226,11 +226,11 @@ sed -r -i librewolf.spec \ sed -r -i librewolf.spec \ -e '/__sed.*_bindir}\/librewolf$/a%{__sed} -i %{buildroot}%{_bindir}/librewolf \\\' \ -e ' -e "${_seds}" \\\' \ - -e ' -e "/restorecon/{s/\.mozilla\/firefox/\.librewolf/}"' + -e ' -e "/restorecon/{s/\.mozilla\\/firefox/\.librewolf/;}"' # Fix the distribution.ini file sed -r -i librewolf.spec \ - -e '/__cp.*\/distribution$/{ainstall -Dvm644 /dev/stdin %{buildroot}%{mozappdir}/distribution <<END\' \ + -e '/__cp.*\/distribution$/{acat > distribution.ini <<END\' \ -e '[Global]\' \ -e 'id=io.gitlab.librewolf-community\' \ -e 'version=1.0\' \ @@ -240,7 +240,9 @@ sed -r -i librewolf.spec \ -e 'app.distributor="LibreWolf Community"\' \ -e 'app.distributor.channel=librewolf\' \ -e 'app.partner.librewolf=librewolf\' \ - -e 'END' -e ';}' + -e 'END\' \ + -e 'install -Dvm644 distribution.ini %{buildroot}%{mozappdir}/distribution' \ + -e ';}' # Build the src.rpm asset, which is not strictly required for the git repo which COPR can ingest. if test -z "${SKIP_SRC_RPM}" ; then |