%{?nodejs_find_provides_and_requires} Name: nodejs-shelljs Version: 0.2.6 Release: 1%{?dist} Summary: Portable Unix shell commands for Node.js License: BSD Group: System Environment/Libraries URL: https://github.com/arturadib/shelljs Source: http://registry.npmjs.org/shelljs/-/shelljs-%{version}.tgz BuildArch: noarch BuildRequires: nodejs-packaging %description ShellJS is a portable implementation of Unix shell commands on top of the Node.js API. %prep %setup -q -n package %setup -T -D -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/shelljs cp -pr shell.js global.js make.js package.json scripts/ src/ \ %{buildroot}%{nodejs_sitelib}/shelljs mkdir -p %{buildroot}%{nodejs_sitelib}/shelljs/bin install -p -D -m0755 bin/shjs %{buildroot}%{nodejs_sitelib}/shelljs/bin/shjs mkdir -p %{buildroot}%{_bindir} ln -sf %{nodejs_sitelib}/shelljs/bin/shjs \ %{buildroot}%{_bindir}/shelljs-nodejs %nodejs_symlink_deps %files %doc LICENSE README.md %{nodejs_sitelib}/shelljs %{_bindir}/shelljs-nodejs %changelog * Thu Apr 10 2014 Anish Patil - 0.2.6-1 - initial package