Update Python 3.5.3 magic bytecode value
This commit is contained in:
parent
4498671584
commit
a82f40d63e
13
rpmlint-1.9-py35magic.patch
Normal file
13
rpmlint-1.9-py35magic.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/FilesCheck.py b/FilesCheck.py
|
||||||
|
index 112a9ec..b3465ca 100644
|
||||||
|
--- a/FilesCheck.py
|
||||||
|
+++ b/FilesCheck.py
|
||||||
|
@@ -323,7 +323,7 @@ _python_magic_values = {
|
||||||
|
'3.2': 3180,
|
||||||
|
'3.3': 3230,
|
||||||
|
'3.4': 3310,
|
||||||
|
- '3.5': 3350,
|
||||||
|
+ '3.5': 3351, # 3350 for < 3.5.2
|
||||||
|
'3.6': 3379,
|
||||||
|
}
|
||||||
|
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
Name: rpmlint
|
Name: rpmlint
|
||||||
Version: 1.9
|
Version: 1.9
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: Tool for checking common errors in RPM packages
|
Summary: Tool for checking common errors in RPM packages
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -39,6 +39,9 @@ Patch0: rpmlint-1.9-unicodefix.patch
|
|||||||
Patch1: rpmlint-1.9-py36magic.patch
|
Patch1: rpmlint-1.9-py36magic.patch
|
||||||
# https://github.com/rpm-software-management/rpmlint/commit/a81fdca0185d5ed9868a6ddafca1812082029714
|
# https://github.com/rpm-software-management/rpmlint/commit/a81fdca0185d5ed9868a6ddafca1812082029714
|
||||||
Patch2: rpmlint-1.9-fix-uep.patch
|
Patch2: rpmlint-1.9-fix-uep.patch
|
||||||
|
# Python 3.5.3 bytecode magic value update
|
||||||
|
# https://github.com/rpm-software-management/rpmlint/commit/beb32c4cfbff4aa979141941f534d2c6b7a18639 (hand-rediffed)
|
||||||
|
Patch3: rpmlint-1.9-py35magic.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -92,6 +95,7 @@ and source packages as well as spec files can be checked.
|
|||||||
%patch0 -p1 -b .unicodefix
|
%patch0 -p1 -b .unicodefix
|
||||||
%patch1 -p1 -b .py36magic
|
%patch1 -p1 -b .py36magic
|
||||||
%patch2 -p1 -b .fixuep
|
%patch2 -p1 -b .fixuep
|
||||||
|
%patch3 -p1 -b .py35magic
|
||||||
sed -i -e /MenuCheck/d Config.py
|
sed -i -e /MenuCheck/d Config.py
|
||||||
cp -p config config.example
|
cp -p config config.example
|
||||||
install -pm 644 %{SOURCE3} config
|
install -pm 644 %{SOURCE3} config
|
||||||
@ -141,6 +145,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8}
|
|||||||
%{_mandir}/man1/rpmlint.1*
|
%{_mandir}/man1/rpmlint.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 9 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.9-8
|
||||||
|
- Update Python 3.5.3 magic bytecode value
|
||||||
|
|
||||||
* Wed Feb 8 2017 Tom Callaway <spot@fedoraproject.org> - 1.9-7
|
* Wed Feb 8 2017 Tom Callaway <spot@fedoraproject.org> - 1.9-7
|
||||||
- apply upstream fix to not demand versioned filename Provides/Obsoletes
|
- apply upstream fix to not demand versioned filename Provides/Obsoletes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user