[packages/nodejs-minimist] new, version 0.0.8

glen glen at pld-linux.org
Sun Jan 10 01:11:11 CET 2016


commit a2068b4a0e91a25535939559503e4b106827c30c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 10 02:10:53 2016 +0200

    new, version 0.0.8
    
    based on fedora package (24e0ba4)

 nodejs-minimist.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/nodejs-minimist.spec b/nodejs-minimist.spec
new file mode 100644
index 0000000..bacee3f
--- /dev/null
+++ b/nodejs-minimist.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+
+%define		pkg	minimist
+Summary:	Parse argument options in Node.js
+Name:		nodejs-%{pkg}
+Version:	0.0.8
+Release:	0.1
+License:	MIT
+Group:		Development/Libraries
+Source0:	https://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
+# Source0-md5:	2cf431b6650eef21fbace17b133be31e
+URL:		https://github.com/substack/minimist
+%if %{with tests}
+BuildRequires:	nodejs-tap
+BuildRequires:	nodejs-tape
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Parse argument options in Node.js
+
+This module is the guts of nodejs-optimist's argument parser without
+all the fanciful decoration.
+
+%prep
+%setup -qc
+mv package/* .
+
+%build
+%if %{with tests}
+tap test/*.js
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr package.json index.js $RPM_BUILD_ROOT%{nodejs_libdir}/minimist
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc readme.markdown LICENSE example
+%{nodejs_libdir}/%{pkg}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-minimist.git/commitdiff/a2068b4a0e91a25535939559503e4b106827c30c



More information about the pld-cvs-commit mailing list