1 |
# $Id: e-smith-mysql.spec,v 1.1 2013/02/14 16:15:55 slords Exp $ |
# $Id: e-smith-mysql.spec,v 1.7 2014/03/18 02:42:43 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 2 |
%define release 7 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
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 |
15 |
|
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 |
|
- Rename 10fix_privilege_tables to 10mysql_upgrade to reduce confusion. |
31 |
|
|
32 |
|
* Sun Feb 2 2014 Ian Wells <esmith@wellsi.com> 2.4.0-6.sme |
33 |
|
- Use mysql_upgrade --force due to upgrade to MySQL 5.1 [SME: 8166] |
34 |
|
|
35 |
|
* Thu Jun 6 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
36 |
|
- Ignore mysql.event table [SME: 7603] |
37 |
|
|
38 |
|
* Wed Mar 20 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
39 |
|
- Use --single-transaction in mysql-dump-tables [SME: 7497] |
40 |
|
|
41 |
|
* Sat Mar 16 2013 Ian Wells <esmith@wellsi.com> 2.4.0-3.sme |
42 |
|
- Use mysql_upgrade instead of fix_privilege_tables [SME: 7467] |
43 |
|
|
44 |
* Mon Feb 18 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2.sme |
* Mon Feb 18 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2.sme |
45 |
- Remove obsolete innodb_log_arch_dir directive [SME: 7363] |
- Remove obsolete innodb_log_arch_dir directive [SME: 7363] |
46 |
|
|
708 |
%prep |
%prep |
709 |
%setup |
%setup |
710 |
%patch1 -p1 |
%patch1 -p1 |
711 |
|
%patch2 -p1 |
712 |
|
%patch3 -p1 |
713 |
|
%patch4 -p1 |
714 |
|
%patch5 -p1 |
715 |
|
|
716 |
%build |
%build |
717 |
perl createlinks |
perl createlinks |
738 |
%post |
%post |
739 |
# mysql.com compatibility |
# mysql.com compatibility |
740 |
[ -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 |
741 |
|
# We remove this because the template has been renamed |
742 |
|
/bin/rm -f /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/sql/init/10fix_privilege_tables |
743 |
|
|
744 |
|
|
745 |
%postun |
%postun |
746 |
if [ "$1" == 0 ]; then |
if [ "$1" == 0 ]; then |