nodejs-gaze/nodejs-gaze.spec

48 lines
1.4 KiB
RPMSpec
Raw Normal View History

2020-08-29 10:56:23 +08:00
%global enable_tests 1
Name: nodejs-gaze
Version: 0.5.1
Release: 1
Summary: A globbing fs.watch wrapper built from parts of other watch libraries
License: MIT
URL: https://github.com/shama/gaze
Source0: http://registry.npmjs.org/gaze/-/gaze-%{version}.tgz
Source1: tests-%{version}.tar.bz2
Source2: https://raw.githubusercontent.com/shama/gaze/dad5345a2876346fe49a68ee6e4db34205680798/Gruntfile.js
Source10: dl-tests.sh
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(async) npm(globule) npm(grunt) npm(grunt-cli) npm(grunt-contrib-nodeunit)
BuildRequires: npm(nodeunit) npm(rimraf)
%endif
%description
This Node.js module provides a globbing fs.watch wrapper built from the best
parts of other fine watch libraries: speedy data behavior from chokidar, the
API interface from watch, and file globbing using glob.
%prep
%setup -q -n package
%setup -q -T -D -a 1 -n package
cp -p %{SOURCE2} .
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/gaze
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/gaze
%if 0%{?enable_tests}
%check
/usr/bin/grunt nodeunit -v
%endif
%files
%doc LICENSE-MIT README.md
%{nodejs_sitelib}/gaze
%changelog
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 0.5.1-1
- Package init