package init

This commit is contained in:
wang_yue111 2020-09-08 16:04:49 +08:00
parent b3634f001b
commit 3e3543abb4
4 changed files with 4 additions and 8 deletions

View File

@ -6,11 +6,7 @@ Release: 1
Summary: Portable Unix shell commands for Node.js Summary: Portable Unix shell commands for Node.js
License: BSD and MIT License: BSD and MIT
URL: http://github.com/arturadib/shelljs URL: http://github.com/arturadib/shelljs
Source0: http://registry.npmjs.org/shelljs/-/shelljs-%{version}.tgz Source0: http://github.com/arturadib/shelljs/archive/v%{version}.tar.gz
#git clone http://github.com/arturadib/shelljs
#cd shelljs
#git archive --prefix="test/" --format=tar tags/v%{version}:test/ | bzip2 > tests-%{version}.tar.bz2
Source1: tests-%{version}.tar.bz2
Patch0: nodejs-shelljs_fix-tests.patch Patch0: nodejs-shelljs_fix-tests.patch
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
@ -22,9 +18,8 @@ BuildRequires: coffee-script npm(glob)
%{summary}. %{summary}.
%prep %prep
%setup -q -n package %autosetup -n shelljs-%{version} -S git
%setup -q -T -D -a 1 -n package rm test/exec.js
%patch0 -p1
sed -i '1s/env //' bin/shjs sed -i '1s/env //' bin/shjs
%nodejs_fixdep glob %nodejs_fixdep glob
@ -45,6 +40,7 @@ ln -sf %{nodejs_sitelib}/shelljs/bin/shjs \
%check %check
%nodejs_symlink_deps --check %nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")' %{__nodejs} -e 'require("./")'
%if 0%{?enable_tests} %if 0%{?enable_tests}
%__nodejs scripts/run-tests %__nodejs scripts/run-tests
%else %else

Binary file not shown.

Binary file not shown.

BIN
v0.7.3.tar.gz Normal file

Binary file not shown.