summaryrefslogtreecommitdiff
path: root/support-files/mysql.spec.sh
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-04-12 14:11:45 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-04-12 14:11:45 +0200
commit720298cbb556315a9cae83a1c5556355b4a7e984 (patch)
treeb6a3a78fa49db491c5bf1c8a4981fa9c0b077775 /support-files/mysql.spec.sh
parent9c1f9560d4f950ceb321e0595207e8bac4f81c94 (diff)
downloadmariadb-git-720298cbb556315a9cae83a1c5556355b4a7e984.tar.gz
Compat macros.
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r--support-files/mysql.spec.sh22
1 files changed, 13 insertions, 9 deletions
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