From 072b4d9f78d39e342187317120304e471c1be51d Mon Sep 17 00:00:00 2001 From: Stuart D. Gathman Date: Dec 06 2019 18:28:02 +0000 Subject: [PATCH 1/2] Patch obsolete puts calls --- diff --git a/nodejs-ronn.spec b/nodejs-ronn.spec index a527e83..291f9fa 100644 --- a/nodejs-ronn.spec +++ b/nodejs-ronn.spec @@ -2,11 +2,12 @@ Name: nodejs-ronn Version: 0.4.0 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Markdown to roff/html converter License: MIT URL: https://github.com/kapouer/ronnjs Source0: https://registry.npmjs.org/ronn/-/ronn-%{version}.tgz +Patch0: puts.patch BuildArch: noarch %if 0%{?fedora} >= 19 @@ -23,6 +24,7 @@ compatible with ronn, although it aims to be, wherever possible. %prep %setup -q -n package +%patch0 -p3 -b .puts %build #nothing to do @@ -43,6 +45,9 @@ ln -s ../lib/node_modules/ronn/bin/ronn.js %{buildroot}%{_bindir}/ronn-nodejs %license LICENSE %changelog +* Fri Dec 6 2019 Stuart Gathman - 0.4.0-15 +- Patch obsolete puts calls to use console + * Thu Jul 25 2019 Fedora Release Engineering - 0.4.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/puts.patch b/puts.patch new file mode 100644 index 0000000..0979f3c --- /dev/null +++ b/puts.patch @@ -0,0 +1,26 @@ +diff -up ./node_modules/ronn/bin/ronn.js.puts ./node_modules/ronn/bin/ronn.js +--- ./node_modules/ronn/bin/ronn.js.puts 2019-08-03 18:32:03.560415945 -0400 ++++ ./node_modules/ronn/bin/ronn.js 2019-08-03 18:33:18.600372936 -0400 +@@ -2,7 +2,8 @@ + + var RONN_VERSION = "0.4.0"; + +-var sys = require('util'); ++var console = require('console'); ++var sys = { 'puts': console.log, 'debug': console.error }; + var fs = require('fs'); + var path = require('path'); + var opts = require('opts'); +diff -up ./node_modules/ronn/lib/ronn.js.puts ./node_modules/ronn/lib/ronn.js +--- ./node_modules/ronn/lib/ronn.js.puts 2019-08-03 18:32:11.703523935 -0400 ++++ ./node_modules/ronn/lib/ronn.js 2019-08-03 18:33:02.578184733 -0400 +@@ -4,7 +4,8 @@ + */ + + var md = require('markdown').markdown; +-var sys = require('util'); ++var console = require('console'); ++var sys = { 'puts': console.log, 'debug': console.error }; + + /* exports Ronn class + * usage : From 629b315f1a15b5d4543438ea57277498665d3557 Mon Sep 17 00:00:00 2001 From: Stuart D. Gathman Date: May 21 2020 00:24:39 +0000 Subject: [PATCH 2/2] Ignore /*.src.rpm --- diff --git a/.gitignore b/.gitignore index c03049c..ce07c2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /ronn-0.3.8.tgz /ronn-0.4.0.tgz +/*.src.rpm