Blob Blame History Raw
%{?nodejs_find_provides_and_requires}

%global enable_tests 1

Name:       nodejs-eyes
Version:    0.1.8
Release:    1%{?dist}
Summary:    A customizable value inspector for Node.js
License:    MIT
Group:      System Environment/Libraries
URL:        https://github.com/cloudhead/eyes.js
Source0:    http://registry.npmjs.org/eyes/-/eyes-%{version}.tgz
BuildArch:  noarch

BuildRequires:  nodejs-devel

%description
%{summary}


%prep
%setup -q -n package


%build
#nothing to do


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/eyes
cp -pr package.json lib/ \
    %{buildroot}%{nodejs_sitelib}/eyes

%nodejs_symlink_deps


%if 0%{?enable_tests}
%check
%__nodejs test/*-test.js
%endif


%files
%doc LICENSE README.md
%{nodejs_sitelib}/eyes


%changelog
* Thu Feb 14 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.8-1
- initial package