%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-jsonify Version: 0.0.0 Release: 2%{?dist} Summary: JSON without touching any globals License: Public Domain Group: System Environment/Libraries URL: https://github.com/substack/jsonify Source0: http://registry.npmjs.org/jsonify/-/jsonify-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(garbage) BuildRequires: 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 #nothing to do %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 * Sun Jul 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.0-2 - restrict to compatible arches * Mon May 27 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.0-1 - initial package