Files
npmjs-webpack-cli/npmjs-webpack-cli.spec

58 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package npmjs-webpack-cli
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define npm_name webpack-cli
Name: npmjs-webpack-cli
Version: 3.3.4
Release: 0
Summary: Webpack's Command Line Interface
License: MIT
Group: Development/Languages/NodeJS
URL: https://www.npmjs.com/package/%{npm_name}
Source0: %{name}-%{version}.tar.gz
BuildRequires: nodejs
BuildRequires: fdupes
Requires: nodejs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{npm_name}
cp -r * %{buildroot}%{_prefix}/lib/node_modules/%{npm_name}
mkdir -p %{buildroot}%{_bindir}
ln -s %{_prefix}/lib/node_modules/%{npm_name}/bin/cli.js %{buildroot}%{_bindir}/%{npm_name}
%fdupes %{buildroot}
%check
%files
%license LICENSE
%doc README.md
%{_bindir}/%{npm_name}
%{_prefix}/lib/node_modules
%changelog