nodejs-gaze/nodejs-gaze.spec

51 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-09-08 16:10:23 +08:00
%{?nodejs_find_provides_and_requires}
2020-08-29 10:56:23 +08:00
%global enable_tests 1
2020-09-08 16:10:23 +08:00
%global commitid dad5345a2876346fe49a68ee6e4db34205680798
2020-08-29 10:56:23 +08:00
Name: nodejs-gaze
2020-09-08 16:10:23 +08:00
Version: 0.5.2
2020-08-29 10:56:23 +08:00
Release: 1
Summary: A globbing fs.watch wrapper built from parts of other watch libraries
License: MIT
URL: https://github.com/shama/gaze
2020-09-08 16:10:23 +08:00
Source0: https://github.com/shama/gaze/archive/v0.5.2.tar.gz
Source1: https://raw.githubusercontent.com/shama/gaze/%{commitid}/Gruntfile.js
2020-08-29 10:56:23 +08:00
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
2020-09-08 16:10:23 +08:00
2020-08-29 10:56:23 +08:00
%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
2020-09-08 16:10:23 +08:00
%setup -q -n gaze-0.5.2
cp -p %{SOURCE1} .
%nodejs_fixdep globule '~0.1'
2020-08-29 10:56:23 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/gaze
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/gaze
2020-09-08 16:10:23 +08:00
%nodejs_symlink_deps
2020-08-29 10:56:23 +08:00
2020-09-08 16:10:23 +08:00
%if 0%{?enable_tests}
2020-08-29 10:56:23 +08:00
%check
2020-09-08 16:10:23 +08:00
%nodejs_symlink_deps --check
/usr/bin/grunt nodeunit -v --force
2020-08-29 10:56:23 +08:00
%endif
%files
%doc LICENSE-MIT README.md
%{nodejs_sitelib}/gaze
%changelog
2020-09-08 16:10:23 +08:00
* Tue Sep 8 2020 yaokai <yaokai13@huawei.com> - 0.5.2-1
- package init