Blame SPECS/nodejs-cmd-shim.spec

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