%global npm_name options
# Although there are tests
# the dependancies aren't in Fedora yet
%global enable_tests 0
Summary: Light-weight in-code option parser for nodejs
Name: nodejs-%{npm_name}
Version: 0.0.5
Release: 3%{?dist}
Group: System Environment/Libraries
License: MIT
URL: https://github.com/einaros/options.js
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
BuildRequires: nodejs-devel
%if 0%{?enable_tests}
BuildRequires: npm(mocha)
BuildRequires: npm(expect.js)
%endif
BuildArch: noarch
%description
A very light-weight in-code option parser for nodejs.
%prep
%setup -q -n package
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pr lib Makefile package.json test %{buildroot}%{nodejs_sitelib}/%{npm_name}
%if 0%{?enable_tests}
%check
make test
%endif
%files
%doc README.md
%{nodejs_sitelib}/%{npm_name}
%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed May 29 2013 Troy Dawson <tdawson@redhat.com> - 0.0.5-1
- Update to version 0.0.5
* Fri Mar 01 2013 Troy Dawson <tdawson@redhat.com> - 0.0.3-2
- Update spec to Fedora nodejs standards
* Wed Nov 14 2012 Troy Dawson <tdawson@redhat.com> - 0.0.3-1
- Initial build using tchor spec template