Blame SPECS/nodejs-cmd-shim.spec

3e2e5f
%{?scl:%scl_package nodejs-cmd-shim}
3e2e5f
%{!?scl:%global pkg_name %{name}}
3e2e5f
3e2e5f
%{!?scl:%global enable_tests 0}
3e2e5f
3e2e5f
%{?nodejs_find_provides_and_requires}
3e2e5f
3e2e5f
Name:           %{?scl_prefix}nodejs-cmd-shim
3e2e5f
Version:        2.0.2
dae79e
Release:        2%{?dist}
3e2e5f
Summary:        Used to create executable scripts on Windows and Unix
3e2e5f
BuildArch:      noarch
3e2e5f
ExclusiveArch: %{nodejs_arches} noarch
3e2e5f
License:        BSD
3e2e5f
URL:            https://github.com/ForbesLindesay/cmd-shim
3e2e5f
Source0:        http://registry.npmjs.org/cmd-shim/-/cmd-shim-%{version}.tgz
3e2e5f
BuildRequires:  %{?scl_prefix}nodejs-devel
3e2e5f
3e2e5f
%if 0%{?enable_tests}
3e2e5f
BuildRequires:  npm(tap)
3e2e5f
BuildRequires:  npm(rimraf)
3e2e5f
%endif
3e2e5f
3e2e5f
%description
3e2e5f
The cmd-shim used in npm to create executable scripts on Windows, since symlinks
3e2e5f
are not suitable for this purpose there.
3e2e5f
3e2e5f
On Unix systems, you should use a symbolic link instead, but this module
3e2e5f
supports creating shell script shims also.
3e2e5f
3e2e5f
%prep
3e2e5f
%setup -q -n package
3e2e5f
3e2e5f
# CRLF -> LF
3e2e5f
sed -i 's/\r//g' README.md LICENSE
3e2e5f
3e2e5f
%build
3e2e5f
#nothing to do
3e2e5f
3e2e5f
%install
3e2e5f
mkdir -p %{buildroot}%{nodejs_sitelib}/cmd-shim
3e2e5f
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/cmd-shim
3e2e5f
3e2e5f
%nodejs_symlink_deps
3e2e5f
3e2e5f
%if 0%{?enable_tests}
3e2e5f
%check
3e2e5f
%nodejs_symlink_deps --check
3e2e5f
%tap test/*.js
3e2e5f
%endif
3e2e5f
3e2e5f
%files
3e2e5f
%{nodejs_sitelib}/cmd-shim
3e2e5f
%doc README.md
3e2e5f
%license LICENSE
3e2e5f
3e2e5f
%changelog
dae79e
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.2-2
dae79e
- Resolves: RHBZ#1543198, rebuild for multiarch
dae79e
3e2e5f
* Tue Sep 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.2-1
3e2e5f
- Updated with script
3e2e5f
3e2e5f
* Tue Feb 16 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-4
3e2e5f
- Fix dependency on graceful-fs
3e2e5f
3e2e5f
* Wed Jul 15 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-2
3e2e5f
- Enable tests
3e2e5f
- minor changes
3e2e5f
3e2e5f
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-1
3e2e5f
- New upstream release 2.0.0
3e2e5f
3e2e5f
* Thu Nov 07 2013 Tomas Hrcka <thrcka@redhat.com> - 1.1.0-4.1
3e2e5f
- Software collections support
3e2e5f
3e2e5f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
3e2e5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3e2e5f
3e2e5f
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-3
3e2e5f
- restrict to compatible arches
3e2e5f
3e2e5f
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-2
3e2e5f
- fix EOL encodings
3e2e5f
3e2e5f
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-1
3e2e5f
- initial package