package init
This commit is contained in:
parent
b3634f001b
commit
3e3543abb4
@ -6,11 +6,7 @@ Release: 1
|
||||
Summary: Portable Unix shell commands for Node.js
|
||||
License: BSD and MIT
|
||||
URL: http://github.com/arturadib/shelljs
|
||||
Source0: http://registry.npmjs.org/shelljs/-/shelljs-%{version}.tgz
|
||||
#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
|
||||
Source0: http://github.com/arturadib/shelljs/archive/v%{version}.tar.gz
|
||||
Patch0: nodejs-shelljs_fix-tests.patch
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
@ -22,9 +18,8 @@ BuildRequires: coffee-script npm(glob)
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%setup -q -T -D -a 1 -n package
|
||||
%patch0 -p1
|
||||
%autosetup -n shelljs-%{version} -S git
|
||||
rm test/exec.js
|
||||
sed -i '1s/env //' bin/shjs
|
||||
%nodejs_fixdep glob
|
||||
|
||||
@ -45,6 +40,7 @@ ln -sf %{nodejs_sitelib}/shelljs/bin/shjs \
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
%__nodejs scripts/run-tests
|
||||
%else
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
v0.7.3.tar.gz
Normal file
BIN
v0.7.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user