%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-colors
Version: 0.6.2
Release: 1%{?dist}
Summary: Get colors in your Node.js console
License: MIT
Group: System Environment/Libraries
URL: https://github.com/Marak/colors.js
Source0: http://registry.npmjs.org/colors/-/colors-%{version}.tgz
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
BuildRequires: nodejs-packaging
%description
%{summary}.
%prep
%setup -q -n package
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/colors
cp -pr package.json colors.js themes/ \
%{buildroot}%{nodejs_sitelib}/colors
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%__nodejs test.js
%endif
%files
%doc MIT-LICENSE.txt ReadMe.md example.html example.js
%{nodejs_sitelib}/colors
%changelog
* Tue Sep 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.2-1
- update to upstream release 0.6.2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat Jul 06 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.0-3
- fix compatible arches for f18/el6
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.6.0-2
- rebuild for missing npm(colors) provides on EL6
- restrict to compatible arches
* Wed Feb 13 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.0-1
- initial package