Files
nodejs-uglifyjs/nodejs-uglifyjs.spec

65 lines
2.2 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package nodejs-uglifyjs
#
# Copyright (c) 2013 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/
#
%define base_name uglifyjs
Name: nodejs-uglifyjs
Version: 2.3.6
Release: 0
Summary: JavaScript parser/compressor/beautifier toolkit
License: BSD-2-Clause
Group: Development/Libraries/Other
Url: https://github.com/mishoo/UglifyJS
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%nodejs_find_provides_and_requires
%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 doesnt 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 its a port to JavaScript of
the excellent parse-js Common Lisp library from Marijn Haverbeke.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json index.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%files
%defattr(-,root,root)
%doc LICENSE README.md
%dir %{nodejs_modulesdir}
%{nodejs_modulesdir}/%{base_name}
%changelog