Name: nodejs-JSV Version: 4.0.2 Release: 2%{?dist} Summary: JSON Schema Validator # License text is in lib/jsv.js License: BSD URL: https://github.com/garycourt/JSV Source0: http://registry.npmjs.org/JSV/-/JSV-%{version}.tgz # Use external uri-js instead of bundled version Patch0: nodejs-JSV-uri-js.patch BuildArch: noarch BuildRequires: nodejs-devel %description JSV is a JavaScript implementation of a extendable, fully compliant JSON Schema validator with the following features: * The fastest extendable JSON validator available! * Complete implementation of all current JSON Schema draft revisions. * Supports creating individual environments (sandboxes) that validate using a particular schema specification. * Provides an intuitive API for creating new validating schema attributes, or whole new custom schema schemas. * Supports self, full and described by hyper links. * Validates itself, and is bootstrapped from the JSON Schema schemas. * Includes over 1100 unit tests for testing all parts of the specifications. * Works in all ECMAScript 3 environments, including all web browsers and Node.js. * Licensed under the FreeBSD License, a very open license. %prep %setup -q -n package sed -i -e 's/\r//' package.json lib/*.js README.md CHANGELOG.md %patch0 -p1 -b .uri-js rm -rf node_modules lib/uri %build %check # Tests are only runnable in a web browser at present %install mkdir -p %{buildroot}/%{nodejs_sitelib}/JSV cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/JSV %nodejs_symlink_deps %files %doc README.md CHANGELOG.md docs examples %{nodejs_sitelib}/JSV %changelog * Sun Mar 17 2013 Tom Hughes <tom@compton.nu> - 4.0.2-2 - Unbundle uri-js * Sun Feb 10 2013 Tom Hughes <tom@compton.nu> - 4.0.2-1 - Initial build of 4.0.2