nodejs-closure-compiler/nodejs-closure-compiler.spec
2020-08-20 10:32:03 +08:00

38 lines
1.1 KiB
RPMSpec

Name: nodejs-closure-compiler
Version: 0.2.10
Release: 1
Summary: Bindings to Google's Closure Compiler for Node.js
License: MIT
URL: https://github.com/tim-smart/node-closure
Source0: http://registry.npmjs.org/closure-compiler/-/closure-compiler-%{version}.tgz
Patch0: nodejs-closure-compiler-invoke.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
Requires: closure-compiler
BuildRequires: nodejs-packaging coffee-script
%description
A wrapper to the Google Closure compiler tool. It runs the jar file
in a child process and returns the results in a callback.
%prep
%setup -q -n package
%patch0 -p1
%nodejs_fixdep -r google-closure-compiler
rm -rf node_modules lib/*
%build
cake build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/closure-compiler
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/closure-compiler
%nodejs_symlink_deps
%files
%doc LICENSE.txt README.md
%{nodejs_sitelib}/closure-compiler
%changelog
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 0.2.10-1
- package init