# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. ############################################################################## # Some common macro definitions ############################################################################## # 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_version @VERSION@ %define mysqld_user mysql %define mysqld_group mysql %define mysqldatadir /var/lib/mysql %define release 1 # # Macros we use which are not available in all supported versions of RPM # # - defined/undefined are missing on RHEL4 # %if %{expand:%{?defined:0}%{!?defined:1}} %define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} %endif %if %{expand:%{?undefined:0}%{!?undefined:1}} %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} %endif %define fileexists() %(set -x; [ -e "%{1}" ] && echo 1 || echo 0) # ---------------------------------------------------------------------------- # RPM build tools now automatically detect Perl module dependencies. This # detection causes problems as it is broken in some versions, and it also # provides unwanted dependencies from mandatory scripts in our package. # It might not be possible to disable this in all versions of RPM, but here we # try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as # disabling here might fail, and that package has the most problems. # See: # http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html # ---------------------------------------------------------------------------- %undefine __perl_provides %undefine __perl_requires ############################################################################## # Command line handling ############################################################################## # # To enable the following options: # # $ rpmbuild --with