- Update to version 2.3.6

- specfile cleanup

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-uglifyjs?expand=0&rev=4
This commit is contained in:
2014-09-12 11:32:55 +00:00
committed by Git OBS Bridge
parent e85a4180c3
commit 3b2d2e0f94
4 changed files with 22 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a11104a110ac4f66345fcf42e343607b9554308376a7f903dfe1804e4068f707
size 81922

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 12 11:32:27 UTC 2014 - jgleissner@suse.com
- Update to version 2.3.6
- specfile cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 18 13:53:55 UTC 2013 - jweberhofer@weberhofer.at Sat May 18 13:53:55 UTC 2013 - jweberhofer@weberhofer.at

View File

@@ -15,21 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define base_name uglifyjs
Name: nodejs-uglifyjs Name: nodejs-uglifyjs
Version: 1.3.4 Version: 2.3.6
Release: 0 Release: 0
Summary: JavaScript parser/compressor/beautifier toolkit Summary: JavaScript parser/compressor/beautifier toolkit
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Libraries/Other Group: Development/Libraries/Other
Url: https://github.com/mishoo/UglifyJS Url: https://github.com/mishoo/UglifyJS
#Download URL: https://github.com/mishoo/UglifyJS/archive/v1.3.4.tar.gz Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
Source0: UglifyJS-%{version}.tar.gz
BuildRequires: nodejs BuildRequires: nodejs
Requires: nodejs Requires: nodejs
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%define mod_name uglifyjs ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%define local_dependencies_path %{buildroot}%{_prefix}/lib/node_modules/%{mod_name}/node_modules
%description %description
This package implements a general-purpose JavaScript This package implements a general-purpose JavaScript
@@ -44,21 +45,19 @@ on it. This part is implemented in parse-js.js and its a port to JavaScript o
the excellent parse-js Common Lisp library from Marijn Haverbeke. the excellent parse-js Common Lisp library from Marijn Haverbeke.
%prep %prep
%setup -q -n UglifyJS-%{version} %setup -q -n package
%build %build
%check
node test/testparser.js
%install %install
npm_config_binroot=%{buildroot}%{_bindir} \ mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
npm_config_manroot=%{buildroot}%{_mandir} \ cp -pr package.json index.js \
npm_config_prefix=%{buildroot}%{_prefix} npm install -g . %{buildroot}%{nodejs_modulesdir}/%{base_name}/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%attr(755,root,root) %{_bindir}/uglifyjs %doc LICENSE README.md
%{_prefix}/lib/node_modules %dir %{nodejs_modulesdir}
%{nodejs_modulesdir}/%{base_name}
%changelog %changelog

3
uglifyjs-2.3.6.tgz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2742b02d0132826e3bbfe9703487fea0dc7993d32a8e63205288c35d3b096ac7
size 64285