%{?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: 2%{?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 * Mon May 28 2018 Zuzana Svetlikova - 2.0.2-2 - Resolves: RHBZ#1543198, rebuild for multiarch * 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