1 |
# $Id: e-smith-mysql.spec,v 1.3 2013/03/17 03:57:00 wellsi Exp $ |
# $Id: e-smith-mysql.spec,v 1.6 2014/02/02 20:19:03 wellsi Exp $ |
2 |
|
|
3 |
Summary: e-smith specific mysql configuration and templates. |
Summary: e-smith specific mysql configuration and templates. |
4 |
%define name e-smith-mysql |
%define name e-smith-mysql |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.4.0 |
%define version 2.4.0 |
7 |
%define release 4 |
%define release 7 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch1: e-smith-mysql-2.4.0-remove_innodb_log_arch_dir.patch |
Patch1: e-smith-mysql-2.4.0-remove_innodb_log_arch_dir.patch |
14 |
Patch2: e-smith-mysql-2.4.0-mysqlUpgrade.patch |
Patch2: e-smith-mysql-2.4.0-mysqlUpgrade.patch |
15 |
Patch3: e-smith-mysql-2.4.0-preBackup.patch |
Patch3: e-smith-mysql-2.4.0-preBackup.patch |
16 |
|
Patch4: e-smith-mysql-2.4.0-ignore_event_table.patch |
17 |
|
Patch5: e-smith-mysql-2.4.0-ColumnCount.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
Requires: mysql-server |
Requires: mysql-server |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Mon Mar 17 2014 Ian Wells <esmith@wellsi.com> 2.4.0-7.sme |
29 |
|
- Use mysql_upgrade in 00_restore_dumped_dbs, by Terje Edseth [SME: 8166] |
30 |
|
|
31 |
|
* Sun Feb 2 2014 Ian Wells <esmith@wellsi.com> 2.4.0-6.sme |
32 |
|
- Use mysql_upgrade --force due to upgrade to MySQL 5.1 [SME: 8166] |
33 |
|
|
34 |
|
* Thu Jun 6 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
35 |
|
- Ignore mysql.event table [SME: 7603] |
36 |
|
|
37 |
* Wed Mar 20 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
* Wed Mar 20 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
38 |
- Use --single-transaction in mysql-dump-tables [SME: 7497] |
- Use --single-transaction in mysql-dump-tables [SME: 7497] |
39 |
|
|
709 |
%patch1 -p1 |
%patch1 -p1 |
710 |
%patch2 -p1 |
%patch2 -p1 |
711 |
%patch3 -p1 |
%patch3 -p1 |
712 |
|
%patch4 -p1 |
713 |
|
%patch5 -p1 |
714 |
|
|
715 |
%build |
%build |
716 |
perl createlinks |
perl createlinks |
737 |
%post |
%post |
738 |
# mysql.com compatibility |
# mysql.com compatibility |
739 |
[ -e /etc/rc.d/init.d/mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysqld |
[ -e /etc/rc.d/init.d/mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysqld |
740 |
|
# We remove this because the template has been renamed |
741 |
|
/bin/rm -f /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/sql/init/10fix_privilege_tables |
742 |
|
|
743 |
|
|
744 |
%postun |
%postun |
745 |
if [ "$1" == 0 ]; then |
if [ "$1" == 0 ]; then |