1a93f2e
%{?nodejs_find_provides_and_requires}
1a93f2e
1a93f2e
# sometimes you might need to disable tests to get it to build since tap
1a93f2e
# depends on this
1a93f2e
%global enable_tests 1
1a93f2e
1a93f2e
Name:           nodejs-minimist
1a93f2e
Version:        0.0.1
5cf7666
Release:        3%{?dist}
1a93f2e
Summary:        Parse argument options in Node.js
1a93f2e
1a93f2e
Group:          System Environment/Libraries
1a93f2e
License:        MIT
1a93f2e
URL:            http://github.com/substack/minimist
1a93f2e
Source0:        http://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
1a93f2e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1a93f2e
1a93f2e
BuildArch:  noarch
1a93f2e
%if 0%{?fedora} >= 19
1a93f2e
ExclusiveArch: %{nodejs_arches} noarch
1a93f2e
%else
1a93f2e
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
1a93f2e
%endif
1a93f2e
1a93f2e
BuildRequires:  nodejs-packaging
1a93f2e
1a93f2e
%if 0%{?enable_tests}
1a93f2e
BuildRequires:  npm(tap)
1a93f2e
BuildRequires:  npm(tape)
1a93f2e
%endif
1a93f2e
1a93f2e
%description
1a93f2e
%{summary}.
1a93f2e
1a93f2e
This module is the guts of nodejs-optimist's argument parser without all the 
1a93f2e
fanciful decoration.
1a93f2e
1a93f2e
%prep
1a93f2e
%setup -q -n package
1a93f2e
1a93f2e
%build
1a93f2e
#nothing to do
1a93f2e
1a93f2e
%install
1a93f2e
rm -rf %buildroot
1a93f2e
mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
1a93f2e
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist
1a93f2e
1a93f2e
%check
1a93f2e
%if 0%{?enable_tests}
1a93f2e
%nodejs_symlink_deps --check
1a93f2e
%tap test/*.js
1a93f2e
%endif
1a93f2e
1a93f2e
%clean
1a93f2e
rm -rf %buildroot
1a93f2e
1a93f2e
%files
1a93f2e
%defattr(-,root,root,-)
1a93f2e
%{nodejs_sitelib}/minimist
1a93f2e
%doc LICENSE readme.markdown example
1a93f2e
1a93f2e
%changelog
5cf7666
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
5cf7666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5cf7666
1a93f2e
* Sun Aug 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-2
1a93f2e
- update to new nodejs standards
1a93f2e
1a93f2e
* Mon Aug 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-1
1a93f2e
- initial package