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:
commit
c5605e5235
@ -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>
|
Tue Aug 16 15:09:07 UTC 2022 - Bruno Pitrus <brunopitrus@hotmail.com>
|
||||||
- New upstream version 3.2.0
|
- New upstream version 3.2.0
|
||||||
|
23
asar.spec
23
asar.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: asar
|
Name: asar
|
||||||
Version: 3.2.0
|
Version: 3.2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Creating atom-shell (electron) app packages
|
Summary: Creating atom-shell (electron) app packages
|
||||||
License: MIT and ISC
|
License: MIT and ISC
|
||||||
@ -31,6 +31,7 @@ Source2: prepare_vendor.sh
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: jq
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
BuildRequires: npm
|
BuildRequires: npm
|
||||||
|
|
||||||
@ -46,16 +47,22 @@ having random access support.
|
|||||||
%autosetup -p1 -a 1
|
%autosetup -p1 -a 1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
npm rebuild --verbose
|
npm rebuild --verbose --foreground-scripts
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -pv %{buildroot}%{nodejs_sitearch}
|
mkdir -pv %{buildroot}%{nodejs_sitelib}/@electron
|
||||||
mkdir -pv %{buildroot}%{_bindir}
|
mkdir -pv %{buildroot}%{_bindir}
|
||||||
cp -lr . %{buildroot}%{nodejs_sitearch}/asar
|
cp -lr . %{buildroot}%{nodejs_sitelib}/@electron/asar
|
||||||
ln -srv %{buildroot}%{nodejs_sitearch}/asar/bin/asar.js %{buildroot}%{_bindir}/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
|
#fix shebang
|
||||||
sed -i '1s/env //' %{buildroot}%{nodejs_sitearch}/asar/bin/asar.js
|
sed -i '1s/env //' %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.js
|
||||||
cd %{buildroot}%{nodejs_sitearch}/asar
|
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
|
#Remove development garbage
|
||||||
find -name example -print0 |xargs -r0 -- rm -rvf
|
find -name example -print0 |xargs -r0 -- rm -rvf
|
||||||
find -name test -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
|
%doc CHANGELOG.md README.md
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
/usr/bin/asar
|
/usr/bin/asar
|
||||||
%{nodejs_sitearch}
|
%{nodejs_sitelib}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
@ -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
3
v3.2.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:992583e43c5946ec246752a18df6889da76bfac30f6a3de4dc3d02b2fbf7d3a7
|
||||||
|
size 130893
|
Loading…
Reference in New Issue
Block a user