%{?nodejs_find_provides_and_requires} %global packagename path-is-inside Name: nodejs-path-is-inside Version: 1.0.2 Release: 1%{?dist} Summary: Tests whether one path is inside another path License: (WTFPL OR MIT) URL: https://github.com/domenic/path-is-inside.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging Provides: npm(%{packagename}) %description Tests whether one path is inside another path %prep %setup -n "package" rm -Rf node_modules %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr * %{buildroot}%{nodejs_sitelib}/%{packagename} %{nodejs_symlink_deps} %check %{nodejs_symlink_deps} --check %{__nodejs} -e 'require("./")' %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog