From 9a5056a80e75c5a09f7e50d038d20462e5bafb3e Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Wed, 22 Apr 2020 13:37:21 +0200 Subject: convert %make to %make_build --- mgagnome | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mgagnome b/mgagnome index 0b5e791..eee5a60 100755 --- a/mgagnome +++ b/mgagnome @@ -371,6 +371,7 @@ class SpecFile(object): ('keep library matching using two lines', r'\g\n\g.*', re.compile(r'^(?P%{_libdir}[^\n]+})$\n(?P=keeppre)\{,\.\*\}$', re.MULTILINE)), ('make use of autopatch', r'%autopatch -p1', re.compile(r'^%apply_patches$', re.MULTILINE)), ('change configure2_5x macro to configure', r'%configure', re.compile(r'^%configure2_5x\b', re.MULTILINE)), + ('change make macro to make_build', r'%make_build', re.compile(r'^%make\b', re.MULTILINE), True), ('change find_lang --with-help into --with-gnome', '\g --with-gnome\g', re.compile(r'^(?P\s*\%find_lang[^\\\n]+) --with-help(?P[^\\\n]*\n)', re.MULTILINE + re.IGNORECASE)), ('change find_lang remove duplicate with_gnome', None, re.compile(r'^(?P\%find_lang[^\\\n]+ --with-gnome) --with-gnome(?P[^\\\n]*\n)', re.MULTILINE + re.IGNORECASE)), # Use new Python macros @@ -1649,6 +1650,8 @@ def cmd_clean_spec_multi(args): subprocess.call(cmd, cwd=os.path.expanduser(os.path.join(Downstream.PKGROOT, package))) else: # show the diff and undo all changes + if s.should_rebuild: + print("NOTICE: Package should be rebuilt") print(s.changes) s.ensure_no_local_changes(force=True) -- cgit v1.2.1