Blob Blame Raw

# sometimes you might need to disable tests to get it to build since tap
# depends on this
%global enable_tests 1

Name:           nodejs-minimist
Version:        0.0.1
Release:        3%{?dist}
Summary:        Parse argument options in Node.js

Group:          System Environment/Libraries
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:  noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch

BuildRequires:  nodejs-packaging

%if 0%{?enable_tests}
BuildRequires:  npm(tap)
BuildRequires:  npm(tape)


This module is the guts of nodejs-optimist's argument parser without all the 
fanciful decoration.

%setup -q -n package

#nothing to do

rm -rf %buildroot
mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist

%if 0%{?enable_tests}
%nodejs_symlink_deps --check
%tap test/*.js

rm -rf %buildroot

%doc LICENSE readme.markdown example

* Sat Jun 07 2014 Fedora Release Engineering <> - 0.0.1-3
- Rebuilt for

* Sun Aug 18 2013 T.C. Hollingsworth <> - 0.0.1-2
- update to new nodejs standards

* Mon Aug 05 2013 T.C. Hollingsworth <> - 0.0.1-1
- initial package