commit
4697fc17b8
BIN
difflet-0.2.3.tgz
Normal file
BIN
difflet-0.2.3.tgz
Normal file
Binary file not shown.
46
nodejs-difflet.spec
Normal file
46
nodejs-difflet.spec
Normal file
@ -0,0 +1,46 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 0
|
||||
Name: nodejs-difflet
|
||||
Version: 0.2.3
|
||||
Release: 1
|
||||
Summary: Colorful diffs for JavaScript objects
|
||||
License: MIT
|
||||
URL: https://github.com/substack/difflet
|
||||
Source0: http://registry.npmjs.org/difflet/-/difflet-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(charm) npm(deep-equal) npm(traverse)
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap) npm(ent)
|
||||
%endif
|
||||
%description
|
||||
Creates colorful diffs for JavaScript objects,
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%nodejs_fixdep charm '~0.1.0'
|
||||
%nodejs_fixdep deep-equal '^1.0.1'
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/difflet
|
||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/difflet
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%__nodejs -e "require('./')"
|
||||
%if 0%{?enable_tests}
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/difflet
|
||||
%doc README.markdown example
|
||||
|
||||
%changelog
|
||||
* Tue Aug 18 2020 Anan Fu <fuanan3@huawei.com> - 0.2.3-1
|
||||
- package init
|
||||
4
nodejs-difflet.yaml
Normal file
4
nodejs-difflet.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: substack/difflet
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user