[nodejs-cmd-shim/el6] initial import
T.C. Hollingsworth
patches at fedoraproject.org
Mon Jun 3 01:59:17 UTC 2013
commit 0736cedb62a0bc52346eb6616f6acc8ae99a3b69
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Sun Jun 2 18:58:16 2013 -0700
initial import
.gitignore | 1 +
nodejs-cmd-shim.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a3b70a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cmd-shim-1.1.0.tgz
diff --git a/nodejs-cmd-shim.spec b/nodejs-cmd-shim.spec
new file mode 100644
index 0000000..6ade545
--- /dev/null
+++ b/nodejs-cmd-shim.spec
@@ -0,0 +1,63 @@
+%{?nodejs_find_provides_and_requires}
+
+Name: nodejs-cmd-shim
+Version: 1.1.0
+Release: 2%{?dist}
+Summary: Used to create executable scripts on Windows and Unix
+BuildArch: noarch
+
+Group: Development/Libraries
+License: BSD
+URL: https://github.com/ForbesLindesay/cmd-shim
+Source0: http://registry.npmjs.org/cmd-shim/-/cmd-shim-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: nodejs-devel
+
+#for tests
+BuildRequires: npm(tap)
+BuildRequires: npm(mkdirp)
+BuildRequires: npm(rimraf)
+
+%description
+The cmd-shim used in npm to create executable scripts on Windows, since symlinks
+are not suitable for this purpose there.
+
+On Unix systems, you should use a symbolic link instead, but this module
+supports creating shell script shims also.
+
+%prep
+%setup -q -n package
+
+# CRLF -> LF
+sed -i 's/\r//g' README.md LICENSE
+
+%build
+#nothing to do
+
+%install
+rm -rf %buildroot
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/cmd-shim
+cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/cmd-shim
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%tap test/*.js
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/cmd-shim
+%doc README.md LICENSE
+
+%changelog
+* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.1.0-2
+- fix EOL encodings
+
+* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.1.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..c77657a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ff5cd56ae9d11bdb7912fcff1590c877 cmd-shim-1.1.0.tgz
More information about the scm-commits
mailing list