SHA256
1
0
forked from pool/rpmlint

- new version 1.2

* Check outdated or misspelled FSF addresses in text files.

OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=20
This commit is contained in:
Ludwig Nussel 2011-05-19 14:19:35 +00:00 committed by Git OBS Bridge
parent 394c3e1c8e
commit a78a8fd6fa
7 changed files with 37 additions and 24 deletions

View File

@ -1,8 +1,14 @@
commit 29e43a3e1676aa452f730a741d00ef4ac7baec96
Author: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue May 17 12:56:38 2011 +0200
remove-expand-macros.diff
Index: TagsCheck.py
===================================================================
--- TagsCheck.py.orig
+++ TagsCheck.py
@@ -433,13 +433,6 @@ so_dep_regex = re.compile(r'\.so(\.[0-9a
@@ -433,15 +433,6 @@ so_dep_regex = re.compile(r'\.so(\.[0-9a
# we assume that no rpm packages existed before rpm itself existed...
oldest_changelog_timestamp = calendar.timegm(time.strptime("1995-01-01", "%Y-%m-%d"))
@ -12,11 +18,13 @@ Index: TagsCheck.py
- epath = rpm.expandMacro(path)
- if epath != path:
- private_so_paths.add(epath)
- private_so_paths.add(re.sub(r'/lib64(?=/|$)', '/lib', epath))
- private_so_paths.add(re.sub(r'/lib(?=/|$)', '/lib64', epath))
-
_enchant_checkers = {}
def spell_check(pkg, str, fmt, lang, ignored):
@@ -852,30 +845,12 @@ class TagsCheck(AbstractCheck.AbstractCh
@@ -854,30 +845,12 @@ class TagsCheck(AbstractCheck.AbstractCh
(apply(Pkg.formatRequire, obs),
apply(Pkg.formatRequire, prov)))

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:975c527be44e4b086362fcd1aa0eca37633474cabcc20f9b5ab200eb638b274a
size 125067

3
rpmlint-1.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59d18da1b8b07eda9079f861fe3ef1176b8bcc32e9f81a56ecfa80e92e6fbe46
size 114648

View File

@ -9,11 +9,11 @@ git-svn-id: http://rpmlint.zarb.org/svn/trunk@1865 9bc8b190-ac0f-0410-8968-dc7d1
config | 4 ++++
2 files changed, 14 insertions(+), 0 deletions(-)
Index: rpmlint-1.1/BinariesCheck.py
Index: rpmlint-1.2/BinariesCheck.py
===================================================================
--- rpmlint-1.1.orig/BinariesCheck.py
+++ rpmlint-1.1/BinariesCheck.py
@@ -189,6 +189,8 @@ so_regex = re.compile('/lib(64)?/[^/]+\.
--- rpmlint-1.2.orig/BinariesCheck.py
+++ rpmlint-1.2/BinariesCheck.py
@@ -198,6 +198,8 @@ so_regex = re.compile('/lib(64)?/[^/]+\.
validso_regex = re.compile('(\.so\.\d+(\.\d+)*|\d\.so)$')
sparc_regex = re.compile('SPARC32PLUS|SPARC V9|UltraSPARC')
system_lib_paths = Config.getOption('SystemLibPaths', DEFAULT_SYSTEM_LIB_PATHS)
@ -22,7 +22,7 @@ Index: rpmlint-1.1/BinariesCheck.py
usr_lib_regex = re.compile('^/usr/lib(64)?/')
bin_regex = re.compile('^(/usr(/X11R6)?)?/s?bin/')
soversion_regex = re.compile('.*?([0-9][.0-9]*)\\.so|.*\\.so\\.([0-9][.0-9]*).*')
@@ -377,6 +379,11 @@ class BinariesCheck(AbstractCheck.Abstra
@@ -386,6 +388,11 @@ class BinariesCheck(AbstractCheck.Abstra
if not is_exec and not is_shobj:
continue
@ -34,7 +34,7 @@ Index: rpmlint-1.1/BinariesCheck.py
if is_exec:
if bin_regex.search(fname):
@@ -385,6 +392,10 @@ class BinariesCheck(AbstractCheck.Abstra
@@ -394,6 +401,10 @@ class BinariesCheck(AbstractCheck.Abstra
if ocaml_mixed_regex.search(bin_info.tail):
printWarning(pkg, 'ocaml-mixed-executable', fname)
@ -45,7 +45,7 @@ Index: rpmlint-1.1/BinariesCheck.py
if bin_info.readelf_error:
continue
@@ -603,6 +614,10 @@ http://bugs.debian.org/cgi-bin/bugreport
@@ -612,6 +623,10 @@ http://bugs.debian.org/cgi-bin/bugreport
project settings. So there's normally no need to manually strip binaries.
Left over unstripped binaries could therefore indicate a bug in the automatic
stripping process.''',
@ -56,10 +56,10 @@ Index: rpmlint-1.1/BinariesCheck.py
)
# BinariesCheck.py ends here
Index: rpmlint-1.1/config
Index: rpmlint-1.2/config
===================================================================
--- rpmlint-1.1.orig/config
+++ rpmlint-1.1/config
--- rpmlint-1.2.orig/config
+++ rpmlint-1.2/config
@@ -130,6 +130,10 @@ from Config import *
# Type: tuple of strings, default: see DEFAULT_SYSTEM_LIB_PATHS in BinariesCheck
#setOption("SystemLibPaths", ('/lib', '/lib64', '/usr/lib', '/usr/lib64'))

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 19 14:16:42 UTC 2011 - lnussel@suse.de
- new version 1.2
* Check outdated or misspelled FSF addresses in text files.
-------------------------------------------------------------------
Tue May 17 09:41:43 UTC 2011 - lnussel@suse.de

View File

@ -20,11 +20,11 @@
#!BuildIgnore: rpmlint-mini
Name: rpmlint
BuildRequires: rpm-python
BuildRequires: rpm-python xz
Summary: Rpm correctness checker
Version: 1.1
Release: 37
Source0: %{name}-%{version}.tar.bz2
Version: 1.2
Release: 0
Source0: http://rpmlint.zarb.org/download/rpmlint-%{version}.tar.xz
Source1: config
Source1001: config.in
Source2: DesktopTranslationCheck.py
@ -124,7 +124,6 @@ Patch84: extend-suse-conffiles-check.diff
Patch85: suse-changelog.patch
Patch86: suse-rclink-check.diff
# accepted upstream
Patch87: rpmlint-add-details.diff
Patch88: suse-speccheck-utf8.diff
# accepted upstream
Patch89: rpmlint-pie.diff
@ -207,7 +206,7 @@ Authors:
%patch84
%patch85
%patch86
%patch87 -p1
#patch87 -p1
%patch88
%patch89 -p1
%patch90 -p1

View File

@ -23,9 +23,9 @@ Index: SpecCheck.py
res = prereq_regex.search(line)
if res:
printError(pkg, 'prereq-use', res.group(2))
@@ -756,6 +763,15 @@ set which may result in security issues
depending on the system where the package is built. Add default attributes
using %defattr before it in the %files section, or use per line %attr's.''',
@@ -758,6 +765,15 @@ in the resulting binary package dependin
version (typically < 4.4). Add default attributes using %defattr before it in
the %files section, or use per entry %attr's.''',
+'obsolete-suse-version-check',
+'''The specfile contains a comparison of %suse_version against a suse release