%{?nodejs_find_provides_and_requires} %global packagename fs2 %global enable_tests 0 # Tests disabled until nodejs-tad can be built, but this is one of the # dependencies for that package Name: nodejs-fs2 Version: 0.2.3 Release: 3%{?dist} Summary: A set of fs (file system package) extensions License: MIT URL: https://github.com/medikoo/fs2.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tad) %endif Requires: nodejs %description A set of fs (file system package) extensions %prep %setup -q -n package %nodejs_fixdep minimatch '^3.0.0' %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js lib/ \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %check %nodejs_symlink_deps --check %if 0%{?enable_tests} %{__nodejs} %{nodejs_sitelib}/tad/bin/tad %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Sat Dec 19 2015 Jared Smith - 0.2.3-3 - Initial packaging