From 22237e2dc9ac15b9eddf1f8232c09843ef58a1f4 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: May 29 2014 18:25:30 +0000 Subject: fix python 3.4 magic number --- diff --git a/rpmlint-1.5-python-3.4-magic-number-fix.patch b/rpmlint-1.5-python-3.4-magic-number-fix.patch new file mode 100644 index 0000000..3a0425f --- /dev/null +++ b/rpmlint-1.5-python-3.4-magic-number-fix.patch @@ -0,0 +1,12 @@ +diff -up rpmlint-1.5/FilesCheck.py.py34 rpmlint-1.5/FilesCheck.py +--- rpmlint-1.5/FilesCheck.py.py34 2014-05-29 14:22:53.063802675 -0400 ++++ rpmlint-1.5/FilesCheck.py 2014-05-29 14:23:07.577696983 -0400 +@@ -308,7 +308,7 @@ _python_magic_values = { + '3.1': 3150, + '3.2': 3180, + '3.3': 3230, +- '3.4': 3260, ++ '3.4': 3310, + } + + def get_expected_pyc_magic(path): diff --git a/rpmlint.spec b/rpmlint.spec index fb9ada0..0807cf6 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -1,6 +1,6 @@ Name: rpmlint Version: 1.5 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Tool for checking common errors in RPM packages Group: Development/Tools @@ -22,6 +22,8 @@ Patch1: rpmlint-1.5-dont-modify-sys-argv-0.patch Patch2: rpmlint-1.5-fix-unbound-var.patch # https://sourceforge.net/p/rpmlint/code/ci/9844a91e281b2da647c599c3958ec34375d245a2 Patch3: rpmlint-1.5-fix-unicode-name-bug.patch +# http://sourceforge.net/p/rpmlint/code/ci/0929683e2544813d65ef85ae49b52ccdc6662746 +Patch4: rpmlint-1.5-python-3.4-magic-number-fix.patch BuildArch: noarch BuildRequires: python >= 2.4 @@ -61,6 +63,7 @@ and source packages as well as spec files can be checked. %patch1 -p1 -b .argv0 %patch2 -p1 -b .fixunbound %patch3 -p1 -b .fixunicode +%patch4 -p1 -b .py34 sed -i -e /MenuCheck/d Config.py cp -p config config.example install -pm 644 %{SOURCE2} CHANGES.package.old @@ -111,6 +114,9 @@ make check %changelog +* Thu May 29 2014 Tom Callaway - 1.5-10 +- fix python 3.4 magic number (#1102846) + * Mon May 12 2014 Tom Callaway - 1.5-9 - update config to ignore non-readable /etc/ovirt-engine/isouploader.conf