]>
Commit | Line | Data |
---|---|---|
038305f6 ER |
1 | Summary: Node.js native addon build tool |
2 | Name: nodejs-ansi | |
3 | Version: 0.1.2 | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: Libraries | |
7 | URL: https://github.com/TooTallNate/ansi.js | |
8 | Source0: http://registry.npmjs.org/ansi/-/ansi-%{version}.tgz | |
9 | # Source0-md5: a46eec705c14995f8380828ec4f9357a | |
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} |