]> git.pld-linux.org Git - packages/nodejs-ansi.git/commitdiff
- new, auto/th/nodejs-ansi-0_1_2-1
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 15 Jun 2012 21:13:13 +0000 (21:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  based on src.rpm from http://nodejs.tchol.org/ repo

Changed files:
    nodejs-ansi.spec -> 1.1

nodejs-ansi.spec [new file with mode: 0644]

diff --git a/nodejs-ansi.spec b/nodejs-ansi.spec
new file mode 100644 (file)
index 0000000..06fe606
--- /dev/null
@@ -0,0 +1,41 @@
+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}
This page took 0.05938 seconds and 4 git commands to generate.