File nodejs-commander2.spec of Package nodejs-commander2

#
# spec file for package nodejs-commander2
#
# Copyright (c) 2020 Stasiek Michalski <stasiek@michalski.cc>.
#
# 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 https://bugs.opensuse.org/
#

Name:           nodejs-commander2
Version:        2.20.3
Release:        0
License:        MIT
Summary:        node.js command-line interfaces made easy

Url:            https://github.com/tj/commander.js
Source:         https://registry.npmjs.org/commander/-/commander-%{version}.tgz

BuildRequires:  nodejs
BuildRequires:  nodejs-packaging-fedora

BuildArch:      noarch
%{?nodejs_requires}

%description
%{summary}.

%prep
%autosetup -n package

%build

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/commander/typings
cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/commander/
cp -p typings/index.d.ts %{buildroot}%{nodejs_sitelib}/commander/typings/

%nodejs_symlink_deps

%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'

%files
%dir %{nodejs_sitelib}
%{nodejs_sitelib}/commander

%changelog
openSUSE Build Service is sponsored by