]> git.pld-linux.org Git - packages/nodejs-ansicolors.git/commitdiff
- initial
authorŁukasz Kieś <kiesiu@pld-linux.org>
Mon, 10 Mar 2014 19:47:32 +0000 (20:47 +0100)
committerŁukasz Kieś <kiesiu@pld-linux.org>
Mon, 10 Mar 2014 19:47:32 +0000 (20:47 +0100)
nodejs-ansicolors.spec [new file with mode: 0644]

diff --git a/nodejs-ansicolors.spec b/nodejs-ansicolors.spec
new file mode 100644 (file)
index 0000000..3f9f5cf
--- /dev/null
@@ -0,0 +1,36 @@
+%define                pkg     ansicolors
+Summary:       Functions that surround a string with ansicolor codes so it prints in color
+Name:          nodejs-%{pkg}
+Version:       0.3.2
+Release:       1
+License:       MIT
+Group:         Development/Libraries
+URL:           https://github.com/thlorenz/ansicolors
+Source0:       http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: 9a8ff703d6072578025a1a324c9005d1
+BuildRequires: rpmbuild(macros) >= 1.634
+Requires:      nodejs
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Functions that surround a string with ansicolor codes so it prints in
+color.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
This page took 1.642778 seconds and 4 git commands to generate.