commit ad6f6ec8da9aca4d5951b01dfaf6abff74e41b1748b9ab037441d14097f2422a Author: Flavio Castelli Date: Tue Apr 17 11:52:17 2012 +0000 Accepting request 111906 from home:illuusio 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mishoo-UglifyJS-v1.2.5-5-gcab739c.tar.gz b/mishoo-UglifyJS-v1.2.5-5-gcab739c.tar.gz new file mode 100644 index 0000000..a83fa44 --- /dev/null +++ b/mishoo-UglifyJS-v1.2.5-5-gcab739c.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94fcaf93d5b366b1e3b408f281560cf8da1efb02e3c874627832bf92c98ed94c +size 62083 diff --git a/nodejs-uglifyjs.changes b/nodejs-uglifyjs.changes new file mode 100644 index 0000000..ba0faff --- /dev/null +++ b/nodejs-uglifyjs.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Tue Oct 4 10:42:18 UTC 2011 - fcastelli@suse.com + +- Resolve global dependencies + +------------------------------------------------------------------- +Tue Oct 4 10:22:53 UTC 2011 - fcastelli@suse.com + +- Update tarball: make sure submodules are part of it. + +------------------------------------------------------------------- +Tue Oct 4 10:14:15 UTC 2011 - fcastelli@suse.com + +- Fix package dependencies + +------------------------------------------------------------------- +Mon Oct 3 16:48:38 UTC 2011 - fcastelli@suse.com + +- Package version 0.3.1 + diff --git a/nodejs-uglifyjs.spec b/nodejs-uglifyjs.spec new file mode 100644 index 0000000..1f03935 --- /dev/null +++ b/nodejs-uglifyjs.spec @@ -0,0 +1,64 @@ +# 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