1 |
Summary: smeserver specific mysql57 configuration and templates. |
2 |
%define name smeserver-mysql57 |
3 |
Name: %{name} |
4 |
%define version 2.0.0 |
5 |
%define release 13 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Patch0: smeserver-mysql57-2.0.0-SME10096.patch |
12 |
Patch1: smeserver-mysql57-2.0.0-SME10145-phmyadminFragment.patch |
13 |
Patch2: smeserver-mysql57-2.0.0-SME10146-aliases.patch |
14 |
Patch3: smeserver-mysql57-2.0.0-SME10147-rhpath.patch |
15 |
Patch4: smeserver-mysql57-2.0.0-SME10148.patch |
16 |
Patch5: smeserver-mysql57-2.0.0-SME10148-initializeDB.patch |
17 |
Patch6: smeserver-mysql57-2.0.0-SME10148-initializeDB2.patch |
18 |
Patch7: smeserver-mysql57-2.0.0-SME10197.patch |
19 |
Patch8: smeserver-mysql57-2.0.0-SME10202-prebackup.patch |
20 |
Patch9: smeserver-mysql57-2.0.0-SME10830-user.frm.patch |
21 |
Patch10: smeserver-mysql57-2.0.0-bz11877-systemd.patch |
22 |
|
23 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
BuildArchitectures: noarch |
25 |
Requires: rh-mysql57 |
26 |
Requires: e-smith-base |
27 |
Requires: e-smith-lib >= 1.15.1-19 |
28 |
|
29 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
30 |
AutoReqProv: no |
31 |
|
32 |
%changelog |
33 |
* Wed Feb 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-13.sme |
34 |
- adapt for SME10 [SME: 11877] |
35 |
systemd service files |
36 |
update event |
37 |
changing paths |
38 |
|
39 |
* Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme |
40 |
- fix reload dump when should not [SME: 10830] |
41 |
|
42 |
* Mon Apr 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-11.sme |
43 |
- fix pre-backup failure [SME: 10202] |
44 |
|
45 |
* Thu Mar 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-10.sme |
46 |
- fix initialize and load table [SME: 10197] |
47 |
|
48 |
* Wed Mar 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme |
49 |
- some more modification to allow initialization [SME: 10148] |
50 |
- error log was missing stoping initialization |
51 |
- tweaking log format for system time |
52 |
|
53 |
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme |
54 |
- update run file and template paths [SME: 10148] |
55 |
- r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc |
56 |
- update run, set.password and my.cnf for rh-mysql57 |
57 |
|
58 |
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme |
59 |
- fix wrong path /opt/rh/mysql57/ [SME: 10147] |
60 |
|
61 |
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
62 |
- NFR new aliases for fast use: mysql57 mysqlshow57 mysqladmin57 mysqldump57 mysqlimport57 mysqlbinlog57 [SME: 10146] |
63 |
|
64 |
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme |
65 |
- fix conflict with mysql55 phpmyadmin fragment [SME: 10145] |
66 |
|
67 |
* Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme |
68 |
- fix init57 not used by dedicated mysql.init [SME: 10096] |
69 |
|
70 |
* Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme |
71 |
- fix requires rh-myql57 |
72 |
|
73 |
* Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme |
74 |
- first version forked from smeserver-mysql57-2.0.0-5 |
75 |
|
76 |
|
77 |
%description |
78 |
This package adds necessary startup and configuration items for |
79 |
mysql57. |
80 |
|
81 |
%prep |
82 |
%setup |
83 |
%patch0 -p1 |
84 |
%patch1 -p1 |
85 |
%patch2 -p1 |
86 |
%patch3 -p1 |
87 |
%patch4 -p1 |
88 |
%patch5 -p1 |
89 |
%patch6 -p1 |
90 |
%patch7 -p1 |
91 |
%patch8 -p1 |
92 |
%patch9 -p1 |
93 |
%patch10 -p1 |
94 |
|
95 |
%build |
96 |
mkdir -p root/etc/e-smith/sql/init57 |
97 |
#mkdir -p root/opt/rh/rh-mysql57/root |
98 |
perl createlinks |
99 |
|
100 |
# add this for mysql.com rpm compatibility |
101 |
#mkdir -p root/var/run/mysql57-mysqld |
102 |
# we hould we rather link to the actual dir in opt , done in createlinks |
103 |
|
104 |
#mkdir -p root/etc/rc.d/init.d/supervise |
105 |
#ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld |
106 |
|
107 |
#mkdir -p root/etc/rc.d/rc7.d |
108 |
#ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld |
109 |
#ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init |
110 |
|
111 |
#mkdir -p root/service |
112 |
#ln -s /var/service/mysql57-mysqld root/service |
113 |
#touch root/var/service/mysql57-mysqld/down |
114 |
|
115 |
rm -rf root/var/service |
116 |
mkdir -p root/var/log/mysql57-mysqld |
117 |
mkdir -p root/home/e-smith/db/mysql57 |
118 |
rm -rf root/etc/e-smith/templates.metadata/var/service |
119 |
|
120 |
%install |
121 |
rm -rf $RPM_BUILD_ROOT |
122 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
123 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
124 |
--file /sbin/e-smith/systemd/mysql57-initialize 'attr(0757,mysql,mysql)' \ |
125 |
--file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \ |
126 |
--dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \ |
127 |
--dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \ |
128 |
> %{name}-%{version}-filelist |
129 |
#--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \ |
130 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
131 |
|
132 |
%clean |
133 |
rm -rf $RPM_BUILD_ROOT |
134 |
|
135 |
%pre |
136 |
%preun |
137 |
|
138 |
%post |
139 |
## mysql.com compatibility |
140 |
#[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld |
141 |
|
142 |
%postun |
143 |
#if [ "$1" == 0 ]; then |
144 |
# [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || : |
145 |
#fi |
146 |
|
147 |
%files -f %{name}-%{version}-filelist |
148 |
%defattr(-,root,root) |