From ecc25f9be3d776f5d1068919b09173557989abd644835ed06905ddc4f0eab686 Mon Sep 17 00:00:00 2001 From: Bruno Pitrus Date: Fri, 4 Nov 2022 18:20:37 +0000 Subject: [PATCH] Accepting request 1033604 from home:dziobian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New upstream version 3.2.2 * Fix allowing nested empty directories. - New upstream version 3.2.1 * Rename package to @electron/asar - Correct bogus “0.0.0-development” version reported by the program. OBS-URL: https://build.opensuse.org/request/show/1033604 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/asar?expand=0&rev=7 --- asar.changes | 8 ++++++++ asar.spec | 23 +++++++++++++++-------- v3.2.0.tar.gz | 3 --- v3.2.2.tar.gz | 3 +++ 4 files changed, 26 insertions(+), 11 deletions(-) delete mode 100644 v3.2.0.tar.gz create mode 100644 v3.2.2.tar.gz diff --git a/asar.changes b/asar.changes index ddf4af2..8e205a2 100644 --- a/asar.changes +++ b/asar.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 4 18:10:42 UTC 2022 - Bruno Pitrus +- New upstream version 3.2.2 + * Fix allowing nested empty directories. +- New upstream version 3.2.1 + * Rename package to @electron/asar +- Correct bogus “0.0.0-development” version reported by the program. + ------------------------------------------------------------------- Tue Aug 16 15:09:07 UTC 2022 - Bruno Pitrus - New upstream version 3.2.0 diff --git a/asar.spec b/asar.spec index e8e6ffb..5c92349 100644 --- a/asar.spec +++ b/asar.spec @@ -17,7 +17,7 @@ Name: asar -Version: 3.2.0 +Version: 3.2.2 Release: 0 Summary: Creating atom-shell (electron) app packages License: MIT and ISC @@ -31,6 +31,7 @@ Source2: prepare_vendor.sh BuildArch: noarch BuildRequires: fdupes +BuildRequires: jq BuildRequires: nodejs-packaging BuildRequires: npm @@ -46,16 +47,22 @@ having random access support. %autosetup -p1 -a 1 %build -npm rebuild --verbose +npm rebuild --verbose --foreground-scripts %install -mkdir -pv %{buildroot}%{nodejs_sitearch} +mkdir -pv %{buildroot}%{nodejs_sitelib}/@electron mkdir -pv %{buildroot}%{_bindir} -cp -lr . %{buildroot}%{nodejs_sitearch}/asar -ln -srv %{buildroot}%{nodejs_sitearch}/asar/bin/asar.js %{buildroot}%{_bindir}/asar +cp -lr . %{buildroot}%{nodejs_sitelib}/@electron/asar +ln -srv %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.js %{buildroot}%{_bindir}/asar +# symlink old package name +ln -srv %{buildroot}%{nodejs_sitelib}/{@electron/,}asar #fix shebang -sed -i '1s/env //' %{buildroot}%{nodejs_sitearch}/asar/bin/asar.js -cd %{buildroot}%{nodejs_sitearch}/asar +sed -i '1s/env //' %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.js +cd %{buildroot}%{nodejs_sitelib}/asar + +# Correct bogus version in package.json +jq -cj '.version="%{version}"' package.json > new +mv new package.json #Remove development garbage find -name example -print0 |xargs -r0 -- rm -rvf find -name test -print0 |xargs -r0 -- rm -rvf @@ -85,6 +92,6 @@ find -name '.releaserc*' -type f -print -delete %doc CHANGELOG.md README.md %license LICENSE.md /usr/bin/asar -%{nodejs_sitearch} +%{nodejs_sitelib} %changelog \ No newline at end of file diff --git a/v3.2.0.tar.gz b/v3.2.0.tar.gz deleted file mode 100644 index bb6784b..0000000 --- a/v3.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6ded9cd706ec33b9fde8556d20eee0a273a3abf5f2588427ba90ad565706965 -size 130796 diff --git a/v3.2.2.tar.gz b/v3.2.2.tar.gz new file mode 100644 index 0000000..a3ced44 --- /dev/null +++ b/v3.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:992583e43c5946ec246752a18df6889da76bfac30f6a3de4dc3d02b2fbf7d3a7 +size 130893