2011-10-24 06:45:58 +00:00
|
|
|
# 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
|
|
|
|
|
2014-10-10 10:32:02 +00:00
|
|
|
%define base_name argsparser
|
2011-10-24 06:45:58 +00:00
|
|
|
Name: nodejs-argsparser
|
|
|
|
Summary: A tiny command line arguments parser for node
|
2012-02-15 14:08:32 +00:00
|
|
|
Version: 0.0.6
|
2011-10-24 06:45:58 +00:00
|
|
|
Release: 1
|
|
|
|
License: MIT
|
|
|
|
Url: https://github.com/kof/node-argsparser
|
2014-10-10 10:32:02 +00:00
|
|
|
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
2011-10-24 06:45:58 +00:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-10 10:32:02 +00:00
|
|
|
BuildRequires: nodejs-packaging
|
2011-10-24 06:45:58 +00:00
|
|
|
BuildArch: noarch
|
2014-10-10 10:32:02 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
2011-10-24 06:45:58 +00:00
|
|
|
|
2014-10-09 15:12:36 +00:00
|
|
|
%nodejs_find_provides_and_requires
|
|
|
|
|
2011-10-24 06:45:58 +00:00
|
|
|
%description
|
|
|
|
Yet another tiny arguments parser for node.
|
|
|
|
Features
|
|
|
|
* extremely tiny
|
|
|
|
* instead to parse all possible spellings, it uses just some simple rules
|
|
|
|
|
|
|
|
%prep
|
2014-10-10 10:32:02 +00:00
|
|
|
%setup -q -n package
|
2011-10-24 06:45:58 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2014-10-10 10:32:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
|
|
|
cp -pr package.json index.js lib %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
2011-10-24 06:45:58 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-10-10 10:32:02 +00:00
|
|
|
%doc readme.md
|
|
|
|
%{nodejs_modulesdir}/%{base_name}
|
|
|
|
|
2011-10-24 06:45:58 +00:00
|
|
|
|
|
|
|
%changelog
|