diff --git a/difflet-0.2.3.tgz b/difflet-0.2.3.tgz new file mode 100644 index 0000000..fe94897 Binary files /dev/null and b/difflet-0.2.3.tgz differ diff --git a/nodejs-difflet.spec b/nodejs-difflet.spec new file mode 100644 index 0000000..8ffe4ac --- /dev/null +++ b/nodejs-difflet.spec @@ -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 - 0.2.3-1 +- package init diff --git a/nodejs-difflet.yaml b/nodejs-difflet.yaml new file mode 100644 index 0000000..7460342 --- /dev/null +++ b/nodejs-difflet.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: substack/difflet +tag_prefix: "^" +seperator: "."