2012-04-18 14:02:11 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package nodejs-uglifyjs
|
|
|
|
|
#
|
2013-05-22 11:11:52 +00:00
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-04-17 11:52:17 +00:00
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2014-09-12 11:32:55 +00:00
|
|
|
|
%define base_name uglifyjs
|
|
|
|
|
|
2012-04-17 11:52:17 +00:00
|
|
|
|
Name: nodejs-uglifyjs
|
2014-09-12 11:32:55 +00:00
|
|
|
|
Version: 2.3.6
|
2012-04-18 14:02:11 +00:00
|
|
|
|
Release: 0
|
2013-05-22 11:11:52 +00:00
|
|
|
|
Summary: JavaScript parser/compressor/beautifier toolkit
|
|
|
|
|
License: BSD-2-Clause
|
2012-04-17 11:52:17 +00:00
|
|
|
|
Group: Development/Libraries/Other
|
2013-05-22 11:11:52 +00:00
|
|
|
|
Url: https://github.com/mishoo/UglifyJS
|
2014-09-12 11:32:55 +00:00
|
|
|
|
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
2014-10-09 15:17:55 +00:00
|
|
|
|
BuildRequires: nodejs-packaging
|
2012-04-17 11:52:17 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildArch: noarch
|
2014-09-12 11:32:55 +00:00
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
|
|
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
2014-10-09 15:17:55 +00:00
|
|
|
|
%nodejs_find_provides_and_requires
|
|
|
|
|
|
2012-04-17 11:52:17 +00:00
|
|
|
|
%description
|
|
|
|
|
This package implements a general-purpose JavaScript
|
2013-05-22 11:11:52 +00:00
|
|
|
|
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).
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
2013-05-22 11:11:52 +00:00
|
|
|
|
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.
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
2014-09-12 11:32:55 +00:00
|
|
|
|
%setup -q -n package
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
2014-09-12 11:32:55 +00:00
|
|
|
|
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
|
|
|
|
cp -pr package.json index.js \
|
|
|
|
|
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2014-09-12 11:32:55 +00:00
|
|
|
|
%doc LICENSE README.md
|
|
|
|
|
%dir %{nodejs_modulesdir}
|
|
|
|
|
%{nodejs_modulesdir}/%{base_name}
|
2012-04-17 11:52:17 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|