diff --git a/rubber-1.1-spaces.patch b/rubber-1.1-spaces.patch new file mode 100644 index 0000000..348d330 --- /dev/null +++ b/rubber-1.1-spaces.patch @@ -0,0 +1,28 @@ +diff -ur rubber-1.1/src/rules/latex/__init__.py rubber-1.1.new/src/rules/latex/__init__.py +--- rubber-1.1/src/rules/latex/__init__.py 2006-03-17 14:52:45.000000000 +0100 ++++ rubber-1.1.new/src/rules/latex/__init__.py 2013-04-16 11:10:53.804141132 +0200 +@@ -1106,8 +1106,9 @@ + msg.progress(_("compiling %s") % msg.simplify(self.source())) + + file = self.source() ++ fakefile = self.src_base + cmd = [self.vars["program"]] +- cmd += map(lambda x: x.replace("%s",file), self.cmdline) ++ cmd += map(lambda x: x.replace("%s",fakefile), self.cmdline) + inputs = string.join(self.env.path, ":") + if inputs == "": + env = {} +@@ -1120,6 +1121,13 @@ + + if self.log.read(self.src_base + ".log"): + msg.error(_("Could not run %s.") % cmd[0]) ++ msg.error(_("path %s") % file) ++ msg.error(_("cmd %s") % self.cmdline) ++ msg.error(_("env %s") % env) ++ msg.error(_("inputs %s") % inputs) ++ msg.error(_("other %s") % self.src_base) ++ msg.error(_("cmd1 %s") % cmd[1]) ++ msg.error(_("cmd2 %s") % cmd[2]) + return 1 + if self.log.errors(): + return 1 diff --git a/rubber.spec b/rubber.spec index e7fb1de..3a10a84 100644 --- a/rubber.spec +++ b/rubber.spec @@ -3,7 +3,7 @@ Name: rubber Version: 1.1 -Release: 13%{?dist} +Release: 14%{?dist} Summary: An automated system for building LaTeX documents Group: Applications/Publishing @@ -12,6 +12,7 @@ License: GPL+ URL: https://launchpad.net/rubber Source0: https://launchpad.net/rubber/%{name}-%{version}.tar.gz Patch0: rubber-python26.patch +Patch1: rubber-1.1-spaces.patch BuildArch: noarch BuildRequires: python-devel texinfo Requires: tex(latex) @@ -32,6 +33,7 @@ Metapost compilation). %prep %setup -q %patch0 -p1 +%patch1 -p1 for file in doc/man-fr/*; do iconv -f ISO88591 -t utf8 $file -o $file done @@ -63,6 +65,9 @@ fi %{_mandir}/fr/man1/*.gz %changelog +* Mon Apr 15 2013 Patrick C. F. Ernzer - 1.1-14 +- incorporating patch from https://live.gnome.org/Gedit/LaTeXPlugin/FAQ + * Thu Feb 14 2013 Fedora Release Engineering - 1.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild