Commit 77629dcd authored by Jonathan Perkin's avatar Jonathan Perkin

Combined spec file.

parent 9f284b1e
...@@ -24,115 +24,173 @@ ...@@ -24,115 +24,173 @@
%define mysql_vendor_2 Sun Microsystems, Inc. %define mysql_vendor_2 Sun Microsystems, Inc.
%define mysql_vendor Oracle and/or its affiliates %define mysql_vendor Oracle and/or its affiliates
%define mysql_license GPL
%define mysql_version @VERSION@ %define mysql_version @VERSION@
%define mysqld_user mysql %define mysqld_user mysql
%define mysqld_group mysql %define mysqld_group mysql
%define mysqldatadir /var/lib/mysql %define mysqldatadir /var/lib/mysql
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
%define release 1
# ------------------------------------------------------------------------------
# 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 # RPM build tools now automatically detect Perl module dependencies. This
# disable the strip of binaries by redefining the RPM macro # detection causes problems as it is broken in some versions, and it also
# "__os_install_post" leaving out the script calls that normally does # provides unwanted dependencies from mandatory scripts in our package.
# this. We do this in all cases, as on platforms where "debuginfo" is # It might not be possible to disable this in all versions of RPM, but here we
# created, a script "find-debuginfo.sh" will be called that will do # try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
# the strip anyway, part of separating the executable and debug # disabling here might fail, and that package has the most problems.
# information into separate files put into separate packages. # See:
# # http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
# 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
# ------------------------------------------------------------------------------
# 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 # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
# ------------------------------------------------------------------------------ # ----------------------------------------------------------------------------
%undefine __perl_provides %undefine __perl_provides
%undefine __perl_requires %undefine __perl_requires
############################################################################## ##############################################################################
# Command line handling # Command line handling
############################################################################## ##############################################################################
#
# To enable the following options:
#
# $ rpmbuild --with <option> # RPM 4.x+
# $ rpmbuild --define '_with_<option> 1' # RPM 3.x
#
# To disable:
#
# $ rpmbuild --without <option> # RPM 4.x+
# $ rpmbuild --define '_without_<option> 1' # RPM 3.x
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------------
# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) # Commercial builds
# to build with yaSSL support (off by default) # ----------------------------------------------------------------------------
# ---------------------------------------------------------------------- %if %{undefined commercial}
%define commercial 0
%endif
# ----------------------------------------------------------------------------
# Source name
# ----------------------------------------------------------------------------
%if %{undefined src_base}
%define src_base mysql
%endif
%define src_dir %{src_base}-%{mysql_version}
# ----------------------------------------------------------------------------
# Feature set (storage engines, options). Default to community (everything)
# ----------------------------------------------------------------------------
%if %{undefined feature_set}
%define feature_set community
%endif
# ----------------------------------------------------------------------------
# Server comment strings
# ----------------------------------------------------------------------------
%if %{undefined server_comment_debug}
%define server_comment_debug MySQL Community Server - Debug (GPL)
%endif
%if %{undefined server_comment_release}
%define server_comment_release MySQL Community Server (GPL)
%endif
# ----------------------------------------------------------------------------
# Distribution support
# ----------------------------------------------------------------------------
#
%if "%{distribution}" == "rhel4"
%define distro_description Red Hat Enterprise Linux 4
%define distro_releasetag rhel4
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
%define distro_requires chkconfig coreutils grep procps shadow-utils
%endif
%if "%{distribution}" == "rhel5"
%define distro_description Red Hat Enterprise Linux 5
%define distro_releasetag rhel5
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
%define distro_requires chkconfig coreutils grep procps shadow-utils
%endif
%if "%{distribution}" == "sles10"
%define distro_description SUSE Linux Enterprise Server 10
%define distro_releasetag sles10
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel
%define distro_requires aaa_base coreutils grep procps pwdutils
%endif
%if "%{distribution}" == "sles11"
%define distro_description SUSE Linux Enterprise Server 11
%define distro_releasetag sles11
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel
%define distro_requires aaa_base coreutils grep procps pwdutils
%endif
%if "%{distribution}" == "glibc23"
%define distro_description Generic Linux (glibc version 2.3)
%define distro_releasetag glibc23
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
%define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
%endif
#
# Untested default if distribution is unspecified or not supported
#
%if %{undefined distro_description}
%define distro_description Generic Linux
# leave distro_releasetag empty
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
%define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
%endif
# ----------------------------------------------------------------------------
# Build with yaSSL support (off by default)
# ----------------------------------------------------------------------------
%{?_with_yassl:%define YASSL_BUILD 1} %{?_with_yassl:%define YASSL_BUILD 1}
%{!?_with_yassl:%define YASSL_BUILD 0} %{!?_with_yassl:%define YASSL_BUILD 0}
# ----------------------------------------------------------------------------
# Build using the bundled zlib (on by default)
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# use "rpmbuild --without bundled_zlib" or "rpm --define '_without_bundled_zlib 1'" %{!?_with_bundled_zlib:%{!?_without_bundled_zlib:%define WITH_BUNDLED_ZLIB 1}}
# (for RPM 3.x) to not build using the bundled zlib (on by default)
# ----------------------------------------------------------------------
%{!?_with_bundled_zlib: %{!?_without_bundled_zlib: %define WITH_BUNDLED_ZLIB 1}}
%{?_with_bundled_zlib:%define WITH_BUNDLED_ZLIB 1} %{?_with_bundled_zlib:%define WITH_BUNDLED_ZLIB 1}
%{?_without_bundled_zlib:%define WITH_BUNDLED_ZLIB 0} %{?_without_bundled_zlib:%define WITH_BUNDLED_ZLIB 0}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------------
# support optional "tcmalloc" stuff (experimental) # Support optional "tcmalloc" library (experimental)
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------------
%{?malloc_lib_target:%define WITH_TCMALLOC 1} %{?malloc_lib_target:%define WITH_TCMALLOC 1}
%{!?malloc_lib_target:%define WITH_TCMALLOC 0} %{!?malloc_lib_target:%define WITH_TCMALLOC 0}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------------
# use "rpmbuild --with cluster" or "rpm --define '_with_cluster 1'" (for RPM 3.x) # Build with cluster support (off by default)
# to build with cluster support (off by default) # ----------------------------------------------------------------------------
# ----------------------------------------------------------------------
%{?_with_cluster:%define CLUSTER_BUILD 1} %{?_with_cluster:%define CLUSTER_BUILD 1}
%{!?_with_cluster:%define CLUSTER_BUILD 0} %{!?_with_cluster:%define CLUSTER_BUILD 0}
############################################################################## ##############################################################################
# Product definitions - set for a "community" package # Configuration based upon above user input, not to be set directly
############################################################################## ##############################################################################
%define server_suffix -community %if %{commercial}
%define package_suffix -community %define license_files %{src_dir}/LICENSE.mysql
%define ndbug_comment MySQL Community Server (GPL) %define license_type Commercial
%define debug_comment MySQL Community Server - Debug (GPL) %else
%define commercial 0 %define license_files %{src_dir}/COPYING %{src_dir}/README
%define EMBEDDED_BUILD 1 %define license_type %{mysql_license}
%define PARTITION_BUILD 1 %endif
# Default for CLUSTER_BUILD is "0", but command line option may override it
%define COMMUNITY_BUILD 1
%define INNODB_BUILD 1
%define NORMAL_TEST_MODE test-bt
%define DEBUG_TEST_MODE test-bt-debug
%define release 1.glibc23
%define mysql_license GPL
%define src_dir mysql-%{mysql_version}
############################################################################## ##############################################################################
# Main spec file section # Main spec file section
############################################################################## ##############################################################################
Name: MySQL Name: MySQL%{server_suffix}
Summary: MySQL: a very fast and reliable SQL database server Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases Group: Applications/Databases
Version: @MYSQL_U_SCORE_VERSION@ Version: @MYSQL_U_SCORE_VERSION@
Release: %{release} Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
Distribution: %{distro_description}
License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{mysql_license} license as shown in the Description field. License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{mysql_license} license as shown in the Description field.
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz
URL: http://www.mysql.com/ URL: http://www.mysql.com/
Packager: MySQL Build Team <build@mysql.com> Packager: MySQL Build Team <build@mysql.com>
Vendor: %{mysql_vendor} Vendor: %{mysql_vendor}
Provides: msqlormysql MySQL-server mysql Provides: msqlormysql MySQL-server mysql
BuildRequires: ncurses-devel BuildRequires: %{distro_buildreq}
Obsoletes: mysql
# Think about what you use here since the first step is to # Think about what you use here since the first step is to
# run a rm -rf # run a rm -rf
...@@ -146,11 +204,12 @@ is intended for mission-critical, heavy-load production systems as well ...@@ -146,11 +204,12 @@ is intended for mission-critical, heavy-load production systems as well
as for embedding into mass-deployed software. MySQL is a trademark of as for embedding into mass-deployed software. MySQL is a trademark of
%{mysql_vendor} %{mysql_vendor}
Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. The MySQL software has Dual Licensing, which means you can use the MySQL
Use is subject to license terms. software free of charge under the GNU General Public License
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
This software comes with ABSOLUTELY NO WARRANTY. This is free software, licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
and you are welcome to modify and redistribute it under the GPL license. the GPL. See the chapter "Licensing and Support" in the manual for
further info.
The MySQL web site (http://www.mysql.com/) provides the latest The MySQL web site (http://www.mysql.com/) provides the latest
news and information about the MySQL software. Also please see the news and information about the MySQL software. Also please see the
...@@ -160,67 +219,63 @@ documentation and the manual for more information. ...@@ -160,67 +219,63 @@ documentation and the manual for more information.
# Sub package definition # Sub package definition
############################################################################## ##############################################################################
%package server %package -n MySQL-server%{server_suffix}
Summary: MySQL: a very fast and reliable SQL database server Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases Group: Applications/Databases
Requires: coreutils grep procps /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig Requires: %{distro_requires}
Provides: msqlormysql mysql-server mysql MySQL Provides: msqlormysql mysql-server mysql MySQL MySQL-server
Obsoletes: MySQL mysql mysql-server Obsoletes: MySQL mysql mysql-server MySQL-server
%description server %description -n MySQL-server%{server_suffix}
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
and robust SQL (Structured Query Language) database server. MySQL Server and robust SQL (Structured Query Language) database server. MySQL Server
is intended for mission-critical, heavy-load production systems as well is intended for mission-critical, heavy-load production systems as well
as for embedding into mass-deployed software. MySQL is a trademark of as for embedding into mass-deployed software. MySQL is a trademark of
%{mysql_vendor} %{mysql_vendor}
Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. The MySQL software has Dual Licensing, which means you can use the MySQL
Use is subject to license terms. software free of charge under the GNU General Public License
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
the GPL. See the chapter "Licensing and Support" in the manual for
further info.
This software comes with ABSOLUTELY NO WARRANTY. This is free software, The MySQL web site (http://www.mysql.com/) provides the latest news and
and you are welcome to modify and redistribute it under the GPL license. information about the MySQL software. Also please see the documentation
and the manual for more information.
The MySQL web site (http://www.mysql.com/) provides the latest This package includes the MySQL server binary as well as related utilities
news and information about the MySQL software. Also please see the to run and administer a MySQL server.
documentation and the manual for more information.
This package includes the MySQL server binary
%if %{INNODB_BUILD}
(configured including InnoDB)
%endif
as well as related utilities to run and administer a MySQL server.
If you want to access and work with the database, you have to install If you want to access and work with the database, you have to install
package "MySQL-client" as well! package "MySQL-client%{server_suffix}" as well!
# ------------------------------------------------------------------------------
%package client # ----------------------------------------------------------------------------
%package -n MySQL-client%{server_suffix}
Summary: MySQL - Client Summary: MySQL - Client
Group: Applications/Databases Group: Applications/Databases
Obsoletes: mysql-client Obsoletes: mysql-client MySQL-client
Provides: mysql-client Provides: mysql-client MySQL-client
%description client %description -n MySQL-client%{server_suffix}
This package contains the standard MySQL clients and administration tools. This package contains the standard MySQL clients and administration tools.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
# ----------------------------------------------------------------------------
%if %{CLUSTER_BUILD} %if %{CLUSTER_BUILD}
%package ndb-storage %package ndb-storage
Summary: MySQL - ndbcluster storage engine Summary: MySQL - ndbcluster storage engine
Group: Applications/Databases Group: Applications/Databases
Obsoletes: ndb-storage
Provides: ndb-storage
%description ndb-storage %description ndb-storage
This package contains the ndbcluster storage engine. This package contains the ndbcluster storage engine.
It is necessary to have this package installed on all It is necessary to have this package installed on all
computers that should store ndbcluster table data. computers that should store ndbcluster table data.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
%package ndb-management %package ndb-management
Summary: MySQL - ndbcluster storage engine management Summary: MySQL - ndbcluster storage engine management
...@@ -231,9 +286,7 @@ This package contains ndbcluster storage engine management. ...@@ -231,9 +286,7 @@ This package contains ndbcluster storage engine management.
It is necessary to have this package installed on at least It is necessary to have this package installed on at least
one computer in the cluster. one computer in the cluster.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
%package ndb-tools %package ndb-tools
Summary: MySQL - ndbcluster storage engine basic tools Summary: MySQL - ndbcluster storage engine basic tools
...@@ -242,23 +295,20 @@ Group: Applications/Databases ...@@ -242,23 +295,20 @@ Group: Applications/Databases
%description ndb-tools %description ndb-tools
This package contains ndbcluster storage engine basic tools. This package contains ndbcluster storage engine basic tools.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
%package ndb-extra %package ndb-extra
Summary: MySQL - ndbcluster storage engine extra tools Summary: MySQL - ndbcluster storage engine extra tools
Group: Applications/Databases Group: Applications/Databases
%description ndb-extra %description ndb-extra
This package contains some extra ndbcluster storage engine tools for the advanced user. This package contains some extra ndbcluster storage engine tools for the
They should be used with caution. advanced user. They should be used with caution.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
%endif %endif
# ------------------------------------------------------------------------------ # ----------------------------------------------------------------------------
%package test %package test
Requires: %{name}-client perl Requires: %{name}-client perl
Summary: MySQL - Test suite Summary: MySQL - Test suite
...@@ -270,10 +320,9 @@ AutoReqProv: no ...@@ -270,10 +320,9 @@ AutoReqProv: no
%description test %description test
This package contains the MySQL regression test suite. This package contains the MySQL regression test suite.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
# ----------------------------------------------------------------------------
%package devel %package devel
Summary: MySQL - Development header files and libraries Summary: MySQL - Development header files and libraries
Group: Applications/Databases Group: Applications/Databases
...@@ -281,45 +330,38 @@ Provides: mysql-devel ...@@ -281,45 +330,38 @@ Provides: mysql-devel
Obsoletes: mysql-devel Obsoletes: mysql-devel
%description devel %description devel
This package contains the development header files and libraries This package contains the development header files and libraries necessary
necessary to develop MySQL client applications. to develop MySQL client applications.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ------------------------------------------------------------------------------
# ----------------------------------------------------------------------------
%package shared %package shared
Summary: MySQL - Shared libraries Summary: MySQL - Shared libraries
Group: Applications/Databases Group: Applications/Databases
%description shared %description shared
This package contains the shared libraries (*.so*) which certain This package contains the shared libraries (*.so*) which certain languages
languages and applications need to dynamically load and use MySQL. and applications need to dynamically load and use MySQL.
# ------------------------------------------------------------------------------
%if %{EMBEDDED_BUILD}
# ----------------------------------------------------------------------------
%package embedded %package embedded
Requires: %{name}-devel
Summary: MySQL - embedded library Summary: MySQL - embedded library
Group: Applications/Databases Group: Applications/Databases
Requires: %{name}-devel
Obsoletes: mysql-embedded Obsoletes: mysql-embedded
%description embedded %description embedded
This package contains the MySQL server as an embedded library. This package contains the MySQL server as an embedded library.
The embedded MySQL server library makes it possible to run a The embedded MySQL server library makes it possible to run a full-featured
full-featured MySQL server inside the client application. MySQL server inside the client application. The main benefits are increased
The main benefits are increased speed and more simple management speed and more simple management for embedded applications.
for embedded applications.
The API is identical for the embedded MySQL version and the The API is identical for the embedded MySQL version and the
client/server version. client/server version.
%{see_base} For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
%endif
############################################################################## ##############################################################################
%prep %prep
...@@ -372,7 +414,11 @@ mkdir debug ...@@ -372,7 +414,11 @@ mkdir debug
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
-DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug \
-DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
-DFEATURE_SET=%{feature_set} \
-DCOMPILATION_COMMENT=%{compilation_comment_debug} \
-DMYSQL_SERVER_SUFFIX=%{server_suffix}
make VERBOSE=1 mysqld mysqlserver make VERBOSE=1 mysqld mysqlserver
) )
# Build full release # Build full release
...@@ -382,7 +428,11 @@ mkdir release ...@@ -382,7 +428,11 @@ mkdir release
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
-DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
-DFEATURE_SET=%{feature_set} \
-DCOMPILATION_COMMENT=%{compilation_comment_release} \
-DMYSQL_SERVER_SUFFIX=%{server_suffix}
make VERBOSE=1 make VERBOSE=1
) )
...@@ -454,6 +504,9 @@ install -m 644 "%{malloc_lib_source}" "$RBR%{_libdir}/mysql/%{malloc_lib_target} ...@@ -454,6 +504,9 @@ install -m 644 "%{malloc_lib_source}" "$RBR%{_libdir}/mysql/%{malloc_lib_target}
# files' warning. # files' warning.
rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1* rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
# Auto-detect whether innodb was included
%define WITH_INNODB %([ -x "$RBR%{_bindir}/innochecksum" ] && echo 1 || echo 0)
############################################################################## ##############################################################################
# Post processing actions, i.e. when installed # Post processing actions, i.e. when installed
############################################################################## ##############################################################################
...@@ -642,8 +695,7 @@ fi ...@@ -642,8 +695,7 @@ fi
%files server -f optional-server-files %files server -f optional-server-files
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
%doc %{src_dir}/COPYING %doc %{license_files}
%doc %{src_dir}/README
%doc %{src_dir}/Docs/ChangeLog %doc %{src_dir}/Docs/ChangeLog
%doc release/support-files/my-*.cnf %doc release/support-files/my-*.cnf
%if %{CLUSTER_BUILD} %if %{CLUSTER_BUILD}
...@@ -652,7 +704,7 @@ fi ...@@ -652,7 +704,7 @@ fi
%doc %attr(644, root, root) %{_infodir}/mysql.info* %doc %attr(644, root, root) %{_infodir}/mysql.info*
%if %{INNODB_BUILD} %if %{WITH_INNODB}
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
%endif %endif
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
...@@ -684,7 +736,7 @@ fi ...@@ -684,7 +736,7 @@ fi
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
%if %{INNODB_BUILD} %if %{WITH_INNODB}
%attr(755, root, root) %{_bindir}/innochecksum %attr(755, root, root) %{_bindir}/innochecksum
%endif %endif
%attr(755, root, root) %{_bindir}/my_print_defaults %attr(755, root, root) %{_bindir}/my_print_defaults
...@@ -846,23 +898,19 @@ fi ...@@ -846,23 +898,19 @@ fi
%defattr(-, root, root, 0755) %defattr(-, root, root, 0755)
%attr(-, root, root) %{_datadir}/mysql-test %attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test %attr(755, root, root) %{_bindir}/mysql_client_test
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
%attr(755, root, root) %{_bindir}/mysqltest_embedded
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
%if %{EMBEDDED_BUILD}
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
%attr(755, root, root) %{_bindir}/mysqltest_embedded
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
%endif
%if %{EMBEDDED_BUILD}
%files embedded %files embedded
%defattr(-, root, root, 0755) %defattr(-, root, root, 0755)
%attr(755, root, root) %{_bindir}/mysql_embedded %attr(755, root, root) %{_bindir}/mysql_embedded
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a %attr(644, root, root) %{_libdir}/mysql/libmysqld.a
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a %attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
%endif
############################################################################## ##############################################################################
# The spec file changelog only includes changes made to the spec file # The spec file changelog only includes changes made to the spec file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment