1 |
# $Id: e-smith-mysql.spec,v 1.2 2013/02/18 21:53:15 vip-ire Exp $ |
# $Id: e-smith-mysql.spec,v 1.9 2014/04/15 14:36:54 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 3 |
%define release 9 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
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 |
|
Patch6: e-smith-mysql-2.4.0-information_schema.patch |
19 |
|
Patch7: e-smith-mysql-2.4.0-multilog.patch |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
22 |
Requires: mysql-server |
Requires: mysql-server |
27 |
AutoReqProv: no |
AutoReqProv: no |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Sat Apr 26 2014 Ian Wells <esmith@wellsi.com> 2.4.0-9.sme |
31 |
|
- Move mysql logging to multilog [SME: 8358] |
32 |
|
|
33 |
|
* Mon Apr 14 2014 Ian Wells <esmith@wellsi.com> 2.4.0-8.sme |
34 |
|
- Remove the information_schema [SME: 8325] |
35 |
|
|
36 |
|
* Mon Mar 17 2014 Ian Wells <esmith@wellsi.com> 2.4.0-7.sme |
37 |
|
- Use mysql_upgrade in 00_restore_dumped_dbs, by Terje Edseth [SME: 8166] |
38 |
|
- Rename 10fix_privilege_tables to 10mysql_upgrade to reduce confusion. |
39 |
|
|
40 |
|
* Sun Feb 2 2014 Ian Wells <esmith@wellsi.com> 2.4.0-6.sme |
41 |
|
- Use mysql_upgrade --force due to upgrade to MySQL 5.1 [SME: 8166] |
42 |
|
|
43 |
|
* Thu Jun 6 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
44 |
|
- Ignore mysql.event table [SME: 7603] |
45 |
|
|
46 |
|
* Wed Mar 20 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
47 |
|
- Use --single-transaction in mysql-dump-tables [SME: 7497] |
48 |
|
|
49 |
* Sat Mar 16 2013 Ian Wells <esmith@wellsi.com> 2.4.0-3.sme |
* Sat Mar 16 2013 Ian Wells <esmith@wellsi.com> 2.4.0-3.sme |
50 |
- Use mysql_upgrade instead of fix_privilege_tables [SME: 7467] |
- Use mysql_upgrade instead of fix_privilege_tables [SME: 7467] |
51 |
|
|
717 |
%setup |
%setup |
718 |
%patch1 -p1 |
%patch1 -p1 |
719 |
%patch2 -p1 |
%patch2 -p1 |
720 |
|
%patch3 -p1 |
721 |
|
%patch4 -p1 |
722 |
|
%patch5 -p1 |
723 |
|
%patch6 -p1 |
724 |
|
%patch7 -p1 |
725 |
|
|
726 |
%build |
%build |
727 |
perl createlinks |
perl createlinks |
748 |
%post |
%post |
749 |
# mysql.com compatibility |
# mysql.com compatibility |
750 |
[ -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 |
751 |
|
# We remove this because the template has been renamed |
752 |
|
/bin/rm -f /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/e-smith/sql/init/10fix_privilege_tables |
753 |
|
|
754 |
|
|
755 |
%postun |
%postun |
756 |
if [ "$1" == 0 ]; then |
if [ "$1" == 0 ]; then |