%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-iso8601
Version: 1.1.1
Release: 5%{?dist}
Summary: Node.js module to parse and print ISO8601 dates
License: MIT
Group: System Environment/Libraries
URL: https://github.com/calmh/node-iso8601
Source0: http://registry.npmjs.org/iso8601/-/iso8601-%{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(mocha)
BuildRequires: npm(should)
%endif
%description
%{summary}
%prep
%setup -q -n package
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/iso8601
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/iso8601
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha -R spec
%endif
%files
%doc LICENSE README.md
%{nodejs_sitelib}/iso8601
%changelog
* Sun Jul 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.1-5
- restrict to compatible arches
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.1-4
- rebuild for missing npm(iso8601) provides on EL6
* Thu Feb 14 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.1-3
- %%nodejs_fixdep not actually needed
* Thu Feb 14 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.1-2
- make use of %%nodejs_fixdep
* Mon Feb 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.1-1
- initial package