%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-scmp Version: 1.0.0 Release: 1%{?dist} Summary: Constant-time string comparison intended to be safer against timing attacks License: BSD Group: System Environment/Libraries URL: https://github.com/freewil/scmp Source0: http://registry.npmjs.org/scmp/-/scmp-%{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(mocha) %endif %description %{summary}. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/scmp cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/scmp %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha -R spec %endif %files %{!?_licensedir:%global license %doc} %doc README.md %license LICENSE %{nodejs_sitelib}/scmp %changelog * Wed Nov 04 2015 Jared Smith - 1.0.0-1 - Update to upstream 1.0.0 release * Wed Jun 17 2015 Fedora Release Engineering - 0.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Apr 19 2014 Jamie Nguyen - 0.0.3-1 - initial package