Initial package OBS-URL: https://build.opensuse.org/request/show/793823 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/uglify-js?expand=0&rev=1
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package uglify-js
|
|
#
|
|
# Copyright (c) 2020 Stasiek Michalski <stasiek@michalski.cc>.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: uglify-js
|
|
Version: 3.8.1
|
|
Release: 0
|
|
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
|
|
License: BSD
|
|
URL: https://github.com/mishoo/UglifyJS2
|
|
Source0: https://registry.npmjs.org/uglify-js/-/uglify-js-%{version}.tgz
|
|
|
|
Provides: nodejs-uglify-js = %{version}-%{release}
|
|
|
|
BuildRequires: nodejs-packaging-fedora
|
|
BuildRequires: nodejs-commander2
|
|
BuildRequires: nodejs-source-map0.6
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
JavaScript parser, mangler/compressor and beautifier toolkit.
|
|
|
|
This package ships the uglifyjs command-line tool and a library suitable for
|
|
use within Node.js.
|
|
|
|
%prep
|
|
%autosetup -n package
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js
|
|
cp -pr package.json bin lib tools LICENSE %{buildroot}%{nodejs_sitelib}/uglify-js/
|
|
chmod +x %{buildroot}%{nodejs_sitelib}/uglify-js/bin/uglifyjs
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
ln -sf %{nodejs_sitelib}/uglify-js/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
|
|
|
|
%check
|
|
%nodejs_symlink_deps --check
|
|
%{__nodejs} -e 'require("./")'
|
|
|
|
%files
|
|
%dir %{nodejs_sitelib}
|
|
%{nodejs_sitelib}/uglify-js
|
|
%{_bindir}/uglifyjs
|
|
|
|
|
|
%changelog |