%global npm_name options
# Although there are tests
# the dependancies aren't in Fedora yet
%global enable_tests 0
%{?nodejs_find_provides_and_requires}
Summary: Light-weight in-code option parser for nodejs
Name: nodejs-%{npm_name}
Version: 0.0.6
Release: 5%{?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-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha)
BuildRequires: npm(expect.js)
%endif
ExclusiveArch: %{nodejs_arches} noarch
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 %{buildroot}%{nodejs_sitelib}/%{npm_name}
%if 0%{?enable_tests}
%check
make test
%endif
%files
%doc README.md
%{nodejs_sitelib}/%{npm_name}
%changelog
* Sun Feb 19 2017 Piotr Popieluch <piotr1212@gmail.com> - 0.0.6-5
- update ExclusiveArch and BuildRequires
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Oct 24 2014 Troy Dawson <tdawson@redhat.com> - 0.0.6-1
- Updated to latest release
* Wed Jan 22 2014 Troy Dawson <tdawson@redhat.com> - 0.0.5-4
- Add exclusivearch on EL6
* Fri Jan 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.5-3
- add macro to invoke dependency generator on EL6
* Wed Jun 19 2013 Troy Dawson <tdawson@redhat.com> - 0.0.5-2
- Bump release number up (#975859)
* 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