diff --git a/nodejs-mock-fs-4.12.0.tar.gz b/nodejs-mock-fs-4.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb6fc5a986234a84512ff92fa5321a5d41d6a458 Binary files /dev/null and b/nodejs-mock-fs-4.12.0.tar.gz differ diff --git a/nodejs-mock-fs-4.8.0.tar.gz b/nodejs-mock-fs-4.8.0.tar.gz deleted file mode 100644 index f927df796c53152ae9019f39694fedcf75adb319..0000000000000000000000000000000000000000 Binary files a/nodejs-mock-fs-4.8.0.tar.gz and /dev/null differ diff --git a/nodejs-mock-fs.spec b/nodejs-mock-fs.spec index a31915af59baa16cc6e6ac2ced3c1ed43ec1180f..096b04fb47dc7a190d96b78f9ec679a54a57fe23 100644 --- a/nodejs-mock-fs.spec +++ b/nodejs-mock-fs.spec @@ -1,41 +1,58 @@ %{?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) + +Name: nodejs-mock-fs +Version: 4.12.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) +BuildRequires: npm(chai) +BuildRequires: 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 Dec 31 2020 Ge Wang - 4.12.0-1 +- Update to 4.12.0 + * Thu Aug 20 2020 Ge Wang - 4.8.0-1 - Package init