nodejs-fstream/nodejs-fstream.spec
houyingchao 0a784476d9 Upgrade to 1.0.12 version
(cherry picked from commit 44926ccdd1bc74abadf95c2ed10fc0b20f1b3815)
2022-03-09 14:41:42 +08:00

48 lines
1.4 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
Name: nodejs-fstream
Version: 1.0.12
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
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
* Sat Mar 05 2022 houyingchao <houyingchao@huawei.com> - 1.0.12-1
- Upgrade to 1.0.12 version
- Fix CVE-2019-13173
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.0.11-1
- package init