# spec file for package nodejs-nodejs-path-is-inside %global npm_name path-is-inside %global commit f5f9f436cd209df82463abdcc9b47d88379622c8 %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-path-is-inside Version: 1.0.1 Release: 1%{?dist} Summary: Tests whether one path is inside another path Url: https://github.com/domenic/path-is-inside Source0: https://github.com/domenic/%{npm_name}/archive/%{commit}/%{npm_name}-%{commit}.tar.gz License: WTFPL BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-devel BuildRequires: nodejs-packaging %if 0%{?enable_tests} #BuildRequires: npm(jshint) BuildRequires: npm(mocha) %endif %description Tests whether one path is inside another path %prep %setup -q -n %{npm_name}-%{commit} %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pr package.json lib/ \ %{buildroot}%{nodejs_sitelib}/%{npm_name} %{nodejs_symlink_deps} %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check mocha %endif %files %{nodejs_sitelib}/path-is-inside %doc README.md %license LICENSE.txt %changelog * Wed Jun 17 2015 Zuzana Svetlikova - 1.0.1-1 - Initial build