# spec file for package nodejs-nodejs-umask %global npm_name umask %{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-umask Version: 1.1.0 Release: 2%{?dist} Summary: Convert umask from string <-> number Url: https://github.com/smikes/umask Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz License: MIT BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-devel BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(code) BuildRequires: npm(jslint) BuildRequires: npm(lab) %endif %description Convert umask from string <-> number %prep %setup -q -n package %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 lab -ct 100 jslint --terse --latest *.js test/*.js %endif %files %{nodejs_sitelib}/umask %doc README.md %license LICENSE %changelog * Thu May 21 2015 Zuzana Svetlikova - 1.1.0-2 - Removed %%clean and rm -rf %%buildroot from %%install - changed Summary and %%description to start with capital letter * Thu May 14 2015 Zuzana Svetlikova - 1.1.0-1 - Initial build