From 720298cbb556315a9cae83a1c5556355b4a7e984 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Mon, 12 Apr 2010 14:11:45 +0200 Subject: Compat macros. --- support-files/mysql.spec.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'support-files') diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 1f9641a38b1..69016848efb 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -20,18 +20,22 @@ # NOTE: "vendor" is used in upgrade/downgrade check, so you can't # change these, has to be exactly as is. -%define mysql_old_vendor MySQL AB -%define mysql_vendor_2 Sun Microsystems, Inc. -%define mysql_vendor Oracle and/or its affiliates +%define mysql_old_vendor MySQL AB +%define mysql_vendor_2 Sun Microsystems, Inc. +%define mysql_vendor Oracle and/or its affiliates -%define mysql_license GPL -%define mysql_version @VERSION@ +%define mysql_license GPL +%define mysql_version @VERSION@ -%define mysqld_user mysql -%define mysqld_group mysql -%define mysqldatadir /var/lib/mysql +%define mysqld_user mysql +%define mysqld_group mysql +%define mysqldatadir /var/lib/mysql -%define release 1 +%define release 1 + +# Macros we use which are not available in all versions of RPM +%defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} +%undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} # ---------------------------------------------------------------------------- # RPM build tools now automatically detect Perl module dependencies. This -- cgit v1.2.1