]> git.pld-linux.org Git - packages/nodejs-ansi.git/blame - nodejs-ansi.spec
up to 0.3.0
[packages/nodejs-ansi.git] / nodejs-ansi.spec
CommitLineData
0aeecc9e 1Summary: Advanced ANSI formatting tool for Node.js
038305f6 2Name: nodejs-ansi
7e472119 3Version: 0.3.0
038305f6
ER
4Release: 1
5License: MIT
dc8dbacf 6Group: Development/Libraries
038305f6 7Source0: http://registry.npmjs.org/ansi/-/ansi-%{version}.tgz
7e472119 8# Source0-md5: 0a056443be409b8eec23ea9d10b5bf24
c4365d2c 9URL: https://github.com/TooTallNate/ansi.js
038305f6
ER
10BuildRequires: rpmbuild(macros) >= 1.634
11Requires: nodejs
12BuildArch: noarch
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16ansi.js is a module for Node.js that provides an easy-to-use API for
17writing ANSI escape codes to Stream instances. ANSI escape codes are
18used to do fancy things in a terminal window, like render text in
19colors, delete characters, lines, the entire window, or hide and show
20the cursor, and lots more!
21
22%prep
23%setup -qc
24mv package/* .
25
26%install
27rm -rf $RPM_BUILD_ROOT
28install -d $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
29cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/ansi
30
31install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
32cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
33
34%clean
35rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(644,root,root,755)
39%doc README.md
40%{nodejs_libdir}/ansi
41%{_examplesdir}/%{name}-%{version}
This page took 0.078242 seconds and 4 git commands to generate.