2010-01-27 18:18:50 +01:00
|
|
|
--- SpecCheck.py
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ SpecCheck.py
|
2010-01-27 18:18:50 +01:00
|
|
|
@@ -407,6 +407,10 @@
|
2009-09-16 18:41:21 +02:00
|
|
|
printWarning(pkg, 'comparison-operator-in-deptoken',
|
|
|
|
conf)
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
+ if current_section in ('post', 'postun'):
|
|
|
|
+ if line.find('%run_ldconfig') != -1:
|
|
|
|
+ printWarning(pkg, 'deprecated-use-of-%run_ldconfig')
|
|
|
|
+
|
|
|
|
if current_section == 'changelog':
|
2010-01-27 18:18:50 +01:00
|
|
|
res = AbstractCheck.macro_regex.search(line)
|
2008-04-17 04:52:37 +02:00
|
|
|
if res and len(res.group(1)) % 2:
|
2010-01-27 18:18:50 +01:00
|
|
|
@@ -627,6 +631,14 @@
|
2008-04-17 04:52:37 +02:00
|
|
|
'''Make check or other automated regression test should be run in %check, as
|
|
|
|
they can be disabled with a rpm macro for short circuiting purposes.''',
|
|
|
|
|
|
|
|
+'deprecated-use-of-%run_ldconfig',
|
|
|
|
+'''According to the new SUSE Packaging Conventions, the use of %run_ldconfig
|
|
|
|
+is deprecated. use
|
|
|
|
+
|
|
|
|
+%post(un) -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+instead.''',
|
|
|
|
+
|
|
|
|
'macro-in-%changelog',
|
|
|
|
'''Macros are expanded in %changelog too, which can in unfortunate cases lead
|
|
|
|
to the package not building at all, or other subtle unexpected conditions that
|