Changes of Revision 3
[+] | Deleted | mysqlcluster-CentOS_5.spec |
@@ -1,1738 +0,0 @@ -############################################################################## -# -# This is the spec file for the distribution specific RPM files -# -############################################################################## - -############################################################################## -# Some common macro definitions -############################################################################## - -%define mysql_version 6.3.20 -%define mysql_vendor Sun Microsystems, Inc. -%define distribution centos5 -%define release 0.%{distribution} - -%define mysqld_user mysql -%define mysqld_group mysql -%define mysqldatadir /var/lib/mysql -%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com - -# ------------------------------------------------------------------------------ -# Meta information, don't remove! -# ------------------------------------------------------------------------------ -# norootforbuild - -# ------------------------------------------------------------------------------ -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html -# ------------------------------------------------------------------------------ -%define __os_install_post /usr/lib/rpm/brp-compress - -# ------------------------------------------------------------------------------ -# We don't package all files installed into the build root by intention - -# See BUG#998 for details. -# ------------------------------------------------------------------------------ -%define _unpackaged_files_terminate_build 0 - -# ------------------------------------------------------------------------------ -# RPM build tools now automatically detects Perl module dependencies. This -# detection gives problems as it is broken in some versions, and it also -# give unwanted dependencies from mandatory scripts in our package. -# Might not be possible to disable in all RPM tool versions, but here we -# try. 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 -############################################################################## - -# ---------------------------------------------------------------------- -# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) -# to build with yaSSL support (off by default) -# ---------------------------------------------------------------------- -%{?_with_yassl:%define YASSL_BUILD 1} -%{!?_with_yassl:%define YASSL_BUILD 0} - -# ---------------------------------------------------------------------- -# use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) -# to include libgcc (as libmygcc) (on by default) -# ---------------------------------------------------------------------- -%{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} -%{?_with_libgcc:%define WITH_LIBGCC 1} -%{?_without_libgcc:%define WITH_LIBGCC 0} - -############################################################################## -# Product definitions - one of these has to be defined via the RPM build -# options, e.g. "--define 'enterprise 1'" -############################################################################## - -%{!?advanced:%define advanced 0} -%{!?advanced_gpl:%define advanced_gpl 0} -%{!?enterprise:%define enterprise 0} -%{!?enterprise_gpl:%define enterprise_gpl 0} -%{!?cluster_com:%define cluster_com 0} -%{!?cluster_com_pro:%define cluster_com_pro 0} -%{!?cluster_gpl:%define cluster_gpl 0} -%{!?community:%define community 0} -%{!?community_maria:%define community_maria 0} - -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html - -%define __os_install_post /usr/lib/rpm/brp-compress - -%if %{community} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community -%define server_suffix -community -%define ndbug_comment MySQL Community Server (GPL) -%define debug_comment MySQL Community Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{community_maria} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community-maria -%define server_suffix -community-maria -%define ndbug_comment MySQL Community Server [Maria] (GPL) -%define debug_comment MySQL Community Server - Debug [Maria] (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 1 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{advanced} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced -%define server_suffix -advanced -%define ndbug_comment MySQL Advanced Server (Commercial) -%define debug_comment MySQL Advanced Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt-fast -%define DEBUG_TEST_MODE test-bt-debug-fast -%endif - -%if %{advanced_gpl} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced-gpl -%define server_suffix -advanced-gpl -%define ndbug_comment MySQL Advanced Server (GPL) -%define debug_comment MySQL Advanced Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{enterprise} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -enterprise -%define server_suffix -enterprise -%define ndbug_comment MySQL Enterprise Server (Commercial) -%define debug_comment MySQL Enterprise Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 0 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 | ||
[+] | Deleted | mysqlcluster-RHEL_5.spec ^ |
@@ -1,1738 +0,0 @@ -############################################################################## -# -# This is the spec file for the distribution specific RPM files -# -############################################################################## - -############################################################################## -# Some common macro definitions -############################################################################## - -%define mysql_version 6.3.20 -%define mysql_vendor Sun Microsystems, Inc. -%define distribution rhel5 -%define release 0.%{distribution} - -%define mysqld_user mysql -%define mysqld_group mysql -%define mysqldatadir /var/lib/mysql -%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com - -# ------------------------------------------------------------------------------ -# Meta information, don't remove! -# ------------------------------------------------------------------------------ -# norootforbuild - -# ------------------------------------------------------------------------------ -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html -# ------------------------------------------------------------------------------ -%define __os_install_post /usr/lib/rpm/brp-compress - -# ------------------------------------------------------------------------------ -# We don't package all files installed into the build root by intention - -# See BUG#998 for details. -# ------------------------------------------------------------------------------ -%define _unpackaged_files_terminate_build 0 - -# ------------------------------------------------------------------------------ -# RPM build tools now automatically detects Perl module dependencies. This -# detection gives problems as it is broken in some versions, and it also -# give unwanted dependencies from mandatory scripts in our package. -# Might not be possible to disable in all RPM tool versions, but here we -# try. 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 -############################################################################## - -# ---------------------------------------------------------------------- -# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) -# to build with yaSSL support (off by default) -# ---------------------------------------------------------------------- -%{?_with_yassl:%define YASSL_BUILD 1} -%{!?_with_yassl:%define YASSL_BUILD 0} - -# ---------------------------------------------------------------------- -# use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) -# to include libgcc (as libmygcc) (on by default) -# ---------------------------------------------------------------------- -%{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} -%{?_with_libgcc:%define WITH_LIBGCC 1} -%{?_without_libgcc:%define WITH_LIBGCC 0} - -############################################################################## -# Product definitions - one of these has to be defined via the RPM build -# options, e.g. "--define 'enterprise 1'" -############################################################################## - -%{!?advanced:%define advanced 0} -%{!?advanced_gpl:%define advanced_gpl 0} -%{!?enterprise:%define enterprise 0} -%{!?enterprise_gpl:%define enterprise_gpl 0} -%{!?cluster_com:%define cluster_com 0} -%{!?cluster_com_pro:%define cluster_com_pro 0} -%{!?cluster_gpl:%define cluster_gpl 0} -%{!?community:%define community 0} -%{!?community_maria:%define community_maria 0} - -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html - -%define __os_install_post /usr/lib/rpm/brp-compress - -%if %{community} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community -%define server_suffix -community -%define ndbug_comment MySQL Community Server (GPL) -%define debug_comment MySQL Community Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{community_maria} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community-maria -%define server_suffix -community-maria -%define ndbug_comment MySQL Community Server [Maria] (GPL) -%define debug_comment MySQL Community Server - Debug [Maria] (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 1 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{advanced} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced -%define server_suffix -advanced -%define ndbug_comment MySQL Advanced Server (Commercial) -%define debug_comment MySQL Advanced Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt-fast -%define DEBUG_TEST_MODE test-bt-debug-fast -%endif - -%if %{advanced_gpl} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced-gpl -%define server_suffix -advanced-gpl -%define ndbug_comment MySQL Advanced Server (GPL) -%define debug_comment MySQL Advanced Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{enterprise} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -enterprise -%define server_suffix -enterprise -%define ndbug_comment MySQL Enterprise Server (Commercial) -%define debug_comment MySQL Enterprise Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 0 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 | ||
[+] | Deleted | mysqlcluster-SLE_10.spec ^ |
@@ -1,1738 +0,0 @@ -############################################################################## -# -# This is the spec file for the distribution specific RPM files -# -############################################################################## - -############################################################################## -# Some common macro definitions -############################################################################## - -%define mysql_version 6.3.20 -%define mysql_vendor Sun Microsystems, Inc. -%define distribution sles10 -%define release 0.%{distribution} - -%define mysqld_user mysql -%define mysqld_group mysql -%define mysqldatadir /var/lib/mysql -%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com - -# ------------------------------------------------------------------------------ -# Meta information, don't remove! -# ------------------------------------------------------------------------------ -# norootforbuild - -# ------------------------------------------------------------------------------ -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html -# ------------------------------------------------------------------------------ -%define __os_install_post /usr/lib/rpm/brp-compress - -# ------------------------------------------------------------------------------ -# We don't package all files installed into the build root by intention - -# See BUG#998 for details. -# ------------------------------------------------------------------------------ -%define _unpackaged_files_terminate_build 0 - -# ------------------------------------------------------------------------------ -# RPM build tools now automatically detects Perl module dependencies. This -# detection gives problems as it is broken in some versions, and it also -# give unwanted dependencies from mandatory scripts in our package. -# Might not be possible to disable in all RPM tool versions, but here we -# try. 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 -############################################################################## - -# ---------------------------------------------------------------------- -# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) -# to build with yaSSL support (off by default) -# ---------------------------------------------------------------------- -%{?_with_yassl:%define YASSL_BUILD 1} -%{!?_with_yassl:%define YASSL_BUILD 0} - -# ---------------------------------------------------------------------- -# use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) -# to include libgcc (as libmygcc) (on by default) -# ---------------------------------------------------------------------- -%{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} -%{?_with_libgcc:%define WITH_LIBGCC 1} -%{?_without_libgcc:%define WITH_LIBGCC 0} - -############################################################################## -# Product definitions - one of these has to be defined via the RPM build -# options, e.g. "--define 'enterprise 1'" -############################################################################## - -%{!?advanced:%define advanced 0} -%{!?advanced_gpl:%define advanced_gpl 0} -%{!?enterprise:%define enterprise 0} -%{!?enterprise_gpl:%define enterprise_gpl 0} -%{!?cluster_com:%define cluster_com 0} -%{!?cluster_com_pro:%define cluster_com_pro 0} -%{!?cluster_gpl:%define cluster_gpl 0} -%{!?community:%define community 0} -%{!?community_maria:%define community_maria 0} - -# On SuSE 9 no separate "debuginfo" package is built. To enable basic -# debugging on that platform, we don't strip binaries on SuSE 9. We -# disable the strip of binaries by redefining the RPM macro -# "__os_install_post" leaving out the script calls that normally does -# this. We do this in all cases, as on platforms where "debuginfo" is -# created, a script "find-debuginfo.sh" will be called that will do -# the strip anyway, part of separating the executable and debug -# information into separate files put into separate packages. -# -# Some references (shows more advanced conditional usage): -# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html -# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html -# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html -# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html - -%define __os_install_post /usr/lib/rpm/brp-compress - -%if %{community} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community -%define server_suffix -community -%define ndbug_comment MySQL Community Server (GPL) -%define debug_comment MySQL Community Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{community_maria} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -community-maria -%define server_suffix -community-maria -%define ndbug_comment MySQL Community Server [Maria] (GPL) -%define debug_comment MySQL Community Server - Debug [Maria] (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 1 -%define INNODB_BUILD 1 -%define MARIA_BUILD 1 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{advanced} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced -%define server_suffix -advanced -%define ndbug_comment MySQL Advanced Server (Commercial) -%define debug_comment MySQL Advanced Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt-fast -%define DEBUG_TEST_MODE test-bt-debug-fast -%endif - -%if %{advanced_gpl} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -advanced-gpl -%define server_suffix -advanced-gpl -%define ndbug_comment MySQL Advanced Server (GPL) -%define debug_comment MySQL Advanced Server - Debug (GPL) -%define commercial 0 -%define PARTITION_BUILD 1 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 -%define NORMAL_TEST_MODE test-bt -%define DEBUG_TEST_MODE test-bt-debug -%endif - -%if %{enterprise} -%define product_name MySQL Server -%define base_product_prefix MySQL -%define product_prefix MySQL -%define product_suffix -enterprise -%define server_suffix -enterprise -%define ndbug_comment MySQL Enterprise Server (Commercial) -%define debug_comment MySQL Enterprise Server - Debug (Commercial) -%define commercial 1 -%define PARTITION_BUILD 0 -%define CLUSTER_BUILD 0 -%define COMMUNITY_BUILD 0 -%define INNODB_BUILD 1 -%define MARIA_BUILD 0 | ||
[-] | Added | mysqlcluster.spec ^ |
x 1
2 +############################################################################## 3 +# 4 +# This is the spec file for the distribution specific RPM files 5 +# 6 +############################################################################## 7 + 8 +############################################################################## 9 +# Some common macro definitions 10 +############################################################################## 11 + 12 +%define mysql_version 6.3.20 13 +%define mysql_vendor Sun Microsystems, Inc. 14 + 15 +%if 0%{?sles_verson} == 10 16 +%define distribution sles10 17 +%define %dist_long "SUSE Linux Enterprise 10" 18 +%endif 19 +%if 0%{?rhel_version} == 5 20 +%define distribution rhel5 21 +%define %dist_long "Redhat Enterprise Linux 5" 22 +%endif 23 +%if 0%{?centos_version} == 5 24 +%define distribution centos5 25 +%define %dist_long "Community Enterprise Operationg System 5" 26 +%endif 27 + 28 +%define release 0.%{distribution} 29 + 30 +%define mysqld_user mysql 31 +%define mysqld_group mysql 32 +%define mysqldatadir /var/lib/mysql 33 +%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com 34 + 35 +# ------------------------------------------------------------------------------ 36 +# Meta information, don't remove! 37 +# ------------------------------------------------------------------------------ 38 +# norootforbuild 39 + 40 +# ------------------------------------------------------------------------------ 41 +# On SuSE 9 no separate "debuginfo" package is built. To enable basic 42 +# debugging on that platform, we don't strip binaries on SuSE 9. We 43 +# disable the strip of binaries by redefining the RPM macro 44 +# "__os_install_post" leaving out the script calls that normally does 45 +# this. We do this in all cases, as on platforms where "debuginfo" is 46 +# created, a script "find-debuginfo.sh" will be called that will do 47 +# the strip anyway, part of separating the executable and debug 48 +# information into separate files put into separate packages. 49 +# 50 +# Some references (shows more advanced conditional usage): 51 +# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html 52 +# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html 53 +# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html 54 +# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html 55 +# ------------------------------------------------------------------------------ 56 +%define __os_install_post /usr/lib/rpm/brp-compress 57 + 58 +# ------------------------------------------------------------------------------ 59 +# We don't package all files installed into the build root by intention - 60 +# See BUG#998 for details. 61 +# ------------------------------------------------------------------------------ 62 +%define _unpackaged_files_terminate_build 0 63 + 64 +# ------------------------------------------------------------------------------ 65 +# RPM build tools now automatically detects Perl module dependencies. This 66 +# detection gives problems as it is broken in some versions, and it also 67 +# give unwanted dependencies from mandatory scripts in our package. 68 +# Might not be possible to disable in all RPM tool versions, but here we 69 +# try. We keep the "AutoReqProv: no" for the "test" sub package, as disabling 70 +# here might fail, and that package has the most problems. 71 +# See http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides 72 +# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html 73 +# ------------------------------------------------------------------------------ 74 +%undefine __perl_provides 75 +%undefine __perl_requires 76 + 77 +############################################################################## 78 +# Command line handling 79 +############################################################################## 80 + 81 +# ---------------------------------------------------------------------- 82 +# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) 83 +# to build with yaSSL support (off by default) 84 +# ---------------------------------------------------------------------- 85 +%{?_with_yassl:%define YASSL_BUILD 1} 86 +%{!?_with_yassl:%define YASSL_BUILD 0} 87 + 88 +# ---------------------------------------------------------------------- 89 +# use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) 90 +# to include libgcc (as libmygcc) (on by default) 91 +# ---------------------------------------------------------------------- 92 +%{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} 93 +%{?_with_libgcc:%define WITH_LIBGCC 1} 94 +%{?_without_libgcc:%define WITH_LIBGCC 0} 95 + 96 +############################################################################## 97 +# Product definitions - one of these has to be defined via the RPM build 98 +# options, e.g. "--define 'enterprise 1'" 99 +############################################################################## 100 + 101 +%{!?advanced:%define advanced 0} 102 +%{!?advanced_gpl:%define advanced_gpl 0} 103 +%{!?enterprise:%define enterprise 0} 104 +%{!?enterprise_gpl:%define enterprise_gpl 0} 105 +%{!?cluster_com:%define cluster_com 0} 106 +%{!?cluster_com_pro:%define cluster_com_pro 0} 107 +%{!?cluster_gpl:%define cluster_gpl 0} 108 +%{!?community:%define community 0} 109 +%{!?community_maria:%define community_maria 0} 110 + 111 +# On SuSE 9 no separate "debuginfo" package is built. To enable basic 112 +# debugging on that platform, we don't strip binaries on SuSE 9. We 113 +# disable the strip of binaries by redefining the RPM macro 114 +# "__os_install_post" leaving out the script calls that normally does 115 +# this. We do this in all cases, as on platforms where "debuginfo" is 116 +# created, a script "find-debuginfo.sh" will be called that will do 117 +# the strip anyway, part of separating the executable and debug 118 +# information into separate files put into separate packages. 119 +# 120 +# Some references (shows more advanced conditional usage): 121 +# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html 122 +# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html 123 +# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html 124 +# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html 125 + 126 +%define __os_install_post /usr/lib/rpm/brp-compress 127 + 128 +%if %{community} 129 +%define product_name MySQL Server 130 +%define base_product_prefix MySQL 131 +%define product_prefix MySQL 132 +%define product_suffix -community 133 +%define server_suffix -community 134 +%define ndbug_comment MySQL Community Server (GPL) 135 +%define debug_comment MySQL Community Server - Debug (GPL) 136 +%define commercial 0 137 +%define PARTITION_BUILD 1 138 +%define CLUSTER_BUILD 0 139 +%define COMMUNITY_BUILD 1 140 +%define INNODB_BUILD 1 141 +%define MARIA_BUILD 0 142 +%define NORMAL_TEST_MODE test-bt 143 +%define DEBUG_TEST_MODE test-bt-debug 144 +%endif 145 + 146 +%if %{community_maria} 147 +%define product_name MySQL Server 148 +%define base_product_prefix MySQL 149 +%define product_prefix MySQL 150 +%define product_suffix -community-maria 151 +%define server_suffix -community-maria 152 +%define ndbug_comment MySQL Community Server [Maria] (GPL) 153 +%define debug_comment MySQL Community Server - Debug [Maria] (GPL) 154 +%define commercial 0 155 +%define PARTITION_BUILD 1 156 +%define CLUSTER_BUILD 0 157 +%define COMMUNITY_BUILD 1 158 +%define INNODB_BUILD 1 159 +%define MARIA_BUILD 1 160 +%define NORMAL_TEST_MODE test-bt 161 +%define DEBUG_TEST_MODE test-bt-debug 162 +%endif 163 + 164 +%if %{advanced} 165 +%define product_name MySQL Server 166 +%define base_product_prefix MySQL 167 +%define product_prefix MySQL 168 +%define product_suffix -advanced 169 +%define server_suffix -advanced 170 +%define ndbug_comment MySQL Advanced Server (Commercial) 171 +%define debug_comment MySQL Advanced Server - Debug (Commercial) 172 +%define commercial 1 173 +%define PARTITION_BUILD 1 174 +%define CLUSTER_BUILD 0 175 +%define COMMUNITY_BUILD 0 176 +%define INNODB_BUILD 1 177 +%define MARIA_BUILD 0 178 +%define NORMAL_TEST_MODE test-bt-fast 179 +%define DEBUG_TEST_MODE test-bt-debug-fast 180 +%endif 181 + 182 +%if %{advanced_gpl} 183 +%define product_name MySQL Server 184 +%define base_product_prefix MySQL 185 +%define product_prefix MySQL 186 +%define product_suffix -advanced-gpl 187 +%define server_suffix -advanced-gpl 188 +%define ndbug_comment MySQL Advanced Server (GPL) 189 +%define debug_comment MySQL Advanced Server - Debug (GPL) 190 +%define commercial 0 191 +%define PARTITION_BUILD 1 192 +%define CLUSTER_BUILD 0 193 +%define COMMUNITY_BUILD 0 194 +%define INNODB_BUILD 1 195 +%define MARIA_BUILD 0 196 +%define NORMAL_TEST_MODE test-bt 197 +%define DEBUG_TEST_MODE test-bt-debug 198 +%endif 199 + 200 +%if %{enterprise} 201 |