diff --git a/jsonify-0.0.0.tgz b/jsonify-0.0.0.tgz new file mode 100644 index 0000000..76a3664 Binary files /dev/null and b/jsonify-0.0.0.tgz differ diff --git a/nodejs-jsonify.spec b/nodejs-jsonify.spec new file mode 100644 index 0000000..b70b93c --- /dev/null +++ b/nodejs-jsonify.spec @@ -0,0 +1,44 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +Name: nodejs-jsonify +Version: 0.0.0 +Release: 1 +Summary: JSON without touching any globals +License: Public Domain +URL: https://github.com/substack/jsonify +Source0: http://registry.npmjs.org/jsonify/-/jsonify-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(garbage) npm(tap) +%endif +%description +This module provides Douglas Crockford's JSON implementation without +modifying any globals. 'stringify' and 'parse' are merely exported +without respect to whether or not a global JSON object exists. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/jsonify +cp -pr package.json index.js lib/ \ + %{buildroot}%{nodejs_sitelib}/jsonify +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%tap test +%endif + +%files +%doc README.markdown +%{nodejs_sitelib}/jsonify + +%changelog +* Mon Aug 17 2020 wutao - 0.0.0-1 +- Package init diff --git a/nodejs-jsonify.yaml b/nodejs-jsonify.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/nodejs-jsonify.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA