From 00a688ffc2a2ebf5a58348dd72da12ed83b68929 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 10:24:51 +0000 Subject: import rh-nodejs6-nodejs-signal-exit-3.0.0-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c801872 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/signal-exit-3.0.0.tgz diff --git a/.rh-nodejs6-nodejs-signal-exit.metadata b/.rh-nodejs6-nodejs-signal-exit.metadata new file mode 100644 index 0000000..23913b2 --- /dev/null +++ b/.rh-nodejs6-nodejs-signal-exit.metadata @@ -0,0 +1 @@ +3c0543b65d7b4fbc60b6cd94593d9bf436739be8 SOURCES/signal-exit-3.0.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-signal-exit.spec b/SPECS/nodejs-signal-exit.spec new file mode 100644 index 0000000..9220e40 --- /dev/null +++ b/SPECS/nodejs-signal-exit.spec @@ -0,0 +1,67 @@ +%{?scl:%scl_package nodejs-signal-exit} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global packagename signal-exit +%global enable_tests 0 +# tests disabled in order to bootstrap newer npm(tap) + +Name: %{?scl_prefix}nodejs-signal-exit +Version: 3.0.0 +Release: 2%{?dist} +Summary: When you want to fire an event no matter how a process exits + +License: ISC +URL: https://github.com/bcoe/signal-exit.git +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: %{?scl_prefix}nodejs-devel +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(tap) +%endif + +%description +When you want to fire an event no matter how a process exits. + +%prep +%setup -q -n package + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +#%check +#%nodejs_symlink_deps --check +#%{__nodejs} -e 'require("./")' +#%if 0%{?enable_tests} +#%{_bindir}/tap --timeout=240 ./test/*.js +#%else +#%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" +#%endif + +%files +%{!?_licensedir:%global license %doc} +%doc *.md +%license LICENSE.txt +%{nodejs_sitelib}/%{packagename} + +%changelog +* Thu Sep 15 2016 Zuzana Svetlikova - 3.0.0-2 +- Built for RHSCL + +* Wed Jul 13 2016 Jared Smith - 3.0.0-1 +- Update to upstream 3.0.0 release + +* Tue Oct 27 2015 Jared Smith - 2.1.2-1 +- Initial packaging +- Disable tests until we can bootstrap a newer npm(tap)