SHA256
1
0
forked from pool/rpmlint

Accepting request 141708 from devel:openSUSE:Factory:rpmlint

Added a patch (python3_magic_number_fix.diff) to update the magic number for python 3 (forwarded request 141583 from adra)

OBS-URL: https://build.opensuse.org/request/show/141708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=174
This commit is contained in:
Ismail Dönmez 2012-11-18 19:26:25 +00:00 committed by Git OBS Bridge
commit 7d3294f259
3 changed files with 28 additions and 7 deletions

View File

@ -0,0 +1,20 @@
--- FilesCheck.py
+++ FilesCheck.py
@@ -286,7 +286,7 @@
istext = float(len(t))/len(chunk) <= 0.30
return (chunk, istext)
-# See Python/import.c (in the trunk and py3k branches) for a full list of
+# See Python/import.c (in the default and 2.x branches) for a full list of
# the values here.
_python_magic_values = {
'2.2': 60717,
@@ -298,7 +298,7 @@
'3.0': 3130,
'3.1': 3150,
'3.2': 3180,
- '3.3': 3190,
+ '3.3': 3230,
}
def get_expected_pyc_magic(path):

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 16 17:51:20 UTC 2012 - asterios.dramis@gmail.com
- Added a patch (python3_magic_number_fix.diff) to update the magic number for
python 3 (patch taken from upstream).
-------------------------------------------------------------------
Wed Nov 14 14:06:53 UTC 2012 - meissner@suse.com

View File

@ -116,19 +116,13 @@ Patch86: suse-rclink-check.diff
# accepted upstream
Patch88: suse-speccheck-utf8.diff
Patch89: suse-python-abi-check.diff
Patch90: python3_magic_number_fix.diff
%py_requires
%description
Rpmlint is a tool to check common errors on rpm packages. Binary and
source packages can be checked.
Authors:
--------
Frederic Lepied <flepied@mandriva.com>
Gwenole Beauchesne <gbeauchesne@mandriva.com>
%prep
%setup -q -n rpmlint-%{version} -a1
%patch0
@ -195,6 +189,7 @@ Authors:
#patch87 -p1
%patch88
%patch89
%patch90
cp -p %{SOURCE2} .
# Only move top-level python files
chmod 0755 rpmlint-checks-master/*.py