%{?nodejs_find_provides_and_requires} %global packagename kind-of %global enable_tests 1 Name: nodejs-kind-of Version: 3.2.2 Release: 1%{?dist} Summary: Get the native type of a value License: MIT URL: https://github.com/jonschlinkert/kind-of.git Source0: https://github.com/jonschlinkert/kind-of/archive/%{version}/kind-of-%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: mocha BuildRequires: npm(is-buffer) BuildRequires: npm(should) %endif %description Get the native type of a value. %prep %autosetup -n kind-of-%{version} %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %if 0%{?enable_tests} %{_bindir}/mocha -R spec %else %{_bindir}/echo "Tests disabled..." %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Fri Sep 15 2017 Jared Smith - 3.2.2-1 - Update to upstream 3.2.2 release * Thu Jul 27 2017 Fedora Release Engineering - 3.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Tom Hughes - 3.1.0-3 - Update to 3.1.0 upstream release * Fri Feb 12 2016 Jared Smith - 3.0.2-3 - Remove some BuildRequires that are not needed * Thu Feb 4 2016 Jared Smith - 3.0.2-2 - Initial packaging