3 %bcond_with tests # build with tests
6 Summary: Parse argument options in Node.js
11 Group: Development/Libraries
12 Source0: https://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
13 # Source0-md5: 2cf431b6650eef21fbace17b133be31e
14 URL: https://github.com/substack/minimist
16 BuildRequires: nodejs-tap
17 BuildRequires: nodejs-tape
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Parse argument options in Node.js
25 This module is the guts of nodejs-optimist's argument parser without
26 all the fanciful decoration.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
40 cp -pr package.json index.js $RPM_BUILD_ROOT%{nodejs_libdir}/minimist
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %doc readme.markdown LICENSE example
48 %{nodejs_libdir}/%{pkg}