Use the tarball from npm instead of github
This commit is contained in:
parent
cd89afbac9
commit
66ca9d0100
BIN
json-diff-0.5.2.tgz
Normal file
BIN
json-diff-0.5.2.tgz
Normal file
Binary file not shown.
@ -1,24 +1,31 @@
|
|||||||
%{?nodejs_find_provides_and_requires}
|
%{?nodejs_find_provides_and_requires}
|
||||||
%global packagename json-diff
|
%global packagename json-diff
|
||||||
%global enable_tests 1
|
%global enable_tests 1
|
||||||
Name: nodejs-json-diff
|
Name: nodejs-json-diff
|
||||||
Version: 0.5.2
|
Version: 0.5.2
|
||||||
Release: 1
|
Release: 2
|
||||||
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://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
BuildArch: noarch
|
Source1: https://github.com/andreyvit/json-diff/archive/v%{version}.tar.gz
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
BuildArch: noarch
|
||||||
BuildRequires: nodejs-packaging
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
%if 0%{?enable_tests}
|
%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
|
%endif
|
||||||
%description
|
%description
|
||||||
JSON diff
|
JSON diff
|
||||||
|
|
||||||
%prep
|
%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 cli-color '^1.1.0'
|
||||||
%nodejs_fixdep dreamopt '^0.8.0'
|
%nodejs_fixdep dreamopt '^0.8.0'
|
||||||
%nodejs_fixdep should
|
%nodejs_fixdep should
|
||||||
@ -52,5 +59,8 @@ ln -sf %{nodejs_sitelib}/%{packagename}/bin/%{packagename}.js \
|
|||||||
%{_bindir}/%{packagename}
|
%{_bindir}/%{packagename}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 16 2020 chengzihan <chengzihan2@huawei.com> - 0.5.2-2
|
||||||
|
- Use the Source0 from npm instead of github.
|
||||||
|
|
||||||
* Tue Sep 1 2020 wutao <wutao61@huawei.com> - 0.5.2-1
|
* Tue Sep 1 2020 wutao <wutao61@huawei.com> - 0.5.2-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user