change source
This commit is contained in:
parent
8d167543ec
commit
5b3b26de13
Binary file not shown.
Binary file not shown.
@ -7,12 +7,7 @@ Release: 1
|
|||||||
Summary: JSON diff
|
Summary: JSON diff
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/andreyvit/json-diff
|
URL: https://github.com/andreyvit/json-diff
|
||||||
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
Source0: https://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz
|
||||||
#git clone $url
|
|
||||||
#git archive --prefix='tests/' --format=tar 0.5.2:tests/ | bzip2 > "$pwd"/tests-0.5.2.tar.bz2
|
|
||||||
Source1: tests-%{version}.tar.bz2
|
|
||||||
#git archive --prefix='examples/' --format=tar 0.5.2:examples/ | bzip2 > "$pwd"/examples-0.5.2.tar.bz2
|
|
||||||
Source2: examples-%{version}.tar.bz2
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
@ -23,16 +18,12 @@ BuildRequires: coffee-script mocha npm(cli-color) npm(difflib) npm(should)
|
|||||||
JSON diff
|
JSON diff
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n package
|
%autosetup -n json-diff-%{version}
|
||||||
# setup the tests and examples
|
|
||||||
%setup -q -T -D -a 1 -n package
|
|
||||||
%setup -q -T -D -a 2 -n package
|
|
||||||
%nodejs_fixdep cli-color '^1.1.0'
|
%nodejs_fixdep cli-color '^1.1.0'
|
||||||
%nodejs_fixdep dreamopt '^0.8.0'
|
%nodejs_fixdep dreamopt '^0.8.0'
|
||||||
%nodejs_fixdep should
|
%nodejs_fixdep should
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to do!
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
@ -48,7 +39,6 @@ ln -sf %{nodejs_sitelib}/%{packagename}/bin/%{packagename}.js \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%nodejs_symlink_deps --check
|
%nodejs_symlink_deps --check
|
||||||
%{__nodejs} -e 'require("./")'
|
|
||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
%{_bindir}/coffee -c -b test/
|
%{_bindir}/coffee -c -b test/
|
||||||
%{_bindir}/mocha --require should -R spec
|
%{_bindir}/mocha --require should -R spec
|
||||||
|
|||||||
Binary file not shown.
BIN
v0.5.2.tar.gz
Normal file
BIN
v0.5.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user