31af97f
Name:           nodejs-xml2js
50e1c6d
Version:        0.4.1
5830c3b
Release:        1%{?dist}
31af97f
Summary:        Simple XML to JavaScript object converter
31af97f
31af97f
License:        MIT
31af97f
URL:            https://github.com/Leonidas-from-XIV/node-xml2js
31af97f
Source0:        http://registry.npmjs.org/xml2js/-/xml2js-%{version}.tgz
31af97f
# The test files are not included in the npm tarball.
31af97f
# Source1 is generated using Source10, which pulls from the upstream
31af97f
# version control repository.
31af97f
Source1:        xml2js-tests-%{version}.tar.bz2
31af97f
Source10:       xml2js-dl-tests.sh
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)
1958ee8
BuildRequires:  npm(xmlbuilder)
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
31af97f
%setup -q -n package
31af97f
%setup -T -D -a 1 -q -n package
901c6cf
%nodejs_fixdep sax "~0.5.2"
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
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