# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define base_name argsparser Name: nodejs-argsparser Summary: A tiny command line arguments parser for node Version: 0.0.6 Release: 1 License: MIT Url: https://github.com/kof/node-argsparser Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz Group: Development/Libraries/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: nodejs-packaging BuildArch: noarch ExclusiveArch: %{ix86} x86_64 %{arm} noarch %nodejs_find_provides_and_requires %description Yet another tiny arguments parser for node. Features * extremely tiny * instead to parse all possible spellings, it uses just some simple rules %prep %setup -q -n package %build %install mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{base_name} cp -pr package.json index.js lib %{buildroot}%{_prefix}/lib/node_modules/%{base_name} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc readme.md %{nodejs_modulesdir}/%{base_name} %changelog