%{?scl:%scl_package nodejs-npm-cache-filename} %{!?scl:%global pkg_name %{name}} %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: %{?scl_prefix}nodejs-npm-cache-filename Version: 1.0.1 Release: 4%{?dist} Summary: Return NPM cache folder License: ISC Url: https://github.com/npm/npm-cache-filename Source: http://registry.npmjs.org/npm-cache-filename/-/npm-cache-filename-%{version}.tgz BuildRequires: %{?scl_prefix}nodejs BuildRequires: nodejs-packaging BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch %if 0%{?enable_tests} BuildRequires: npm(tap) %endif %description Given a cache folder and url, return the appropriate cache folder. %prep %setup -q -n package %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/npm-cache-filename cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/npm-cache-filename/ %{nodejs_symlink_deps} %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check tap test.js %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/npm-cache-filename %changelog * Fri Mar 13 2015 Zuzana Svetlikova - 1.0.1-4 - Removed Group, BuildRoot and %%defattr - changed ExclusiveArch - added %%check, %%license and %%nodejs_symlink_deps macros and nodejs-packaging dependency * Tue Jan 13 2015 Tomas Hrcka - 1.0.1-3 - Remove undefined macro * Fri Jan 09 2015 Tomas Hrcka - 1.0.1-2 - Add dist makro * Tue Jan 06 2015 Tomas Hrcka - 1.0.1-1 - rebuilt