Commit c1fb17c9 authored by Jonathan Perkin's avatar Jonathan Perkin

product tags

parent 43537d5b
......@@ -99,17 +99,20 @@
# Server comment strings
# ----------------------------------------------------------------------------
%if %{undefined compilation_comment_debug}
%define compilation_comment_debug MySQL Community Server - Debug (GPL)
%define compilation_comment_debug MySQL Community Server - Debug (GPL)
%endif
%if %{undefined compilation_comment_release}
%define compilation_comment_release MySQL Community Server (GPL)
%define compilation_comment_release MySQL Community Server (GPL)
%endif
# ----------------------------------------------------------------------------
# Server suffix and package name
# Product and server names
# ----------------------------------------------------------------------------
%if %{undefined short_product_tag}
%define short_product_tag %{nil}
%endif
%if %{undefined server_suffix}
%define server_suffix %{nil}
%define server_suffix %{nil}
%endif
# ----------------------------------------------------------------------------
......@@ -179,7 +182,7 @@
# Main spec file section
##############################################################################
Name: MySQL%{server_suffix}
Name: MySQL%{short_product_tag}
Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases
Version: @MYSQL_U_SCORE_VERSION@
......@@ -220,14 +223,14 @@ documentation and the manual for more information.
# Sub package definition
##############################################################################
%package -n MySQL-server%{server_suffix}
%package -n MySQL-server%{short_product_tag}
Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases
Requires: %{distro_requires}
Provides: msqlormysql mysql-server mysql MySQL MySQL-server
Obsoletes: MySQL mysql mysql-server MySQL-server
%description -n MySQL-server%{server_suffix}
%description -n MySQL-server%{short_product_tag}
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
and robust SQL (Structured Query Language) database server. MySQL Server
is intended for mission-critical, heavy-load production systems as well
......@@ -249,22 +252,22 @@ This package includes the MySQL server binary 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
package "MySQL-client%{server_suffix}" as well!
package "MySQL-client%{short_product_tag}" as well!
# ----------------------------------------------------------------------------
%package -n MySQL-client%{server_suffix}
%package -n MySQL-client%{short_product_tag}
Summary: MySQL - Client
Group: Applications/Databases
Obsoletes: mysql-client MySQL-client
Provides: mysql-client MySQL-client
%description -n MySQL-client%{server_suffix}
%description -n MySQL-client%{short_product_tag}
This package contains the standard MySQL clients and administration tools.
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ----------------------------------------------------------------------------
%package -n MySQL-test%{server_suffix}
%package -n MySQL-test%{short_product_tag}
Requires: %{name}-client perl
Summary: MySQL - Test suite
Group: Applications/Databases
......@@ -272,41 +275,41 @@ Provides: mysql-test
Obsoletes: mysql-bench mysql-test
AutoReqProv: no
%description -n MySQL-test%{server_suffix}
%description -n MySQL-test%{short_product_tag}
This package contains the MySQL regression test suite.
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ----------------------------------------------------------------------------
%package -n MySQL-devel%{server_suffix}
%package -n MySQL-devel%{short_product_tag}
Summary: MySQL - Development header files and libraries
Group: Applications/Databases
Provides: mysql-devel
Obsoletes: mysql-devel
%description -n MySQL-devel%{server_suffix}
%description -n MySQL-devel%{short_product_tag}
This package contains the development header files and libraries necessary
to develop MySQL client applications.
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ----------------------------------------------------------------------------
%package -n MySQL-shared%{server_suffix}
%package -n MySQL-shared%{short_product_tag}
Summary: MySQL - Shared libraries
Group: Applications/Databases
%description -n MySQL-shared%{server_suffix}
%description -n MySQL-shared%{short_product_tag}
This package contains the shared libraries (*.so*) which certain languages
and applications need to dynamically load and use MySQL.
# ----------------------------------------------------------------------------
%package -n MySQL-embedded%{server_suffix}
%package -n MySQL-embedded%{short_product_tag}
Summary: MySQL - embedded library
Group: Applications/Databases
Requires: %{name}-devel
Obsoletes: mysql-embedded
%description -n MySQL-embedded%{server_suffix}
%description -n MySQL-embedded%{short_product_tag}
This package contains the MySQL server as an embedded library.
The embedded MySQL server library makes it possible to run a full-featured
......@@ -466,7 +469,7 @@ rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
# Post processing actions, i.e. when installed
##############################################################################
%pre -n MySQL-server%{server_suffix}
%pre -n MySQL-server%{short_product_tag}
# Check if we can safely upgrade. An upgrade is only safe if it's from one
# of our RPMs in the same version family.
......@@ -542,7 +545,7 @@ if [ -x %{_sysconfdir}/init.d/mysql ] ; then
sleep 5
fi
%post -n MySQL-server%{server_suffix}
%post -n MySQL-server%{short_product_tag}
mysql_datadir=%{mysqldatadir}
# ----------------------------------------------------------------------
......@@ -610,7 +613,7 @@ sleep 2
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
#information."
%preun -n MySQL-server%{server_suffix}
%preun -n MySQL-server%{short_product_tag}
if [ $1 = 0 ] ; then
# Stop MySQL before uninstalling it
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
......@@ -639,7 +642,7 @@ fi
# Files section
##############################################################################
%files -n MySQL-server%{server_suffix} -f optional-server-files
%files -n MySQL-server%{short_product_tag} -f optional-server-files
%defattr(-,root,root,0755)
%if %{defined license_files_server}
......@@ -726,7 +729,7 @@ fi
%attr(755, root, root) %{_datadir}/mysql/
# ----------------------------------------------------------------------------
%files -n MySQL-client%{server_suffix}
%files -n MySQL-client%{short_product_tag}
%if %{defined license_files_server}
%doc %{license_files_server}
......@@ -762,7 +765,7 @@ fi
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
# ----------------------------------------------------------------------------
%files -n MySQL-devel%{server_suffix}
%files -n MySQL-devel%{short_product_tag}
%defattr(-, root, root, 0755)
%doc %{src_dir}/EXCEPTIONS-CLIENT
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
......@@ -777,19 +780,19 @@ fi
%{_libdir}/mysql/libmysqlservices.a
# ----------------------------------------------------------------------------
%files -n MySQL-shared%{server_suffix}
%files -n MySQL-shared%{short_product_tag}
%defattr(-, root, root, 0755)
# Shared libraries (omit for architectures that don't support them)
%{_libdir}/libmysql*.so*
%post -n MySQL-shared%{server_suffix}
%post -n MySQL-shared%{short_product_tag}
/sbin/ldconfig
%postun -n MySQL-shared%{server_suffix}
%postun -n MySQL-shared%{short_product_tag}
/sbin/ldconfig
# ----------------------------------------------------------------------------
%files -n MySQL-test%{server_suffix}
%files -n MySQL-test%{short_product_tag}
%defattr(-, root, root, 0755)
%attr(-, root, root) %{_datadir}/mysql-test
%attr(755, root, root) %{_bindir}/mysql_client_test
......@@ -802,7 +805,7 @@ fi
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
# ----------------------------------------------------------------------------
%files -n MySQL-embedded%{server_suffix}
%files -n MySQL-embedded%{short_product_tag}
%defattr(-, root, root, 0755)
%attr(755, root, root) %{_bindir}/mysql_embedded
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
......
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