# spec file for package nodejs-nodejs-validate-npm-package-name %global npm_name validate-npm-package-name %global commit 3af92c881549f1b96f05ab6bfb5768bba94ad72d %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-validate-npm-package-name Version: 2.2.2 Release: 1%{?dist} Summary: Give me a string and I'll tell you if it's a valid npm package name Url: https://github.com/npm/validate-npm-package-name Source0: https://github.com/npm/%{npm_name}/archive/%{commit}/%{npm_name}-%{commit}.tar.gz License: ISC BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) %endif BuildRequires: npm(builtins) %description Give me a string and I'll tell you if it's a valid npm package name %prep %setup -q -n %{npm_name}-%{commit} %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pr package.json index.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}/validate-npm-package-name %doc README.md %license LICENSE %changelog * Tue Jun 30 2015 Zuzana Svetlikova - 2.2.2-1 - Initial build