Name: nodejs-repl Version: 0.1.3 Release: 1%{?dist} Summary: A lightweight templating library for Node.js BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif # package.json indicates MIT, but no license file included # upstream notified in https://github.com/firejune/repl/pull/1 # we're including a copy of the MIT license in order to comply with the terms of # the MIT license, as required by: # https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text License: MIT URL: https://github.com/firejune/repl Source0: http://registry.npmjs.org/repl/-/repl-%{version}.tgz Source1: https://raw.github.com/tchollingsworth/repl/8658350d7c0d1d4577f1a802de7032803c934301/LICENSE BuildRequires: nodejs-devel %description %{summary}. %prep %setup -q -n package #copy LICENSE file to %%{_builddir} so it works with %%doc cp %{SOURCE1} . %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/repl cp -pr lib index.js package.json %{buildroot}%{nodejs_sitelib}/repl %nodejs_symlink_deps %check %{__nodejs} test.js %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/repl %doc README.md LICENSE %changelog * Fri Jun 21 2013 T.C. Hollingsworth - 0.1.3-1 - initial package