packages: nodejs-ansi/nodejs-ansi.spec (NEW)=?UTF-8?Q?=20?=- new, based on src.rpm from...
glen
glen at pld-linux.org
Fri Jun 15 23:13:18 CEST 2012
Author: glen Date: Fri Jun 15 21:13:18 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new,
based on src.rpm from http://nodejs.tchol.org/ repo
---- Files affected:
packages/nodejs-ansi:
nodejs-ansi.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nodejs-ansi/nodejs-ansi.spec
diff -u /dev/null packages/nodejs-ansi/nodejs-ansi.spec:1.1
--- /dev/null Fri Jun 15 23:13:18 2012
+++ packages/nodejs-ansi/nodejs-ansi.spec Fri Jun 15 23:13:13 2012
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+Summary: Node.js native addon build tool
+Name: nodejs-ansi
+Version: 0.1.2
+Release: 1
+License: MIT
+Group: Libraries
+URL: https://github.com/TooTallNate/ansi.js
+Source0: http://registry.npmjs.org/ansi/-/ansi-%{version}.tgz
+# Source0-md5: a46eec705c14995f8380828ec4f9357a
+BuildRequires: rpmbuild(macros) >= 1.634
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ansi.js is a module for Node.js that provides an easy-to-use API for
+writing ANSI escape codes to Stream instances. ANSI escape codes are
+used to do fancy things in a terminal window, like render text in
+colors, delete characters, lines, the entire window, or hide and show
+the cursor, and lots more!
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
+cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
+
+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}/ansi
+%{_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/06/15 21:13:13 glen
+- new,
+ based on src.rpm from http://nodejs.tchol.org/ repo
================================================================
More information about the pld-cvs-commit
mailing list