angular-cli/angular-cli.spec

47 lines
1.2 KiB
RPMSpec

Name: angular-cli
Version: 11.1.2
Release: 1mamba
Summary: CLI tool for Angular
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://cli.angular.io/
## GITSOURCE https://github.com/angular/angular-cli.git v7.3.3
Source: https://github.com/angular/angular-cli.git/v%{version}/angular-cli-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: nodejs
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
CLI tool for Angular.
%prep
%setup -q
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
npm install -g --prefix "%{buildroot}%{_prefix}" @angular/cli@%{version}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/ng
%dir %{_prefix}/lib/node_modules/@angular
%dir %{_prefix}/lib/node_modules/@angular/cli
%{_prefix}/lib/node_modules/@angular/cli/*
%doc LICENSE
%changelog
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 11.1.2-1mamba
- automatic version update by autodist
* Fri Feb 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.3.3-1mamba
- package created using the webbuild interface