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