%{?nodejs_find_provides_and_requires} %global packagename depd %global enable_tests 1 Name: nodejs-depd Version: 1.1.0 Release: 1%{?dist} Summary: NodeJS library for displaying deprecation messages to users License: MIT URL: https://github.com/dougwilson/nodejs-depd Source0: https://github.com/dougwilson/nodejs-depd/archive/v%{version}.tar.gz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: mocha %endif Requires: nodejs %description This library allows you to display deprecation messages to your users. This library goes above and beyond with deprecation warnings by introspection of the call stack (but only the bits that it is interested in). %prep %setup -q %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js lib/ \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %files %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha -R spec %endif %changelog * Wed Oct 7 2015 Jared Smith - 1.1.0-1 - Initial packaging