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