nodejs-fstream/nodejs-fstream.spec

45 lines
1.4 KiB
RPMSpec
Raw Normal View History

2020-08-28 17:06:47 +08:00
%{?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
2020-09-07 20:22:30 +08:00
Source0: https://github.com/isaacs/fstream/archive/v%{version}.tar.gz
2020-08-28 17:06:47 +08:00
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
2020-09-07 20:22:30 +08:00
%autosetup -n fstream-%{version}
2020-08-28 17:06:47 +08:00
%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 <fuanan3@huawei.com> - 1.0.11-1
- package init