%global enable_tests 1 %global srcname caseless Name: nodejs-%{srcname} Version: 0.11.1 Release: 1%{?dist} Summary: Encode and decode streams into string streams License: ASL 2.0 URL: https://github.com/mikeal/caseless #Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz # The 0.11.1 release hasn't been put on npmjs.org yet, so we'll pull from github Source0: https://github.com/request/%{srcname}/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tape) %endif %description %{summary}. %prep %setup -q -n %{srcname}-%{version} rm -rf node_modules %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' node test.js %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/%{srcname} %changelog * Fri Feb 12 2016 Jared Smith - 0.11.1-1 - Update to upstream 0.11.1 release * Thu Feb 04 2016 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Oct 25 2015 Piotr Popieluch - 0.11.0-1 - Initial package