summaryrefslogtreecommitdiff
path: root/support-files/mysql.spec.sh
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-04-12 14:39:42 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-04-12 14:39:42 +0200
commit1e342b455dc9747607260eca849505d4895ba427 (patch)
tree3496cfd24cd0f8d1847dc37f624a6fdbf945371f /support-files/mysql.spec.sh
parent720298cbb556315a9cae83a1c5556355b4a7e984 (diff)
downloadmariadb-git-1e342b455dc9747607260eca849505d4895ba427.tar.gz
Conditionalise defined/undefined.
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r--support-files/mysql.spec.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index 69016848efb..6c7960ad06f 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -34,8 +34,10 @@
%define release 1
# Macros we use which are not available in all versions of RPM
+%if 0%{defined expand}
%defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
%undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
+%endif
# ----------------------------------------------------------------------------
# RPM build tools now automatically detect Perl module dependencies. This