%{?nodejs_find_provides_and_requires} Name: nodejs-github-url-from-git Version: 1.1.1 Release: 1%{?dist} Summary: Parse a GitHub git URL and return the GitHub repo URL BuildArch: noarch Group: Development/Libraries #No license file included, "MIT" indicated in README and package.json #A copy of the MIT license based on the version included with express, another #node module by the same author, is included in Source1, and has been sent #upstream: https://github.com/visionmedia/github-url-from-git/pull/5 License: MIT URL: https://github.com/visionmedia/node-github-url-from-git Source0: http://registry.npmjs.org/github-url-from-git/-/github-url-from-git-%{version}.tgz Source1: https://raw.github.com/tchollingsworth/node-github-url-from-git/154fb09296b79637e25952638782995ad6812612/LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel #for tests BuildRequires: npm(mocha) BuildRequires: npm(should) BuildRequires: npm(better-assert) %description %{summary}. %prep %setup -q -n package #copy LICENSE file into %%_builddir so it works with %%doc cp %{SOURCE1} LICENSE %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/github-url-from-git cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/github-url-from-git %nodejs_symlink_deps %check %nodejs_symlink_deps --check mocha test.js --reporter spec --require should %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/github-url-from-git %doc Readme.md LICENSE History.md %changelog * Sun Jun 02 2013 T.C. Hollingsworth - 1.1.1-1 - initial package