diff --git a/nodejs-monocle.spec b/nodejs-monocle.spec new file mode 100644 index 0000000..71225a1 --- /dev/null +++ b/nodejs-monocle.spec @@ -0,0 +1,45 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +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 - 1.1.51-1 +- Package init diff --git a/nodejs-monocle.yaml b/nodejs-monocle.yaml new file mode 100644 index 0000000..3b121f0 --- /dev/null +++ b/nodejs-monocle.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: samccone/monocle +tag_pattern: "^v" +seperator: "." diff --git a/v1.1.51.tar.gz b/v1.1.51.tar.gz new file mode 100644 index 0000000..6df97f7 Binary files /dev/null and b/v1.1.51.tar.gz differ