%global commit fafe6fd7a00b3d361d8863882f4a67cb567612e8 Name: nodejs-xml2js Version: 0.4.5 Release: 2%{?dist} Summary: Simple XML to JavaScript object converter License: MIT URL: https://github.com/Leonidas-from-XIV/node-xml2js Source0: https://github.com/Leonidas-from-XIV/node-xml2js/archive/%{commit}/node-xml2js-%{commit}.tar.gz # Patch0: nodejs-xml2js/nodejs-xml2js-xmlbuilder.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(zap) BuildRequires: npm(coffee-script) BuildRequires: npm(sax) BuildRequires: npm(diff) BuildRequires: npm(xmlbuilder) >= 2.4.6 %description Ever had the urge to parse XML? And wanted to access the data in some sane, easy way? Don't want to compile a C parser, for whatever reason? Then xml2js is what you're looking for! %prep %setup -q -n node-xml2js-%{commit} %patch0 -p1 %nodejs_fixdep sax "~0.5" rm -rf node_modules %build %install mkdir -p %{buildroot}/%{nodejs_sitelib}/xml2js cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/xml2js %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{nodejs_sitelib}/zap/bin/zap %files %doc LICENSE README.md %{nodejs_sitelib}/xml2js %changelog * Wed Feb 11 2015 Tom Hughes - 0.4.5-2 - Patch test result for xmlbuilder 0.4.6 support * Wed Feb 11 2015 Tom Hughes - 0.4.5-1 - Update to 0.4.5 upstream release * Sat Jun 07 2014 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Tom Hughes - 0.4.4-1 - Update to 0.4.4 upstream release * Fri May 23 2014 Tom Hughes - 0.4.3-1 - Update to 0.4.3 upstream release * Sat Apr 19 2014 Jamie Nguyen - 0.4.2-2 - fix version of npm(sax) dependency * Sun Mar 30 2014 Tom Hughes - 0.4.2-1 - Update to 0.4.2 upstream release - Switch to using github as source so we get tests * Fri Jan 3 2014 Tom Hughes - 0.4.1-1 - Update to 0.4.1 upstream release * Mon Nov 25 2013 Tom Hughes - 0.4.0-1 - Update to 0.4.0 upstream release - Update to latest nodejs packaging standards * Sat Aug 03 2013 Fedora Release Engineering - 0.2.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jun 19 2013 Tom Hughes - 0.2.8-1 - Update to 0.2.8 upstream release * Tue May 7 2013 Tom Hughes - 0.2.7-1 - Update to 0.2.7 upstream release * Wed Mar 6 2013 Tom Hughes - 0.2.6-2 - Update sax dependency * Mon Mar 4 2013 Tom Hughes - 0.2.6-1 - Update to 0.2.6 release - Add tests, which are now separate - BuildRequire coffee-script and sax for tests * Sun Feb 10 2013 Tom Hughes - 0.2.4-1 - Initial build of 0.2.4