%{?scl:%scl_package nodejs-debuglog} %{!?scl:%global pkg_name %{name}} # This macro is needed at the start for building on EL6 %{?nodejs_find_provides_and_requires} %global barename debuglog Name: %{?scl_prefix}nodejs-debuglog Version: 1.0.1 Release: 7%{?dist} Summary: Backport of util.debuglog from node v0.11 License: MIT URL: https://www.npmjs.org/package/debuglog Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{nodejs_arches} noarch %endif BuildRequires: %{?scl_prefix}runtime %description To facilitate using the `util.debuglog()` function that will be available when node v0.12 is released now, this is a copy extracted from the source. %prep %setup -q -n package %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/debuglog cp -pr package.json debuglog.js \ %{buildroot}%{nodejs_sitelib}/debuglog %nodejs_symlink_deps %files %doc LICENSE README.md %{nodejs_sitelib}/debuglog/ %changelog * Mon May 28 2018 Zuzana Svetlikova - 1.0.1-7 - Resolves: RHBZ#1543198, rebuild for multiarch * Tue Feb 16 2016 Zuzana Svetlikova - 1.0.1-6 - Use macro in -runtime dependency * Sun Feb 14 2016 Zuzana Svetlikova - 1.0.1-5 - Rebuilt with updated metapackage * Tue Dec 01 2015 Tomas Hrcka - 1.0.1-4 - Enable scl macros * Wed Jun 17 2015 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jul 22 2014 Ralph Bean - 1.0.1-1 - Initial packaging for Fedora.