diff --git a/json-diff-0.5.2.tgz b/json-diff-0.5.2.tgz new file mode 100644 index 0000000..902aed9 Binary files /dev/null and b/json-diff-0.5.2.tgz differ diff --git a/nodejs-json-diff.spec b/nodejs-json-diff.spec index 00fdea9..e594b17 100644 --- a/nodejs-json-diff.spec +++ b/nodejs-json-diff.spec @@ -1,24 +1,31 @@ %{?nodejs_find_provides_and_requires} %global packagename json-diff %global enable_tests 1 -Name: nodejs-json-diff -Version: 0.5.2 -Release: 1 -Summary: JSON diff -License: MIT -URL: https://github.com/andreyvit/json-diff -Source0: https://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz -BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch -BuildRequires: nodejs-packaging +Name: nodejs-json-diff +Version: 0.5.2 +Release: 2 +Summary: JSON diff +License: MIT +URL: https://github.com/andreyvit/json-diff +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz +Source1: https://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging %if 0%{?enable_tests} -BuildRequires: coffee-script mocha npm(cli-color) npm(difflib) npm(should) +BuildRequires: coffee-script mocha npm(cli-color) npm(difflib) npm(should) %endif %description JSON diff %prep -%autosetup -n json-diff-%{version} +%setup -q -n package + +tar -xf %{SOURCE1} +cp -rf %{packagename}-%{version}/test ./ +cp -rf %{packagename}-%{version}/example ./ +cp -rf %{packagename}-%{version}/doc ./ + %nodejs_fixdep cli-color '^1.1.0' %nodejs_fixdep dreamopt '^0.8.0' %nodejs_fixdep should @@ -52,5 +59,8 @@ ln -sf %{nodejs_sitelib}/%{packagename}/bin/%{packagename}.js \ %{_bindir}/%{packagename} %changelog +* Wed Sep 16 2020 chengzihan - 0.5.2-2 +- Use the Source0 from npm instead of github. + * Tue Sep 1 2020 wutao - 0.5.2-1 - package init