%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-line-reader Version: 0.2.4 Release: 3%{?dist} Summary: Asynchronous line-by-line file reader License: MIT URL: https://github.com/nickewing/line-reader Source: http://registry.npmjs.org/line-reader/-/line-reader-%{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 Nodejs line reader is asynchronous line-by-line file reader %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/line-reader cp -rp package.json lib/ %{buildroot}%{nodejs_sitelib}/line-reader %check %if 0%{?enable_tests} mocha test/line_reader.js %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/line-reader %changelog * Mon Jul 20 2015 Piotr Popieluch - 0.2.4-3 - Move LICENSE to %%license - Excluded tests from %%doc - Renamed binary to line-reader instead of nodejs-line-reader - Enabled tests - Add ExclusiveArch for nodejs packages * Thu Feb 26 2015 Anish Patil - 0.2.4-2 - Added nodejs packaging dependencies * Thu Feb 5 2015 Anish Patil - 0.2.4-1 - initial package