Files
tern/tern.spec
2017-06-26 15:02:17 +00:00

98 lines
4.2 KiB
RPMSpec

#
# spec file for tern
#
# Copyright (c) 2016 SUSE LINUX 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/
#
Name: tern
Version: 0.21.0
Release: 0%{?dist}
Summary: A stand-alone code-analysis engine for JavaScript
License: MIT and ISC
Group: Development/Languages/NodeJS
URL: http://ternjs.net/
Source0: %{name}.json
Source1: http://registry.npmjs.org/acorn/-/acorn-4.0.11.tgz
Source2: http://registry.npmjs.org/tapable/-/tapable-0.2.6.tgz
Source3: http://registry.npmjs.org/prr/-/prr-0.0.0.tgz
Source4: http://registry.npmjs.org/errno/-/errno-0.1.4.tgz
Source5: http://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz
Source6: http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz
Source7: http://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz
Source8: http://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz
Source9: http://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz
Source10: http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz
Source11: http://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz
Source12: http://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz
Source13: http://registry.npmjs.org/memory-fs/-/memory-fs-0.3.0.tgz
Source14: http://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz
Source15: http://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz
Source16: http://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-2.3.0.tgz
Source17: http://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz
Source18: http://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz
Source19: http://registry.npmjs.org/once/-/once-1.4.0.tgz
Source20: http://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz
Source21: http://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz
Source22: http://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz
Source23: http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz
Source24: http://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz
Source25: http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz
Source26: http://registry.npmjs.org/glob/-/glob-7.1.1.tgz
Source27: http://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz
Source28: http://registry.npmjs.org/tern/-/tern-0.21.0.tgz
BuildRequires: fdupes
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
PreReq: nodejs(engine) >= 0.10.0
AutoReqProv: no
%description
Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be
used with a code editor plugin to enhance the editor's support for intelligent
JavaScript editing.
%prep
%nodejs_prep
%build
# nothing to do
%install
%nodejs_mkdir
%nodejs_copy
%nodejs_build
# prvent collisions
rm -rf %{buildroot}%{_bindir}/acorn
rm -rf %{buildroot}%{_bindir}/condense
%nodejs_filelist
# fix files.lst so /usr/bin is not owned
sed -i.bak '\#dir\s/usr/bin#d' %{_sourcedir}/files.lst
%nodejs_fixdep --drop minimatch
%fdupes %{buildroot}
%files -f %{_sourcedir}/files.lst
%defattr(-,root,root,-)
%dir %{nodejs_sitelib}
%attr(0755,root,root) %{nodejs_sitelib}/%{name}/node_modules/enhanced-resolve/node_modules/memory-fs/node_modules/errno/cli.js
%attr(0755,root,root) %{nodejs_sitelib}/%{name}/node_modules/enhanced-resolve/node_modules/memory-fs/node_modules/errno/build.js
%attr(0755,root,root) %{nodejs_sitelib}/%{name}/node_modules/acorn/bin/acorn
%changelog