1 Summary: Advanced ANSI formatting tool for Node.js
6 Group: Development/Libraries
7 Source0: http://registry.npmjs.org/ansi/-/ansi-%{version}.tgz
8 # Source0-md5: 0a056443be409b8eec23ea9d10b5bf24
9 URL: https://github.com/TooTallNate/ansi.js
10 BuildRequires: rpmbuild(macros) >= 1.634
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 ansi.js is a module for Node.js that provides an easy-to-use API for
17 writing ANSI escape codes to Stream instances. ANSI escape codes are
18 used to do fancy things in a terminal window, like render text in
19 colors, delete characters, lines, the entire window, or hide and show
20 the cursor, and lots more!
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
29 cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
31 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
32 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
41 %{_examplesdir}/%{name}-%{version}