[packages/nodejs-text-table] - new

kiesiu kiesiu at pld-linux.org
Tue Mar 11 21:49:28 CET 2014


commit 175f03b3d1ecd7c92c5c38b182a6a9209a89b8ba
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Tue Mar 11 21:49:06 2014 +0100

    - new

 nodejs-text-table.spec | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
---
diff --git a/nodejs-text-table.spec b/nodejs-text-table.spec
new file mode 100644
index 0000000..ce8f9a5
--- /dev/null
+++ b/nodejs-text-table.spec
@@ -0,0 +1,40 @@
+%define		pkg	text-table
+Summary:	Borderless text tables with alignment
+Name:		nodejs-%{pkg}
+Version:	0.2.0
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+Source0:	http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5:	4e595139988957453229d6ccd229f626
+URL:		https://github.com/substack/text-table
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Generate borderless text table strings suitable for printing to
+stdout.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr index.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc readme.markdown
+%{nodejs_libdir}/%{pkg}
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-text-table.git/commitdiff/175f03b3d1ecd7c92c5c38b182a6a9209a89b8ba



More information about the pld-cvs-commit mailing list