Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package asar for openSUSE:Factory checked in at 2024-09-11 16:55:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/asar (Old) and /work/SRC/openSUSE:Factory/.asar.new.17570 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "asar" Wed Sep 11 16:55:45 2024 rev:10 rq:1200054 version:3.2.13 Changes: -------- --- /work/SRC/openSUSE:Factory/asar/asar.changes 2024-05-06 17:55:21.595689921 +0200 +++ /work/SRC/openSUSE:Factory/.asar.new.17570/asar.changes 2024-09-11 16:56:31.704877466 +0200 @@ -1,0 +2,14 @@ +Wed Sep 11 08:00:37 UTC 2024 - Bruno Pitrus <brunopit...@hotmail.com> + +- New upstream release 3.2.13 + * Export a `default` property (gh#electron/asar#325) + +------------------------------------------------------------------- +Tue Sep 10 20:20:43 UTC 2024 - Bruno Pitrus <brunopit...@hotmail.com> + +- New upstream release 3.2.11 + * complete rewrite of the program in Typescript + * ensure symlinks do not write unexpectedly (gh#electron/asar#322) +- Run test suite in %check + +------------------------------------------------------------------- Old: ---- v3.2.10.tar.gz New: ---- v3.2.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ asar.spec ++++++ --- /var/tmp/diff_new_pack.qieVOY/_old 2024-09-11 16:56:32.360904869 +0200 +++ /var/tmp/diff_new_pack.qieVOY/_new 2024-09-11 16:56:32.360904869 +0200 @@ -17,7 +17,7 @@ Name: asar -Version: 3.2.10 +Version: 3.2.13 Release: 0 Summary: Creating atom-shell (electron) app packages License: MIT and ISC @@ -38,6 +38,7 @@ %else BuildRequires: npm %endif +BuildRequires: typescript BuildRequires: zstd %global __requires_exclude ^npm(.*)$ @@ -50,9 +51,16 @@ %prep %autosetup -p1 -a 1 +# Use system typescript for building +rm -rf node_modules/typescript +rm -v node_modules/.bin/ts{c,server} %build +export ELECTRON_SKIP_BINARY_DOWNLOAD=1 npm rebuild --verbose --foreground-scripts +# tsc may return a non-zero exit code due to type warnings despite actually succesfully compiling the code. +# If it fails to compile, it will be catched anyway in #check. +tsc --removeComments --sourceMap false || true %install mkdir -pv %{buildroot}%{nodejs_sitelib}/@electron @@ -67,7 +75,15 @@ # Correct bogus version in package.json jq -cj '.version="%{version}"' package.json > new -mv new package.json + +#remove devdependencies +jq -cj 'del(.devDependencies)' package.json > tmp +mv -v tmp package.json +npm prune --omit=dev --verbose --ignore-scripts + +mv -v new package.json + + #Remove development garbage find -name example -print0 |xargs -r0 -- rm -rvf find -name test -print0 |xargs -r0 -- rm -rvf @@ -84,17 +100,27 @@ find -name '.git*' -type f -print -delete find -name yarn.lock -type f -print -delete find -name '.yarn*' -type f -print -delete +find -name '*package-lock.json' -type f -print -delete +find -name '.prettierrc*' -type f -print -delete find -name '.releaserc*' -type f -print -delete +find -name tsconfig.json -type f -print -delete +# Remove empty directories +find . -type d -empty -print -delete %fdupes %{buildroot} %check +pushd %{buildroot}%{nodejs_sitelib}/asar # https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_build_testing_in_check %{__nodejs} -e 'require("./")' +#check that the executable starts +./bin/asar.js -h +popd -#We can't run tests, we don't have mocha available. +#the actual test suite +npx mocha -- --reporter spec --timeout 10000 %files %defattr(-,root,root) ++++++ prepare_vendor.sh ++++++ --- /var/tmp/diff_new_pack.qieVOY/_old 2024-09-11 16:56:32.404906708 +0200 +++ /var/tmp/diff_new_pack.qieVOY/_new 2024-09-11 16:56:32.408906874 +0200 @@ -40,7 +40,7 @@ echo ">>>>>> Install npm modules" -yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --production --link-duplicates +yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --link-duplicates ret=$? if [ $ret -ne 0 ]; then echo "ERROR: yarn install failed" @@ -65,7 +65,8 @@ find . -type f| sponge |\ xargs -P"$(nproc)" -- sh -c 'file "$@" | grep -v '\'': .*script'\'' | grep '\'': .*executable'\'' | tee /dev/stderr | sed '\''s/: .*//'\'' | xargs rm -fv' - +echo ">>>>>> Remove empty directories" +find . -type d -empty -print -delete echo ">>>>>> Package vendor files" rm -f "${ASAR_PKGDIR}/vendor.tar.zst" ++++++ v3.2.10.tar.gz -> v3.2.13.tar.gz ++++++ ++++ 5871 lines of diff (skipped) ++++++ vendor.tar.zst ++++++ ++++ 1271631 lines of diff (skipped)