[packages/nodejs-npmconf] Initial commit
aredridel
aredridel at pld-linux.org
Sun Dec 2 20:36:42 CET 2012
commit 9f138a7f84b468a68084e538b288a3717e173d5f
Author: Aria Stewart <aredridel at nbtsc.org>
Date: Sun Dec 2 12:36:02 2012 -0700
Initial commit
nodejs-npmconf.spec | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
---
diff --git a/nodejs-npmconf.spec b/nodejs-npmconf.spec
new file mode 100644
index 0000000..a05e0d8
--- /dev/null
+++ b/nodejs-npmconf.spec
@@ -0,0 +1,38 @@
+%define pkg npmconf
+Summary: The config thing npm uses
+Name: nodejs-%{pkg}
+Version: 0.0.16
+Release: 1
+License: MIT
+Group: Development/Libraries
+URL: https://github.com/isaacs/npmconf
+# download from https://github.com/isaacs/%{pkg}/tarball/%%{version}
+Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: 3224d1de46f490f66cb8a1492807a8af
+BuildRequires: rpmbuild(macros) >= 1.634
+BuildRequires: sed >= 4.0
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The config thing npm uses.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{nodejs_libdir}/%{pkg}}
+cp -a package.json *.js $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%dir %{nodejs_libdir}/%{pkg}
+%{nodejs_libdir}/%{pkg}/package.json
+%{nodejs_libdir}/%{pkg}/*.js
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-npmconf.git/commitdiff/9f138a7f84b468a68084e538b288a3717e173d5f
More information about the pld-cvs-commit
mailing list