]> git.pld-linux.org Git - packages/nodejs-ansi.git/blob - nodejs-ansi.spec
up to 0.3.0
[packages/nodejs-ansi.git] / nodejs-ansi.spec
1 Summary:        Advanced ANSI formatting tool for Node.js
2 Name:           nodejs-ansi
3 Version:        0.3.0
4 Release:        1
5 License:        MIT
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
11 Requires:       nodejs
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
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!
21
22 %prep
23 %setup -qc
24 mv package/* .
25
26 %install
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
30
31 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
32 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
33
34 %clean
35 rm -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.087747 seconds and 4 git commands to generate.