change source

This commit is contained in:
jackie_wu 2020-09-08 16:51:26 +08:00
parent 8d167543ec
commit 5b3b26de13
5 changed files with 2 additions and 12 deletions

Binary file not shown.

Binary file not shown.

View File

@ -7,12 +7,7 @@ Release: 1
Summary: JSON diff
License: MIT
URL: https://github.com/andreyvit/json-diff
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
#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
Source0: https://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
@ -23,16 +18,12 @@ BuildRequires: coffee-script mocha npm(cli-color) npm(difflib) npm(should)
JSON diff
%prep
%setup -q -n package
# setup the tests and examples
%setup -q -T -D -a 1 -n package
%setup -q -T -D -a 2 -n package
%autosetup -n json-diff-%{version}
%nodejs_fixdep cli-color '^1.1.0'
%nodejs_fixdep dreamopt '^0.8.0'
%nodejs_fixdep should
%build
# nothing to do!
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
@ -48,7 +39,6 @@ ln -sf %{nodejs_sitelib}/%{packagename}/bin/%{packagename}.js \
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/coffee -c -b test/
%{_bindir}/mocha --require should -R spec

Binary file not shown.

BIN
v0.5.2.tar.gz Normal file

Binary file not shown.