From 3e2e5f25181bf06923ac3c36092a3448db9a0495 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 10:59:49 +0000 Subject: import rh-nodejs6-nodejs-cmd-shim-2.0.2-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d46e837 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cmd-shim-2.0.2.tgz diff --git a/.rh-nodejs6-nodejs-cmd-shim.metadata b/.rh-nodejs6-nodejs-cmd-shim.metadata new file mode 100644 index 0000000..6a51f6b --- /dev/null +++ b/.rh-nodejs6-nodejs-cmd-shim.metadata @@ -0,0 +1 @@ +6fcbda99483a8fd15d7d30a196ca69d688a2efdb SOURCES/cmd-shim-2.0.2.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-cmd-shim.spec b/SPECS/nodejs-cmd-shim.spec new file mode 100644 index 0000000..5376154 --- /dev/null +++ b/SPECS/nodejs-cmd-shim.spec @@ -0,0 +1,84 @@ +%{?scl:%scl_package nodejs-cmd-shim} +%{!?scl:%global pkg_name %{name}} + +%{!?scl:%global enable_tests 0} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-cmd-shim +Version: 2.0.2 +Release: 1%{?dist} +Summary: Used to create executable scripts on Windows and Unix +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +License: BSD +URL: https://github.com/ForbesLindesay/cmd-shim +Source0: http://registry.npmjs.org/cmd-shim/-/cmd-shim-%{version}.tgz +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(tap) +BuildRequires: npm(rimraf) +%endif + +%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 +mkdir -p %{buildroot}%{nodejs_sitelib}/cmd-shim +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/cmd-shim + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +%tap test/*.js +%endif + +%files +%{nodejs_sitelib}/cmd-shim +%doc README.md +%license LICENSE + +%changelog +* Tue Sep 13 2016 Zuzana Svetlikova - 2.0.2-1 +- Updated with script + +* Tue Feb 16 2016 Tomas Hrcka - 2.0.0-4 +- Fix dependency on graceful-fs + +* Wed Jul 15 2015 Zuzana Svetlikova - 2.0.0-2 +- Enable tests +- minor changes + +* Fri Jan 09 2015 Tomas Hrcka - 2.0.0-1 +- New upstream release 2.0.0 + +* Thu Nov 07 2013 Tomas Hrcka - 1.1.0-4.1 +- Software collections support + +* Sat Aug 03 2013 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Jun 22 2013 T.C. Hollingsworth - 1.1.0-3 +- restrict to compatible arches + +* Thu May 30 2013 T.C. Hollingsworth - 1.1.0-2 +- fix EOL encodings + +* Thu May 30 2013 T.C. Hollingsworth - 1.1.0-1 +- initial package