fix py3 magic number, update license list
This commit is contained in:
parent
e204a4f05f
commit
4ba44299ba
21
rpmlint-1.4-py3-magic-number-fix.patch
Normal file
21
rpmlint-1.4-py3-magic-number-fix.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up rpmlint-1.4/FilesCheck.py.py3 rpmlint-1.4/FilesCheck.py
|
||||||
|
--- rpmlint-1.4/FilesCheck.py.py3 2012-08-14 15:28:27.143695431 -0400
|
||||||
|
+++ rpmlint-1.4/FilesCheck.py 2012-08-14 15:28:45.125694788 -0400
|
||||||
|
@@ -285,7 +285,7 @@ def peek(filename, pkg, length=1024):
|
||||||
|
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,
|
||||||
|
@@ -297,7 +297,7 @@ _python_magic_values = {
|
||||||
|
'3.0': 3130,
|
||||||
|
'3.1': 3150,
|
||||||
|
'3.2': 3180,
|
||||||
|
- '3.3': 3190,
|
||||||
|
+ '3.3': 3230,
|
||||||
|
}
|
||||||
|
|
||||||
|
def get_expected_pyc_magic(path):
|
@ -40,7 +40,7 @@ setOption("DanglingSymlinkExceptions", (
|
|||||||
setOption("ValidLicenses", (
|
setOption("ValidLicenses", (
|
||||||
# These are the short names for all of the Fedora approved licenses.
|
# These are the short names for all of the Fedora approved licenses.
|
||||||
# The master list is kept here: http://fedoraproject.org/wiki/Licensing
|
# The master list is kept here: http://fedoraproject.org/wiki/Licensing
|
||||||
# Last synced with revision "1.94, 20 September 2011" of that page.
|
# Last synced with revision "2.03, 13 August 2012" of that page.
|
||||||
'AAL',
|
'AAL',
|
||||||
'Abstyles',
|
'Abstyles',
|
||||||
'Adobe',
|
'Adobe',
|
||||||
@ -63,9 +63,11 @@ setOption("ValidLicenses", (
|
|||||||
'ASL 1.1+',
|
'ASL 1.1+',
|
||||||
'ASL 2.0',
|
'ASL 2.0',
|
||||||
'ASL 2.0+',
|
'ASL 2.0+',
|
||||||
|
'Bahyph',
|
||||||
'Barr',
|
'Barr',
|
||||||
'Beerware',
|
'Beerware',
|
||||||
'BeOpen',
|
'BeOpen',
|
||||||
|
'Bibtex',
|
||||||
'BitTorrent',
|
'BitTorrent',
|
||||||
'Boost',
|
'Boost',
|
||||||
'Borceux',
|
'Borceux',
|
||||||
@ -86,6 +88,7 @@ setOption("ValidLicenses", (
|
|||||||
'CPL',
|
'CPL',
|
||||||
'Crossword',
|
'Crossword',
|
||||||
'Crystal Stacker',
|
'Crystal Stacker',
|
||||||
|
'diffmark',
|
||||||
'DOC',
|
'DOC',
|
||||||
'Dotseqn',
|
'Dotseqn',
|
||||||
'DSDP',
|
'DSDP',
|
||||||
@ -123,6 +126,7 @@ setOption("ValidLicenses", (
|
|||||||
'GPLv3 with exceptions',
|
'GPLv3 with exceptions',
|
||||||
'GPLv3+',
|
'GPLv3+',
|
||||||
'GPLv3+ with exceptions',
|
'GPLv3+ with exceptions',
|
||||||
|
'HaskellReport',
|
||||||
'IBM',
|
'IBM',
|
||||||
'IJG',
|
'IJG',
|
||||||
'ImageMagick',
|
'ImageMagick',
|
||||||
@ -134,9 +138,11 @@ setOption("ValidLicenses", (
|
|||||||
'Jabber',
|
'Jabber',
|
||||||
'JasPer',
|
'JasPer',
|
||||||
'JPython',
|
'JPython',
|
||||||
|
'Julius',
|
||||||
'Knuth',
|
'Knuth',
|
||||||
'Latex2e',
|
'Latex2e',
|
||||||
'LBNL BSD',
|
'LBNL BSD',
|
||||||
|
'Leptonica',
|
||||||
'LGPLv2',
|
'LGPLv2',
|
||||||
'LGPLv2 with exceptions',
|
'LGPLv2 with exceptions',
|
||||||
'LGPLv2+',
|
'LGPLv2+',
|
||||||
@ -152,7 +158,9 @@ setOption("ValidLicenses", (
|
|||||||
'Logica',
|
'Logica',
|
||||||
'LPL',
|
'LPL',
|
||||||
'LPPL',
|
'LPPL',
|
||||||
|
'MakeIndex',
|
||||||
'mecab-ipadic',
|
'mecab-ipadic',
|
||||||
|
'midnight',
|
||||||
'MirOS',
|
'MirOS',
|
||||||
'MIT',
|
'MIT',
|
||||||
'MIT with advertising',
|
'MIT with advertising',
|
||||||
@ -162,6 +170,7 @@ setOption("ValidLicenses", (
|
|||||||
'MPLv1.0+',
|
'MPLv1.0+',
|
||||||
'MPLv1.1',
|
'MPLv1.1',
|
||||||
'MPLv1.1+',
|
'MPLv1.1+',
|
||||||
|
'MPLv2.0',
|
||||||
'MS-PL',
|
'MS-PL',
|
||||||
'MS-RL',
|
'MS-RL',
|
||||||
'Naumen',
|
'Naumen',
|
||||||
@ -171,6 +180,7 @@ setOption("ValidLicenses", (
|
|||||||
'Newmat',
|
'Newmat',
|
||||||
'Newsletr',
|
'Newsletr',
|
||||||
'NGPL',
|
'NGPL',
|
||||||
|
'NLPL',
|
||||||
'Nokia',
|
'Nokia',
|
||||||
'NOSL',
|
'NOSL',
|
||||||
'Noweb',
|
'Noweb',
|
||||||
@ -189,11 +199,13 @@ setOption("ValidLicenses", (
|
|||||||
'OSL 2.1+',
|
'OSL 2.1+',
|
||||||
'OSL 3.0',
|
'OSL 3.0',
|
||||||
'OSL 3.0+',
|
'OSL 3.0+',
|
||||||
|
'Par',
|
||||||
'Phorum',
|
'Phorum',
|
||||||
'PHP',
|
'PHP',
|
||||||
'PlainTeX',
|
'PlainTeX',
|
||||||
'Plexus',
|
'Plexus',
|
||||||
'PostgreSQL',
|
'PostgreSQL',
|
||||||
|
'psfrag',
|
||||||
'psutils',
|
'psutils',
|
||||||
'Public Domain',
|
'Public Domain',
|
||||||
'Python',
|
'Python',
|
||||||
@ -233,6 +245,7 @@ setOption("ValidLicenses", (
|
|||||||
'wxWidgets',
|
'wxWidgets',
|
||||||
'Xerox',
|
'Xerox',
|
||||||
'xinetd',
|
'xinetd',
|
||||||
|
'xpp',
|
||||||
'XSkat',
|
'XSkat',
|
||||||
'YPLv1.1',
|
'YPLv1.1',
|
||||||
'Zed',
|
'Zed',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: rpmlint
|
Name: rpmlint
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
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
|
||||||
@ -15,6 +15,8 @@ Source4: %{name}.config.el4
|
|||||||
# EL-5 specific config
|
# EL-5 specific config
|
||||||
Source5: %{name}.config.el5
|
Source5: %{name}.config.el5
|
||||||
Patch0: rpmlint-1.4-encoding.patch
|
Patch0: rpmlint-1.4-encoding.patch
|
||||||
|
# http://sourceforge.net/p/rpmlint/code/ci/671bf6d21c6e878e6ee551ee4e2871df8947ac52/
|
||||||
|
Patch1: rpmlint-1.4-py3-magic-number-fix.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python >= 2.4
|
BuildRequires: python >= 2.4
|
||||||
BuildRequires: rpm-python >= 4.4
|
BuildRequires: rpm-python >= 4.4
|
||||||
@ -44,6 +46,7 @@ and source packages as well as spec files can be checked.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .enc
|
%patch0 -p1 -b .enc
|
||||||
|
%patch1 -p1 -b .py3
|
||||||
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 %{SOURCE2} CHANGES.package.old
|
install -pm 644 %{SOURCE2} CHANGES.package.old
|
||||||
@ -88,6 +91,10 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 14 2012 Tom Callaway <spot@fedoraproject.org> - 1.4-8
|
||||||
|
- add magic number fix for python 3 (bz845972)
|
||||||
|
- update license list
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-7
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user