# spec file for package nodejs-nodejs-normalize-git-url %global npm_name normalize-git-url %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-normalize-git-url Version: 1.0.1 Release: 1%{?dist} Summary: Normalizes Git URLs. For npm, but you can use it too. Url: https://github.com/npm/normalize-git-url Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz License: ISC BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-devel BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) %endif %description Normalizes Git URLs. For npm, but you can use it too. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pr package.json normalize-git-url.js \ %{buildroot}%{nodejs_sitelib}/%{npm_name} %{nodejs_symlink_deps} %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check tap test/*.js %endif %files %{nodejs_sitelib}/normalize-git-url %doc README.md %license LICENSE %changelog * Thu May 22 2015 Zuzana Svetlikova - 1.0.1-1 - Rebuilt with new release containing license text * Wed May 13 2015 Zuzana Svetlikova - 1.0.0-1 - Initial build