[packages/nodejs-once] Initial commit
aredridel
aredridel at pld-linux.org
Sun Dec 2 20:47:29 CET 2012
commit 408537a59027694188b151d24b0ffd799ade02a3
Author: Aria Stewart <aredridel at nbtsc.org>
Date: Sun Dec 2 12:47:15 2012 -0700
Initial commit
nodejs-once.spec | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
---
diff --git a/nodejs-once.spec b/nodejs-once.spec
new file mode 100644
index 0000000..8d52289
--- /dev/null
+++ b/nodejs-once.spec
@@ -0,0 +1,37 @@
+%define pkg once
+Summary: The config thing npm uses
+Name: nodejs-%{pkg}
+Version: 1.1.1
+Release: 1
+License: MIT
+Group: Development/Libraries
+URL: https://github.com/isaacs/once
+Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: a8228f14ad37805f5fde76f8a6d28605
+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-once.git/commitdiff/408537a59027694188b151d24b0ffd799ade02a3
More information about the pld-cvs-commit
mailing list