[packages/nodejs-daemon] up to 1.1.0. now noarch

glen glen at pld-linux.org
Sun Apr 7 17:14:46 CEST 2013


commit 67bf99bc778f8adc9005692e390442516bdb8fad
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 7 18:14:35 2013 +0300

    up to 1.1.0. now noarch

 nodejs-daemon.spec | 34 ++++++++--------------------------
 1 file changed, 8 insertions(+), 26 deletions(-)
---
diff --git a/nodejs-daemon.spec b/nodejs-daemon.spec
index 6132cba..53622dc 100644
--- a/nodejs-daemon.spec
+++ b/nodejs-daemon.spec
@@ -1,48 +1,33 @@
 %define		pkg	daemon
 Summary:	Add-on for creating *nix daemons
 Name:		nodejs-%{pkg}
-Version:	0.5.1
-Release:	4
+Version:	1.1.0
+Release:	1
 License:	MIT
 Group:		Development/Libraries
 URL:		https://github.com/indexzero/daemon.node
 Source0:	http://registry.npmjs.org/daemon/-/%{pkg}-%{version}.tgz
-# Source0-md5:	31730d0308efdc9435440e1880e82b9d
-BuildRequires:	nodejs-devel
+# Source0-md5:	58e1b7b90b453eb610dd4c85de800e5d
 BuildRequires:	rpmbuild(macros) >= 1.634
-# due library being versioned
-%requires_eq	nodejs
-Requires:	nodejs
+Requires:	nodejs >= 0.8
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # redefine for arch specific
 %define		nodejs_libdir	%{_libdir}/node
 
 %description
-A C++ add-on for Node.js to enable simple daemons in JavaScript plus
-some useful wrappers in JavaScript.
+Turn a node script into a daemon.
 
 %prep
 %setup -qc
 mv package/* .
 
-cat > install <<EOF
-#!/bin/sh
-exit 0
-EOF
-
-%build
-node-waf configure build
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
-cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
-
-version=$(node -v)
-install -p build/Release/daemon.node $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}/lib/daemon.$version.node
-install -p install $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr index.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -55,9 +40,6 @@ rm -rf $RPM_BUILD_ROOT
 %doc README.md LICENSE
 %dir %{nodejs_libdir}/%{pkg}
 %{nodejs_libdir}/%{pkg}/package.json
-%dir %{nodejs_libdir}/%{pkg}/lib
-%{nodejs_libdir}/%{pkg}/lib/daemon.js
-%attr(755,root,root) %{nodejs_libdir}/%{pkg}/lib/daemon.v*.node
-%attr(755,root,root) %{nodejs_libdir}/%{pkg}/install
+%{nodejs_libdir}/%{pkg}/index.js
 
 %{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-daemon.git/commitdiff/67bf99bc778f8adc9005692e390442516bdb8fad



More information about the pld-cvs-commit mailing list