SHA256
1
0
forked from pool/asar

Accepting request 1033605 from devel:languages:nodejs

OBS-URL: https://build.opensuse.org/request/show/1033605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/asar?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2022-11-05 13:46:52 +00:00 committed by Git OBS Bridge
commit c5605e5235
4 changed files with 26 additions and 11 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Nov 4 18:10:42 UTC 2022 - Bruno Pitrus <brunopitrus@hotmail.com>
- 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 <brunopitrus@hotmail.com>
- New upstream version 3.2.0

View File

@ -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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6ded9cd706ec33b9fde8556d20eee0a273a3abf5f2588427ba90ad565706965
size 130796

3
v3.2.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:992583e43c5946ec246752a18df6889da76bfac30f6a3de4dc3d02b2fbf7d3a7
size 130893