Files
mocha/mocha.spec

84 lines
3.1 KiB
RPMSpec

#
# spec file for package mocha
#
# 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: mocha
Version: 2.4.5
Release: 0
Summary: Simple, flexible, fun test framework
License: MIT and BSD and ISC and SUSE-WTFPL-2.0 and X11
Group: Development/Languages/NodeJS
Url: https://github.com/mochajs/mocha
Source0: %{name}.json
# DO NOT CHANGE MANUALLY START
# pasted from %{name}.source generated by nova
Source1: http://registry.npmjs.org/commander/-/commander-2.3.0.tgz
Source2: http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
Source3: http://registry.npmjs.org/ms/-/ms-0.7.1.tgz
Source4: http://registry.npmjs.org/debug/-/debug-2.2.0.tgz
Source5: http://registry.npmjs.org/diff/-/diff-1.4.0.tgz
Source6: http://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz
Source7: http://registry.npmjs.org/lru-cache/-/lru-cache-2.0.0.tgz
Source8: http://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz
Source9: http://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
Source10: http://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.3.tgz
Source11: http://registry.npmjs.org/inherits/-/inherits-2.0.0.tgz
Source12: http://registry.npmjs.org/glob/-/glob-3.2.3.tgz
Source13: http://registry.npmjs.org/growl/-/growl-1.8.1.tgz
Source14: http://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz
Source15: http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
Source16: http://registry.npmjs.org/jade/-/jade-0.26.3.tgz
Source17: http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
Source18: http://registry.npmjs.org/supports-color/-/supports-color-1.2.0.tgz
Source19: http://registry.npmjs.org/mocha/-/mocha-2.4.5.tgz
# DO NOT CHANGE MANUALLY END
BuildRequires: fdupes
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{nodejs_find_provides_and_requires}
%description
Mocha is a simple, flexible, fun JavaScript test
framework for node.js and the browser.
%prep
%nodejs_prep
%build
#nothing to do
%install
%nodejs_mkdir
%nodejs_copy
%nodejs_filelist
# make your changes here, suppose:
# %{buildroot}%{nodejs_sitelib}/%{name} exists
# you can copy, modify stuff, like:
# ln -sf %{nodejs_sitelib}/gulp/bin/gulp \
# %{buildroot}%{_bindir}/gulp
# but your changes won't be tracked by files.lst
# so write them manually
rm -rf %{buildroot}%{nodejs_sitelib}/%{name}/bin/.eslintrc
%fdupes %{buildroot}
%files -f %{_sourcedir}/files.lst
%defattr(-,root,root,-)
%changelog