summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-04-30 12:13:42 +0200
committerOlav Vitters <olav@vitters.nl>2020-04-30 12:13:42 +0200
commitc0846cc62512f55ea39bdddd28327c352b7ddd0f (patch)
treeb0f7711060de67e67e49a8f1b137fd897267f05a
parentcae6dc96122f2411fb98a9aeacd2b1daf73812ed (diff)
downloadmgagnome-c0846cc62512f55ea39bdddd28327c352b7ddd0f.tar
mgagnome-c0846cc62512f55ea39bdddd28327c352b7ddd0f.tar.gz
mgagnome-c0846cc62512f55ea39bdddd28327c352b7ddd0f.tar.bz2
mgagnome-c0846cc62512f55ea39bdddd28327c352b7ddd0f.tar.xz
mgagnome-c0846cc62512f55ea39bdddd28327c352b7ddd0f.zip
expand some of the clean-spec regular expressions to make these easier to read
-rwxr-xr-xmgagnome25
1 files changed, 21 insertions, 4 deletions
diff --git a/mgagnome b/mgagnome
index 4881333..0759b9f 100755
--- a/mgagnome
+++ b/mgagnome
@@ -505,7 +505,7 @@ class SpecFile():
'metacpan.org instead of www.cpan.org and search.cpan.org',
r'\g<keeppre>https://cpan.metacpan.org/\g<keepmore>\g<keeppost>',
re.compile(r'^(?P<keeppre>Source[0-9]*[ \t]*:[^\n]+)'
- r'https?://(?:(?:www\.cpan\.org)(?:/CPAN)?|(?:(?i)search\.cpan\.org)/CPAN)/+'
+ r'https?://(?:(?:www\.cpan\.org)(?:/CPAN)?|(?:search\.cpan\.org)/CPAN)/+'
r'(?P<keepmore>authors/id/|modules/by-module/|modules/by-authors/id/)'
r'(?P<keeppost>[^\n]+\n)',
re.MULTILINE + re.IGNORECASE)
@@ -520,9 +520,26 @@ class SpecFile():
r'\g<keeppre>\n\g<keeppre>.*',
re.compile(r'^(?P<keeppre>%{_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)),
+ (
+ '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)
+ ),
+ (
+ 'make_build already implies V=1 and VERBOSE=1, remove these',
+ r'%make_build',
+ re.compile(r'^%make_build(?:[ \t]+(?:V=1|VERBOSE=1))+\b', re.MULTILINE)
+ ),
(
'change find_lang --with-help into --with-gnome',
r'\g<keeppre> --with-gnome\g<keeppost>',