- 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

View File

@@ -15,21 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define base_name uglifyjs
Name: nodejs-uglifyjs
Version: 1.3.4
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
#Download URL: https://github.com/mishoo/UglifyJS/archive/v1.3.4.tar.gz
Source0: UglifyJS-%{version}.tar.gz
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
BuildRequires: nodejs
Requires: nodejs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%define mod_name uglifyjs
%define local_dependencies_path %{buildroot}%{_prefix}/lib/node_modules/%{mod_name}/node_modules
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%description
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.
%prep
%setup -q -n UglifyJS-%{version}
%setup -q -n package
%build
%check
node test/testparser.js
%install
npm_config_binroot=%{buildroot}%{_bindir} \
npm_config_manroot=%{buildroot}%{_mandir} \
npm_config_prefix=%{buildroot}%{_prefix} npm install -g .
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json index.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%files
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/uglifyjs
%{_prefix}/lib/node_modules
%doc LICENSE README.md
%dir %{nodejs_modulesdir}
%{nodejs_modulesdir}/%{base_name}
%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