%{?nodejs_find_provides_and_requires} Name: nodejs-fstream Version: 1.0.11 Release: 1 Summary: Advanced file system stream objects for Node.js License: BSD URL: https://github.com/isaacs/fstream Source0: https://github.com/isaacs/fstream/archive/v%{version}.tar.gz Source1: examples-%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging npm(graceful-fs) npm(inherits) npm(mkdirp) npm(rimraf) BuildRequires: npm(tap) %description Provides advanced file system stream objects for Node.js. These objects are like FS streams, but with stat on them, and support directories and symbolic links, as well as normal files. Also, you can use them to set the stats on a file, even if you don't change its contents, or to create a symlink, etc. %prep %autosetup -n fstream-%{version} %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/fstream cp -pr package.json fstream.js lib %{buildroot}%{nodejs_sitelib}/fstream %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %{_bindir}/tap examples/*.js %files %doc README.md examples %license LICENSE %{nodejs_sitelib}/fstream %changelog * Thu Aug 20 2020 Anan Fu - 1.0.11-1 - package init