Accepting request 710117 from home:guoyunhe

Version 8.0.3

OBS-URL: https://build.opensuse.org/request/show/710117
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/npmjs-angular-cli?expand=0&rev=1
This commit is contained in:
Karl Cheng
2019-08-15 13:59:05 +00:00
committed by Git OBS Bridge
commit 9de2b85e9b
5 changed files with 88 additions and 0 deletions

57
npmjs-angular-cli.spec Normal file
View File

@@ -0,0 +1,57 @@
#
# spec file for package npmjs-angular-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 @angular/cli
Name: npmjs-angular-cli
Version: 8.0.3
Release: 0
Summary: Angular CLI
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
Angular CLI
%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/ng %{buildroot}%{_bindir}/ng
%fdupes %{buildroot}
%check
%files
%license LICENSE
%doc README.md
%{_bindir}/ng
%{_prefix}/lib/node_modules
%changelog