packages: nodejs-abbrev/nodejs-abbrev.spec (NEW), nodejs-block-stream/nodej...

glen glen at pld-linux.org
Wed Jan 25 23:44:50 CET 2012


Author: glen                         Date: Wed Jan 25 22:44:50 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial node pkgs for npm deps
  based on specs from http://nodejs.tchol.org/ repo

---- Files affected:
packages/nodejs-abbrev:
   nodejs-abbrev.spec (NONE -> 1.1)  (NEW)
packages/nodejs-block-stream:
   nodejs-block-stream.spec (NONE -> 1.1)  (NEW)
packages/nodejs-fast-list:
   nodejs-fast-list.spec (NONE -> 1.1)  (NEW)
packages/nodejs-fstream:
   nodejs-fstream.spec (NONE -> 1.1)  (NEW)
packages/nodejs-graceful-fs:
   nodejs-graceful-fs.spec (NONE -> 1.1)  (NEW)
packages/nodejs-inherits:
   nodejs-inherits.spec (NONE -> 1.1)  (NEW)
packages/nodejs-ini:
   nodejs-ini.spec (NONE -> 1.1)  (NEW)
packages/nodejs-lru-cache:
   nodejs-lru-cache.spec (NONE -> 1.1)  (NEW)
packages/nodejs-minimatch:
   nodejs-minimatch.spec (NONE -> 1.1)  (NEW)
packages/nodejs-mkdirp:
   nodejs-mkdirp.spec (NONE -> 1.1)  (NEW)
packages/nodejs-node-uuid:
   nodejs-node-uuid.spec (NONE -> 1.1)  (NEW)
packages/nodejs-nopt:
   nodejs-nopt.spec (NONE -> 1.1)  (NEW)
packages/nodejs-proto-list:
   nodejs-proto-list.spec (NONE -> 1.1)  (NEW)
packages/nodejs-read:
   nodejs-read.spec (NONE -> 1.1)  (NEW)
packages/nodejs-request:
   nodejs-request.spec (NONE -> 1.1)  (NEW)
packages/nodejs-rimraf:
   nodejs-rimraf.spec (NONE -> 1.1)  (NEW)
packages/nodejs-semver:
   nodejs-semver.spec (NONE -> 1.1)  (NEW)
packages/nodejs-slide-flow-control:
   nodejs-slide-flow-control.spec (NONE -> 1.1)  (NEW)
packages/nodejs-tar:
   nodejs-tar.spec (NONE -> 1.1)  (NEW)
packages/nodejs-which:
   nodejs-which.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nodejs-abbrev/nodejs-abbrev.spec
diff -u /dev/null packages/nodejs-abbrev/nodejs-abbrev.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-abbrev/nodejs-abbrev.spec	Wed Jan 25 23:44:45 2012
@@ -0,0 +1,46 @@
+# $Revision$, $Date$
+%define		pkg	abbrev
+Summary:	Abbreviation calculator for Node.js
+Name:		nodejs-%{pkg}
+Version:	1.0.3
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/abbrev-js
+Source0:	http://registry.npmjs.org/abbrev/-/abbrev-%{version}.tgz
+# Source0-md5:	1f71ac1c233f52712018b60f9f926239
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Calculate the set of unique abbreviations for a given set of strings.
+
+%prep
+%setup -qc
+mv package/* .
+
+%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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:45  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-block-stream/nodejs-block-stream.spec
diff -u /dev/null packages/nodejs-block-stream/nodejs-block-stream.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-block-stream/nodejs-block-stream.spec	Wed Jan 25 23:44:45 2012
@@ -0,0 +1,47 @@
+# $Revision$, $Date$
+%define		pkg	block-stream
+Summary:	A stream of blocks
+Name:		nodejs-%{pkg}
+Version:	0.0.4
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/block-stream
+Source0:	http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5:	42b1d5ae4f8f464e571728005e130dc2
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+Requires:	nodejs-inherits
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A stream of blocks.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:45  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-fast-list/nodejs-fast-list.spec
diff -u /dev/null packages/nodejs-fast-list/nodejs-fast-list.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-fast-list/nodejs-fast-list.spec	Wed Jan 25 23:44:45 2012
@@ -0,0 +1,46 @@
+# $Revision$, $Date$
+%define		pkg	fast-list
+Summary:	A fast linked list
+Name:		nodejs-%{pkg}
+Version:	1.0.2
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/fast-list
+Source0:	http://registry.npmjs.org/fast-list/-/%{pkg}-%{version}.tgz
+# Source0-md5:	a0b5d56e6d24aecf328f1d40069b532b
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A fast linked list. (good for queues, stacks, etc.)
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:45  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-fstream/nodejs-fstream.spec
diff -u /dev/null packages/nodejs-fstream/nodejs-fstream.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-fstream/nodejs-fstream.spec	Wed Jan 25 23:44:46 2012
@@ -0,0 +1,54 @@
+# $Revision$, $Date$
+%define		pkg	fstream
+Summary:	Advanced file system stream things
+Name:		nodejs-%{pkg}
+Version:	0.1.11
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/fstream
+Source0:	http://registry.npmjs.org/fstream/-/%{pkg}-%{version}.tgz
+# Source0-md5:	c1614bbc726a189503a113bf51fb9c1d
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+Requires:	nodejs-graceful-fs
+Requires:	nodejs-inherits
+Requires:	nodejs-mkdirp
+Requires:	nodejs-rimraf
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Advanced file system stream things.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr lib %{pkg}.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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:46  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-graceful-fs/nodejs-graceful-fs.spec
diff -u /dev/null packages/nodejs-graceful-fs/nodejs-graceful-fs.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-graceful-fs/nodejs-graceful-fs.spec	Wed Jan 25 23:44:46 2012
@@ -0,0 +1,48 @@
+# $Revision$, $Date$
+%define		pkg	graceful-fs
+Summary:	'fs' module with incremental back-off on EMFILE
+Name:		nodejs-%{pkg}
+Version:	1.1.4
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/node-graceful-fs
+Source0:	http://registry.npmjs.org/graceful-fs/-/%{pkg}-%{version}.tgz
+# Source0-md5:	21817800c3cf55b78c710063821fe5d6
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Just like node.js' fs module, but it does an incremental back-off when
+EMFILE is encountered. Useful in asynchronous situations where one
+needs to try to open lots and lots of files.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -p %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:46  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-inherits/nodejs-inherits.spec
diff -u /dev/null packages/nodejs-inherits/nodejs-inherits.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-inherits/nodejs-inherits.spec	Wed Jan 25 23:44:46 2012
@@ -0,0 +1,46 @@
+# $Revision$, $Date$
+%define		pkg	inherits
+Summary:	A tiny simple way to do classic inheritance in js
+Name:		nodejs-%{pkg}
+Version:	1.0.0
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/inherits
+Source0:	http://registry.npmjs.org/inherits/-/%{pkg}-%{version}.tgz
+# Source0-md5:	ec96e0e077a0320f598975bae6000316
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A tiny simple way to do classic inheritance in js.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:46  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-ini/nodejs-ini.spec
diff -u /dev/null packages/nodejs-ini/nodejs-ini.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-ini/nodejs-ini.spec	Wed Jan 25 23:44:46 2012
@@ -0,0 +1,55 @@
+# $Revision$, $Date$
+%define		git_hash c730e12
+%define		pkg	ini
+Summary:	An INI parser/serializer for node.js
+Name:		nodejs-%{pkg}
+Version:	1.0.1
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/ini
+# download from https://github.com/isaacs/ini/tarball/%{version}
+Source0:	isaacs-%{pkg}-%{version}-0-g%{git_hash}.tar.gz
+# Source0-md5:	07cb2acef7257f1431d5f0bd07365eee
+#BuildRequires:  nodejs-tap
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An INI file parser and serializer for node.js.
+
+%prep
+%setup -qc
+mv isaacs-%{pkg}-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}
+cp -p %{pkg}.js $RPM_BUILD_ROOT%{nodejs_libdir}
+
+# We currently don't run tests because I'd have to file another ten or
+# so review reuqests for the node.js TAP testing framework and methinks there
+# are enough of those for now.  ;-)
+##%%check
+##tap test/*.js
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}.js
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:46  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-lru-cache/nodejs-lru-cache.spec
diff -u /dev/null packages/nodejs-lru-cache/nodejs-lru-cache.spec:1.1
--- /dev/null	Wed Jan 25 23:44:50 2012
+++ packages/nodejs-lru-cache/nodejs-lru-cache.spec	Wed Jan 25 23:44:46 2012
@@ -0,0 +1,48 @@
+# $Revision$, $Date$
+%define		git_hash 83b610b
+%define		pkg	lru-cache
+Summary:	A cache object that deletes the least recently used items
+Name:		nodejs-%{pkg}
+Version:	1.0.4
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/node-lru-cache
+# download from https://github.com/isaacs/node-lru-cache/tarball/%%{version}
+Source0:	isaacs-node-%{pkg}-%{version}-0-g%{git_hash}.tar.gz
+# Source0-md5:	44deb216a31c660704f130671025be23
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A cache object that deletes the least recently used items.
+
+%prep
+%setup -qc
+mv isaacs-node-%{pkg}-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}
+cp -p lib/%{pkg}.js $RPM_BUILD_ROOT%{nodejs_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%{nodejs_libdir}/%{pkg}.js
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:46  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-minimatch/nodejs-minimatch.spec
diff -u /dev/null packages/nodejs-minimatch/nodejs-minimatch.spec:1.1
--- /dev/null	Wed Jan 25 23:44:51 2012
+++ packages/nodejs-minimatch/nodejs-minimatch.spec	Wed Jan 25 23:44:47 2012
@@ -0,0 +1,50 @@
+# $Revision$, $Date$
+%define		git_hash 6e8c1c6
+%define		pkg	minimatch
+Summary:	JavaScript glob matcher
+Name:		nodejs-%{pkg}
+Version:	0.0.4
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/isaacs/minimatch
+# download from https://github.com/isaacs/%{pkg}/tarball/%%{version}
+Source0:	isaacs-%{pkg}-%{version}-0-g%{git_hash}.tar.gz
+# Source0-md5:	87077d75141c301d4b6a4e0af68276a1
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+Requires:	nodejs-lru-cache
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Converts glob expressions to JavaScript "RegExp" objects.
+
+%prep
+%setup -qc
+mv isaacs-%{pkg}-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}
+cp -p %{pkg}.js $RPM_BUILD_ROOT%{nodejs_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%doc test/
+%{nodejs_libdir}/%{pkg}.js
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:47  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-mkdirp/nodejs-mkdirp.spec
diff -u /dev/null packages/nodejs-mkdirp/nodejs-mkdirp.spec:1.1
--- /dev/null	Wed Jan 25 23:44:51 2012
+++ packages/nodejs-mkdirp/nodejs-mkdirp.spec	Wed Jan 25 23:44:47 2012
@@ -0,0 +1,50 @@
+# $Revision$, $Date$
+%define		pkg	mkdirp
+Summary:	Recursively mkdir, like "mkdir -p"
+Name:		nodejs-%{pkg}
+Version:	0.3.0
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		https://github.com/substack/node-mkdirp
+Source0:	http://registry.npmjs.org/mkdirp/-/%{pkg}-%{version}.tgz
+# Source0-md5:	b9ff20bbce98ec1d1a1678d76dac4586
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Recursively mkdir, like "mkdir -p".
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.markdown
+%{nodejs_libdir}/%{pkg}
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/25 22:44:47  glen
+- initial node pkgs for npm deps
+  based on specs from http://nodejs.tchol.org/ repo

================================================================
Index: packages/nodejs-node-uuid/nodejs-node-uuid.spec
diff -u /dev/null packages/nodejs-node-uuid/nodejs-node-uuid.spec:1.1
--- /dev/null	Wed Jan 25 23:44:51 2012
+++ packages/nodejs-node-uuid/nodejs-node-uuid.spec	Wed Jan 25 23:44:47 2012
@@ -0,0 +1,48 @@
+# $Revision$, $Date$
+%define		pkg	node-uuid
+Summary:	RFC4122v4 UUID generator for Node.js
+Name:		nodejs-%{pkg}
+Version:	1.3.3
+Release:	1
+License:	MIT or GPL+
+Group:		Development/Libraries
+URL:		https://github.com/broofa/node-uuid
+Source0:	http://registry.npmjs.org/node-uuid/-/%{pkg}-%{version}.tgz
+# Source0-md5:	d0a587ef1e9e1ca82d526c3322720690
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+Obsoletes:	nodejs-uuid < 1.2.0-2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple, fast generation of RFC4122v4 and non-RFC compact UUIDs. It
+runs in node.js and many browsers.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -p uuid.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE.md
+%{nodejs_libdir}/%{pkg}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list