!1 Add package nodejs-mock-fs

Merge pull request !1 from 王歌/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 12:57:09 +08:00 committed by Gitee
commit 9d649462be
3 changed files with 45 additions and 0 deletions

BIN
nodejs-mock-fs-4.8.0.tar.gz Normal file

Binary file not shown.

41
nodejs-mock-fs.spec Normal file
View File

@ -0,0 +1,41 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-mock-fs
Version: 4.8.0
Release: 1
Summary: A configurable mock file system
License: MIT
URL: https://www.npmjs.com/package/mock-fs
Source0: https://github.com/tschaub/mock-fs/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(mocha) npm(chai) npm(semver)
%description
The mock-fs module allows Node's built-in fs module to be backed
temporarily by an in-memory, mock file system. This lets you run
tests against a set of mock files and directories instead of lugging
around a bunch of test fixtures.
%prep
%autosetup -p 1 -n mock-fs-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/mock-fs
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/mock-fs
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha --recursive test
%files
%doc readme.md changelog.md
%license license.md
%{nodejs_sitelib}/mock-fs
%changelog
* Thu Aug 20 2020 Ge Wang <wangge20@huawei.com> - 4.8.0-1
- Package init

4
nodejs-mock-fs.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: tschaub/mock-fs
tag_prefix: "v"
seperator: "."