From ab48c9462d03e45c5ba1e4ce8c186de26f7417fd Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Jun 15 2009 14:12:08 +0000 Subject: - Patch to remove a Deprecation Warning in Python 2.6 (bz #506053) --- diff --git a/rubber-python26.patch b/rubber-python26.patch new file mode 100644 index 0000000..ec88e62 --- /dev/null +++ b/rubber-python26.patch @@ -0,0 +1,21 @@ +diff -ur rubber-1.1/src/util.py rubber-1.1.new/src/util.py +--- rubber-1.1/src/util.py 2006-03-17 14:52:45.000000000 +0100 ++++ rubber-1.1.new/src/util.py 2009-06-15 16:05:57.000000000 +0200 +@@ -5,7 +5,7 @@ + by the modules for various tasks. + """ + +-import md5 ++import hashlib + import os, stat, time + import imp + import re, string +@@ -19,7 +19,7 @@ + """ + Compute the MD5 sum of a given file. + """ +- m = md5.new() ++ m = hashlib.md5() + file = open(fname) + for line in file.readlines(): + m.update(line) diff --git a/rubber.spec b/rubber.spec index a875ea1..9db96af 100644 --- a/rubber.spec +++ b/rubber.spec @@ -3,7 +3,7 @@ Name: rubber Version: 1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: An automated system for building LaTeX documents Group: Applications/Publishing @@ -11,6 +11,7 @@ License: GPL+ URL: http://rubber.sourceforge.net/ Source0: http://rubber.sourceforge.net/%{name}-%{version}.tar.gz +Patch0: rubber-python26.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: python-devel texinfo @@ -30,6 +31,7 @@ Metapost compilation). %prep %setup -q +%patch0 -p1 for file in doc/man-fr/*; do iconv -f ISO88591 -t utf8 $file -o $file done @@ -64,6 +66,9 @@ fi %{_mandir}/fr/man1/*.gz %changelog +* Mon Jun 15 2009 Sergio Pascual - 1.1-5 +- Patch to remove a Deprecation Warning in Python 2.6 (bz #506053) + * Wed Feb 25 2009 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild