%{?nodejs_find_provides_and_requires} %global packagename type-is %global enable_tests 1 Name: nodejs-type-is Version: 1.6.11 Release: 2%{?dist} Summary: Infer the content-type of a request License: MIT URL: https://github.com/jshttp/type-is Source0: https://github.com/jshttp/type-is/archive/%{version}.tar.gz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: mocha BuildRequires: npm(media-typer) BuildRequires: npm(mime-types) %endif %description Infer the content-type of a request. %prep %setup -q -n %{packagename}-%{version} %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha -R spec %endif %files %doc README.md HISTORY.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Thu Feb 04 2016 Fedora Release Engineering - 1.6.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Feb 01 2016 Jared Smith - 1.6.11-1 - Update to upstream 1.6.11 release * Mon Dec 07 2015 Jared Smith - 1.6.10-1 - Update to upstream 1.6.10 release * Wed Oct 7 2015 Jared Smith - 1.6.9-1 - Initial packaging