diff --git a/exit-0.1.2.tgz b/exit-0.1.2.tgz new file mode 100644 index 0000000..3562c48 Binary files /dev/null and b/exit-0.1.2.tgz differ diff --git a/nodejs-exit.spec b/nodejs-exit.spec new file mode 100644 index 0000000..a5e47fa --- /dev/null +++ b/nodejs-exit.spec @@ -0,0 +1,43 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +Name: nodejs-exit +Version: 0.1.2 +Release: 1 +Summary: A process.exit alternative that ensures STDIO are fully drained before exiting +License: MIT +URL: https://github.com/cowboy/node-exit +Source0: http://registry.npmjs.org/exit/-/exit-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(grunt-cli) npm(grunt-contrib-nodeunit) npm(grunt-contrib-watch) npm(which) +%endif +%description +%{summary}. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/exit +cp -pr package.json lib/ \ + %{buildroot}%{nodejs_sitelib}/exit +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +/usr/bin/grunt nodeunit -v +%endif + +%files +%doc LICENSE-MIT README.md +%{nodejs_sitelib}/exit + +%changelog +* Thu Aug 20 2020 Anan Fu - 0.1.2-1 +- package init diff --git a/nodejs-exit.yaml b/nodejs-exit.yaml new file mode 100644 index 0000000..e03abf8 --- /dev/null +++ b/nodejs-exit.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: cowboy/node-exit +tag_prefix: "^v" +seperator: "."