# # 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