Dirk Mueller
3073721c60
* rpmdiff: Teach rpmdiff about pretrans and posttrans * SpecCheck.py: merge patch from #97, using BuildArch with something else than Noarch is likely a error and causing issues. * FilesCheck.py: Add Python 3.3 magic number * FilesCheck.py, InitScriptCheck.py, MenuCheck.py, Pkg.py, PostCheck.py: Prepare for rpm-python possibly returning script progs as arrays. OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=133
18 lines
759 B
Diff
18 lines
759 B
Diff
# Confusing message. The problem is not that the file does not end
|
|
# with ".spec", but that there is a mismatch of specname and pkg name.
|
|
Index: rpmlint-1.4/SpecCheck.py
|
|
===================================================================
|
|
--- rpmlint-1.4.orig/SpecCheck.py
|
|
+++ rpmlint-1.4/SpecCheck.py
|
|
@@ -605,8 +605,8 @@ addDetails(
|
|
SPEC file to build a valid RPM package.''',
|
|
|
|
'invalid-spec-name',
|
|
-'''Your spec filename must end with '.spec'. If it's not the case, rename your
|
|
-file and rebuild your package.''',
|
|
+'''The spec file name (without the .spec suffix) must match the package name
|
|
+("Name:" tag). Either rename your package or the specfile.''',
|
|
|
|
'non-utf8-spec-file',
|
|
'''The character encoding of the spec file is not UTF-8. Convert it for
|