aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--configure.ac2
-rwxr-xr-xfind-requires.in8
3 files changed, 11 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 7edfd20..c5832f7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
- Add Java macros from JPackage ( %create_jar_links(), %remove_java_binaries, and gcj functions )
+Version 1.145 - 08 Nov 2011, by Jerome Quelin
+- extract perl requires from MYMETA.yml / MYMETA.json when present
+
Version 1.144 - 19 Sep 2011, by Funda Wang
- Add support for fdo /usr/share/help when find_lang
diff --git a/configure.ac b/configure.ac
index 71ec84b..018c0bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
# $Id: configure.ac 271266 2010-11-04 10:43:28Z fwang $
AC_PREREQ(2.59)
-AC_INIT(rpm-mageia-setup, 1.144, jquelin@mageia.org)
+AC_INIT(rpm-mageia-setup, 1.145, jquelin@mageia.org)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.9 -Wno-portability no-dist-gzip dist-xz)
AC_CONFIG_SRCDIR
diff --git a/find-requires.in b/find-requires.in
index b154c8d..751e8b1 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -179,8 +179,14 @@ fi
#
# --- Perl modules.
+perlmymeta=$( echo $filelist | tr '[:blank:]' \\n | egrep 'doc/[^/]+/MYMETA.(yml|json)$' | head -1 )
perlmeta=$( echo $filelist | tr '[:blank:]' \\n | egrep 'doc/[^/]+/META.(yml|json)$' | head -1 )
-if [ -n "$perlmeta" ]
+if [ -n "$perlmymeta" ]
+then
+ [ -x @RPMVENDORDIR@/perl.req-from-meta ] && \
+ @RPMVENDORDIR@/perl.req-from-meta $perlmymeta \
+ && test ${PIPESTATUS[0]} -ne 0 && echo 'error: @RPMVENDORDIR@/perl.req-from-meta failed' >&2 && exit 1
+elif [ -n "$perlmeta" ]
then
[ -x @RPMVENDORDIR@/perl.req-from-meta ] && \
@RPMVENDORDIR@/perl.req-from-meta $perlmeta \