diff options
Diffstat (limited to 'scripts/prep-librewolf-rpm.sh')
-rwxr-xr-x | scripts/prep-librewolf-rpm.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/prep-librewolf-rpm.sh b/scripts/prep-librewolf-rpm.sh index 1d6ddb2..7462109 100755 --- a/scripts/prep-librewolf-rpm.sh +++ b/scripts/prep-librewolf-rpm.sh @@ -178,10 +178,11 @@ sed -i -r librewolf.spec \ -e '- Fork to librewolf release.\' -e '' # upstream fedora firefox src.rpm lists some sources which are only used inside if-endif blocks -# Also, fix %files list +# Also, fix %files list, and make langpacks disabled by default sed -i -r librewolf.spec \ -e '/^Source[0-9]+:.*mochitest-python\.tar/{i%if 0' -e 'a%endif' -e '}' \ - -e '/^%files -f/,/^%change/{' -e '/_bindir|mozappdir|\/icons/{/browser/!{s/firefox/librewolf/g;}}}' + -e '/^%files -f/,/^%change/{' -e '/_bindir|mozappdir|\/icons/{/browser/!{s/firefox/librewolf/g;}}}' \ + -e '/%bcond_with(out)? langpacks/s/_without/_with/;' if test -z "${SKIP_SRC_RPM}" ; then if test -f "firefox-${firefox_version}.source.tar.xz" || test -z "${SKIP_SPECTOOL}" ; then @@ -191,8 +192,8 @@ if test -z "${SKIP_SRC_RPM}" ; then # Unfortunately the version available may not be identical to what is in src.fedoraproject.org cd "${work_dir}" ; dnf download --source firefox this_srcrpm="$( find . -iname 'firefox-*.src.rpm' -printf '%f\n' | sort | tail -n1 )" - # find the tarballs closest to these expressions: firefox-langpacks cbindgen-vendor - cd "${src_rpm_dir}" ; rpm2cpio "${work_dir}/${this_srcrpm}" | cpio -idm $( spectool -l --sources "${src_rpm_dir}/librewolf.spec" | awk '$NF ~/z$/ && $NF ~ /cbindgen|langpacks/{print $NF}' ) + # find the tarballs closest to these expressions: cbindgen-vendor + cd "${src_rpm_dir}" ; rpm2cpio "${work_dir}/${this_srcrpm}" | cpio -idm $( spectool -l --sources "${src_rpm_dir}/librewolf.spec" | awk '$NF ~/z$/ && $NF ~ /cbindgen/{print $NF}' ) # I only know how to get rpmbuild to pull sources from ~/rpmbuild/SOURCES mkdir -p ~/rpmbuild/SOURCES cd "${src_rpm_dir}" ; cp -pf * ~/rpmbuild/SOURCES ; |