Files
nodejs-argparser/nodejs-argparser.spec

55 lines
1.6 KiB
RPMSpec

# 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 argparser
Name: nodejs-argparser
Summary: Simplest parse arguments, options for Node.js
Version: 0.2.2
Release: 1
License: MIT
URL: https://github.com/jshint/node-jshint
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
Simplest parse arguments, options for Node.js
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
cp -pr package.json ArgParser.js %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_prefix}/lib/node_modules
%doc README.md LICENCE
%changelog