%global enable_tests 0 %global module_name end-of-stream Name: nodejs-%{module_name} Version: 1.4.0 Release: 4%{?dist} Summary: Call a callback when a readable/writable/duplex stream has completed or failed License: MIT URL: https://github.com/mafintosh/end-of-stream Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) BuildRequires: npm(once) %endif %description %{summary}. %prep %setup -q -n package rm -rf node_modules %nodejs_fixdep once ~1.x %build # nothing to build %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' tap test.js %endif %files %doc README.md LICENSE %{nodejs_sitelib}/%{module_name} %changelog * Fri Jul 13 2018 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Mar 14 2017 Parag Nemade - 1.4.0-1 - Update to 1.4.0 version * Sun Mar 12 2017 Parag Nemade - 1.2.0-1 - Update to 1.2.0 version * Sun Feb 12 2017 Parag Nemade - 1.1.0-5 - Fix %%check section * Fri Feb 10 2017 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Dec 22 2014 Parag Nemade - 1.1.0-1 - Initial packaging