2 |
%define name smeserver-mysql |
%define name smeserver-mysql |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 2.7.0 |
%define version 2.7.0 |
5 |
%define release 7 |
%define release 12 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: Networking/Daemons |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
11 |
Patch0: smeserver-mysql-2.7.0-bz11899-sclo.patch |
Patch0: smeserver-mysql-2.7.0-bz11899-sclo.patch |
12 |
|
Patch1: smeserver-mysql-2.7.0-bz11922-mysqlinit.patch |
13 |
|
|
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
32 |
%prep |
%prep |
33 |
%setup |
%setup |
34 |
%patch0 -p1 |
%patch0 -p1 |
35 |
|
%patch1 -p1 |
36 |
|
|
37 |
%build |
%build |
38 |
for ver in 101 102 103 105 |
for ver in 101 102 103 105 |
116 |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-delete-dumped-tables \ |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-delete-dumped-tables \ |
117 |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-dump-tables \ |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-dump-tables \ |
118 |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-load-tables \ |
-i root$ver/etc/e-smith/events/actions/mariadb${ver}-load-tables \ |
119 |
-e "s_!!!VER!!!_${ver}_g" |
-e "s_!!!VER!!!_${ver}_g" \ |
120 |
|
-e "s_!!!SOCKET!!!_${socket}_g" |
121 |
|
|
122 |
##metadata |
##metadata |
123 |
mkdir -p root$ver/etc/e-smith/templates.metadata/etc/e-smith/ |
mkdir -p root$ver/etc/e-smith/templates.metadata/etc/e-smith/sql |
124 |
cp -a root/etc/e-smith/templates.metadata/etc/e-smith/sql root$ver/etc/e-smith/templates.metadata/etc/e-smith/sql$ver |
cp -a root/etc/e-smith/templates.metadata/etc/e-smith/sql/init root$ver/etc/e-smith/templates.metadata/etc/e-smith/sql/init$ver |
125 |
|
|
126 |
|
|
127 |
##templates |
##templates |
341 |
|
|
342 |
|
|
343 |
%changelog |
%changelog |
344 |
|
* Sat Apr 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-12.sme |
345 |
|
- remove SourcePath from mysql-init service file [SME: 11922] |
346 |
|
|
347 |
|
* Wed Mar 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-11.sme |
348 |
|
- fix mariadb*-mysql.init path in service file [SME: 11899] |
349 |
|
|
350 |
|
* Wed Mar 16 2022 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-10.sme |
351 |
|
- fix sclo metadata path for sql/init templated scripts [SME: 11899] |
352 |
|
|
353 |
|
* Wed Mar 16 2022 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-8.sme |
354 |
|
- missing sockets for backup of db [SME: 11899] |
355 |
|
|
356 |
* Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-7.sme |
* Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-7.sme |
357 |
- adding requirement for mariadb-server-utils (105 and 103) [SME: 11899] |
- adding requirement for mariadb-server-utils (105 and 103) [SME: 11899] |
358 |
|
|