aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-04-12 11:10:55 (GMT)
committerOlivier Blin <blino@mageia.org>2011-04-12 11:10:55 (GMT)
commit508eff45fdc19b48ebd43b343a45b7f53085afea (patch)
tree24ce2ca1f526cb19951a8f1f935b6ad8fdd99abf
parent51b7e7399a663eb1f609ff4371d83db6a87bc3aa (diff)
make mgaversion macro return distro_release
-rw-r--r--build.macros.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.macros.in b/build.macros.in
index 4c5ec11..c9790a0 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -148,7 +148,7 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} -
# - "9.1" => 910
# - "10.2.2" => 1022
# (user may copy the following line in specfile)
-%mgaversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/release)
+%mgaversion %distro_release
%distsuffix .mga