package init

This commit is contained in:
chengzihan2 2020-09-11 21:54:19 +08:00
parent 4163b9d3d0
commit 85d5b2fddd
3 changed files with 49 additions and 0 deletions

45
nodejs-monocle.spec Normal file
View File

@ -0,0 +1,45 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-monocle
Version: 1.1.51
Release: 1
Summary: A tool for watching directories for file changes
License: BSD
URL: https://github.com/samccone/monocle
Source0: https://github.com/samccone/monocle/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha) npm(readdirp)
%endif
%description
%{summary}.
%prep
%autosetup -n monocle-1.1.51
find . -type f -exec chmod -x '{}' \;
%nodejs_fixdep readdirp '2.x'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/monocle
cp -pr package.json monocle.js \
%{buildroot}%{nodejs_sitelib}/monocle
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
/usr/bin/mocha test -R spec -t 60000
%endif
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/monocle
%changelog
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.1.51-1
- Package init

4
nodejs-monocle.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: samccone/monocle
tag_pattern: "^v"
seperator: "."

BIN
v1.1.51.tar.gz Normal file

Binary file not shown.