[nodejs-supervisor] Initial import (#917138).

tdawson tdawson at fedoraproject.org
Wed May 29 17:19:51 UTC 2013


commit 8719f26bdd348a271d2b0e84884afe2e6c1b88da
Author: Troy Dawson <tdawson at redhat.com>
Date:   Wed May 29 12:19:36 2013 -0500

    Initial import (#917138).

 .gitignore                |    1 +
 nodejs-supervisor-LICENSE |   27 ++++++++++++++++
 nodejs-supervisor.spec    |   73 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6578cc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/supervisor-0.5.2.tgz
diff --git a/nodejs-supervisor-LICENSE b/nodejs-supervisor-LICENSE
new file mode 100644
index 0000000..c1ab769
--- /dev/null
+++ b/nodejs-supervisor-LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) Isaac Z. Schlueter, Ian Young, and Other Contributors
+All rights reserved.
+
+The BSD License
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/nodejs-supervisor.spec b/nodejs-supervisor.spec
new file mode 100644
index 0000000..271dd6e
--- /dev/null
+++ b/nodejs-supervisor.spec
@@ -0,0 +1,73 @@
+%global npm_name supervisor
+
+Summary:       A supervisor program for running nodejs programs
+Name:          nodejs-%{npm_name}
+Version:       0.5.2
+Release:       2%{?dist}
+Group:         System Environment/Libraries
+License:       MIT
+URL:           https://github.com/isaacs/node-supervisor
+Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
+# They have added a LICENSE file, but not updated the package
+# We are including their LICENSE file until the next version, when
+#   the file should be in the tarball
+# https://raw.github.com/isaacs/node-supervisor/master/LICENSE
+SOURCE1:       nodejs-supervisor-LICENSE
+BuildRequires: nodejs-devel
+BuildRequires: txt2man
+BuildArch:     noarch
+
+%description
+A little supervisor script for nodejs. It runs your program,
+and watches for code changes, so you can have hot-code 
+reloading like behavior, without worrying about memory leaks 
+and making sure you clean up all the inter-module references, 
+and without a whole new require system. 
+
+%prep
+%setup -q -n package
+
+cp -pr %{SOURCE1} LICENSE
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
+cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
+
+# Setup Binaries
+mkdir %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/%{npm_name}/lib/cli-wrapper.js %{buildroot}%{_bindir}/node-supervisor
+ln -s %{nodejs_sitelib}/%{npm_name}/lib/cli-wrapper.js %{buildroot}%{_bindir}/supervisor
+
+# Create man pages
+mkdir -p %{buildroot}%{_mandir}/man1
+%{buildroot}%{nodejs_sitelib}/%{npm_name}/lib/cli-wrapper.js -h > helpfile
+txt2man -P node-supervisor -t node-supervisor -r %{version} helpfile > %{buildroot}%{_mandir}/man1/node-supervisor.1
+txt2man -P supervisor -t supervisor -r %{version} helpfile > %{buildroot}%{_mandir}/man1/supervisor.1
+rm -f helpfile
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{npm_name}
+%{_bindir}/node-supervisor
+%{_bindir}/supervisor
+%{_mandir}/man1/*
+
+%changelog
+* Tue May 28 2013 Troy Dawson <tdawson at redhat.com> - 0.5.2-2
+- Fixed Summary and Description spelling errors
+- Added BSD License file, from upstream
+- Create man pages
+
+* Fri Mar 01 2013 Troy Dawson <tdawson at redhat.com> - 0.5.2-1
+- Update to 0.5.2
+- Update spec to Fedora nodejs standards
+
+* Wed Sep 05 2012 Troy Dawson <tdawson at redhat.com> - 0.4.1-2
+- Rewored spec file using tchor template
+
+* Wed Sep 05 2012 Troy Dawson <tdawson at redhat.com> - 0.4.1-1
+- Initial build
+
diff --git a/sources b/sources
index e69de29..2e0f0be 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+65c1b13ed1d1838e9adf925c6131595a  supervisor-0.5.2.tgz


More information about the scm-commits mailing list