[packages/nodejs-npm-install-checks] - new

kiesiu kiesiu at pld-linux.org
Wed Mar 12 14:02:56 CET 2014


commit c9ba506e6cb133dcacc15cdb927ff5db0fe26e77
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Wed Mar 12 14:02:35 2014 +0100

    - new

 nodejs-npm-install-checks.spec | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
---
diff --git a/nodejs-npm-install-checks.spec b/nodejs-npm-install-checks.spec
new file mode 100644
index 0000000..070f4b9
--- /dev/null
+++ b/nodejs-npm-install-checks.spec
@@ -0,0 +1,38 @@
+%define		pkg	npm-install-checks
+Summary:	Checks that npm runs during the installation of a module
+Name:		nodejs-%{pkg}
+Version:	1.0.0
+Release:	1
+License:	BSD-2-Clause
+Group:		Development/Libraries
+Source0:	http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5:	1f898c0fe4ccb8c2620ebce4d9db57ce
+URL:		https://github.com/robertkowalski/npm-install-checks
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+Requires:	nodejs-npmlog = 0.0.6
+Requires:	nodejs-semver < 2.3.0
+Requires:	nodejs-semver >= 2.2.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Checks that npm runs during the installation of a module.
+
+%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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-npm-install-checks.git/commitdiff/c9ba506e6cb133dcacc15cdb927ff5db0fe26e77



More information about the pld-cvs-commit mailing list