Makes sense to have it there,no? OBS-URL: https://build.opensuse.org/request/show/111906 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-uglifyjs?expand=0&rev=1
65 lines
2.3 KiB
RPMSpec
65 lines
2.3 KiB
RPMSpec
# Copyright (c) 2011 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
||
#
|
||
|
||
# norootforbuild
|
||
|
||
|
||
Name: nodejs-uglifyjs
|
||
Summary: a JavaScript parser/compressor/beautifier
|
||
Version: 1.2.5
|
||
Release: 1
|
||
License: MIT
|
||
Url: https://github.com/jshint/node-jshint
|
||
Source0: mishoo-UglifyJS-v1.2.5-5-gcab739c.tar.gz
|
||
# Patch01: nodejs-jshint-package_json-0.5.7.diff
|
||
Group: Development/Libraries/Other
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
BuildArch: noarch
|
||
Requires: nodejs
|
||
BuildRequires: nodejs
|
||
%define mod_name uglifyjs
|
||
%define local_dependencies_path %{buildroot}%{_prefix}/lib/node_modules/%{mod_name}/node_modules
|
||
|
||
%description
|
||
This package implements a general-purpose JavaScript
|
||
parser/compressor/beautifier toolkit. It is developed on NodeJS, but it should work on any
|
||
JavaScript platform supporting the CommonJS module system (and if your platform of choice doesn’t
|
||
support CommonJS, you can easily implement it, or discard the exports.* lines from UglifyJS sources).
|
||
|
||
The tokenizer/parser generates an abstract syntax tree from JS code. You can then traverse the
|
||
AST to learn more about the code, or do various manipulations on it. This part is
|
||
implemented in parse-js.js and it’s a port to JavaScript of the excellent parse-js Common Lisp library from Marijn Haverbeke.
|
||
|
||
%prep
|
||
%setup -q -n mishoo-UglifyJS-cab739c
|
||
|
||
%build
|
||
|
||
%install
|
||
npm_config_binroot=%{buildroot}%{_bindir} \
|
||
npm_config_manroot=%{buildroot}%{_mandir} \
|
||
npm_config_prefix=%{buildroot}%{_prefix} npm install -g .
|
||
|
||
|
||
%clean
|
||
rm -rf %{buildroot}
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%attr(755,root,root) %{_bindir}/uglifyjs
|
||
%{_prefix}/lib/node_modules
|
||
|
||
|
||
%changelog
|