/[smeserver]/rpms/smeserver-mysql/sme10/smeserver-mysql.spec
ViewVC logotype

Diff of /rpms/smeserver-mysql/sme10/smeserver-mysql.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.17 by jpp, Mon Mar 14 06:42:25 2022 UTC Revision 1.25 by jpp, Sat Apr 9 18:15:45 2022 UTC
# Line 2  Summary: Koozali SME Server specific mys Line 2  Summary: Koozali SME Server specific mys
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 6  %define release 13
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    Patch2: smeserver-mysql-2.7.0-bz11936.patch
14    
15  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16  BuildArchitectures: noarch  BuildArchitectures: noarch
17  Requires: mariadb-server  Requires: mariadb-server
18    # mariadb after 5.5 /in Centos 8 will package mysql_upgrade in mariadb-server-utils
19    # Requires: /usr/bin/mysql_upgrade
20  Requires: mariadb  Requires: mariadb
21  Requires: e-smith-base  Requires: e-smith-base
22  Requires: e-smith-lib >= 1.15.1-19  Requires: e-smith-lib >= 1.15.1-19
# Line 29  mysql. Line 33  mysql.
33  %prep  %prep
34  %setup  %setup
35  %patch0 -p1  %patch0 -p1
36    %patch1 -p1
37    %patch2 -p1
38    
39  %build  %build
40  for ver in  101 102 103 105  for ver in  101 102 103 105
# Line 112  sed -i root$ver/etc/e-smith/events/actio Line 118  sed -i root$ver/etc/e-smith/events/actio
118          -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 \
119          -i root$ver/etc/e-smith/events/actions/mariadb${ver}-dump-tables \          -i root$ver/etc/e-smith/events/actions/mariadb${ver}-dump-tables \
120          -i root$ver/etc/e-smith/events/actions/mariadb${ver}-load-tables \          -i root$ver/etc/e-smith/events/actions/mariadb${ver}-load-tables \
121          -e "s_!!!VER!!!_${ver}_g"          -e "s_!!!VER!!!_${ver}_g" \
122            -e "s_!!!SOCKET!!!_${socket}_g"
123    
124  ##metadata  ##metadata
125  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
126  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
127    
128    
129  ##templates  ##templates
# Line 125  cp   root/etc/e-smith/templates/etc/e-sm Line 132  cp   root/etc/e-smith/templates/etc/e-sm
132  sed -i root$ver/etc/e-smith/templates/etc/e-smith/sql/init$ver/00_restore_dumped_dbs  -i root$ver/etc/e-smith/templates/etc/e-smith/sql/init$ver/10mysql_upgrade \  sed -i root$ver/etc/e-smith/templates/etc/e-smith/sql/init$ver/00_restore_dumped_dbs  -i root$ver/etc/e-smith/templates/etc/e-smith/sql/init$ver/10mysql_upgrade \
133          -e "s_e-smith/db/mysql_e-smith/db/mariadb${ver}_g" \          -e "s_e-smith/db/mysql_e-smith/db/mariadb${ver}_g" \
134          -e "s_/usr/bin/mysql_/opt/rh/rh-mariadb${ver}/root/usr/bin/mysql_g" \          -e "s_/usr/bin/mysql_/opt/rh/rh-mariadb${ver}/root/usr/bin/mysql_g" \
135          -e "s_mariadb.service_rh-mariadb$ver-mariadb.service_" \          -e "s_mariadb.service_mariadb$ver-mariadb.service_" \
136          -e "s_/var/run/mariadb/mariadb.pid_${pidfile}_g" \          -e "s_/var/run/mariadb/mariadb.pid_${pidfile}_g" \
137          -e "s_mysqld_rh-mariadb$ver-mariadb_g" \          -e "s_mysqld_rh-mariadb$ver-mariadb_g" \
138          -e "s_| mysql |_| /opt/rh/rh-mariadb${ver}/root/usr/bin/mysql --socket=$socket |_g" \          -e "s_| mysql |_| /opt/rh/rh-mariadb${ver}/root/usr/bin/mysql --socket=$socket |_g" \
# Line 236  do Line 243  do
243  /sbin/e-smith/genfilelist root$ver/ \  /sbin/e-smith/genfilelist root$ver/ \
244      --file "/sbin/e-smith/systemd/mariadb$ver-initialize" 'attr(0554,root,root)' \      --file "/sbin/e-smith/systemd/mariadb$ver-initialize" 'attr(0554,root,root)' \
245      --file "/sbin/e-smith/systemd/mariadb$ver-mysql.init" 'attr(0554,root,root)' \      --file "/sbin/e-smith/systemd/mariadb$ver-mysql.init" 'attr(0554,root,root)' \
246      --file "/sbin/e-smith/systemd/mariadb$ver-post.init" 'attr(0554,root,root)' \      --file "/sbin/e-smith/systemd/mariadb$ver-post" 'attr(0554,root,root)' \
247      --dir "/home/e-smith/db/mariadb$ver" 'attr(0750,root,root)' \      --dir "/home/e-smith/db/mariadb$ver" 'attr(0750,root,root)' \
248      --dir "/var/log/mariadb$ver" 'attr(0750,mysql,mysql)' \      --dir "/var/log/mariadb$ver" 'attr(0750,mysql,mysql)' \
249      --file "/usr/bin/mysql$ver" 'attr(0554,root,root)' \      --file "/usr/bin/mysql$ver" 'attr(0554,root,root)' \
# Line 306  Group:          Database Line 313  Group:          Database
313  Requires:       rh-mariadb103  Requires:       rh-mariadb103
314  Requires:       rh-mariadb103-mariadb  Requires:       rh-mariadb103-mariadb
315  Requires:       rh-mariadb103-mariadb-server  Requires:       rh-mariadb103-mariadb-server
316    Requires:       rh-mariadb103-mariadb-server-utils
317  BuildRequires:  e-smith-devtools >= 1.13.1-03  BuildRequires:  e-smith-devtools >= 1.13.1-03
318    
319  %description    -n smeserver-mariadb103  %description    -n smeserver-mariadb103
# Line 321  Group:          Database Line 329  Group:          Database
329  Requires:       rh-mariadb105  Requires:       rh-mariadb105
330  Requires:       rh-mariadb105-mariadb  Requires:       rh-mariadb105-mariadb
331  Requires:       rh-mariadb105-mariadb-server  Requires:       rh-mariadb105-mariadb-server
332    Requires:       rh-mariadb105-mariadb-server-utils
333  BuildRequires:  e-smith-devtools >= 1.13.1-03  BuildRequires:  e-smith-devtools >= 1.13.1-03
334  Requires:       smeserver-mysql >= 2.7.0-5  Requires:       smeserver-mysql >= 2.7.0-5
335  %description    -n smeserver-mariadb105  %description    -n smeserver-mariadb105
# Line 334  Koozali SME Server configuration package Line 343  Koozali SME Server configuration package
343    
344    
345  %changelog  %changelog
346    * Sat Apr 09 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-13.sme
347    - fix few typos [SME: 11936]
348    
349    * Sat Apr 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-12.sme
350    - remove SourcePath from mysql-init service file [SME: 11922]
351    
352    * Wed Mar 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-11.sme
353    - fix mariadb*-mysql.init path in service file [SME: 11899]
354    
355    * Wed Mar 16 2022 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-10.sme
356    - fix sclo metadata path for sql/init templated scripts [SME: 11899]
357    
358    * Wed Mar 16 2022 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-8.sme
359    - missing sockets for backup of db [SME: 11899]
360    
361    * Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-7.sme
362    - adding requirement for mariadb-server-utils (105 and 103) [SME: 11899]
363    
364  * Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme  * Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme
365  - fix password for mariadb 105 [SME: 11899]  - fix password for mariadb 105 [SME: 11899]
366    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed