/[smecontribs]/rpms/smeserver-mysql57/contribs10/smeserver-mysql57.spec
ViewVC logotype

Diff of /rpms/smeserver-mysql57/contribs10/smeserver-mysql57.spec

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

Revision 1.1 by jpp, Wed Feb 23 19:04:13 2022 UTC Revision 1.5 by jpp, Fri Feb 25 02:34:48 2022 UTC
# Line 2  Summary: smeserver specific mysql57 conf Line 2  Summary: smeserver specific mysql57 conf
2  %define name smeserver-mysql57  %define name smeserver-mysql57
3  Name: %{name}  Name: %{name}
4  %define version 2.0.0  %define version 2.0.0
5  %define release 12  %define release 14
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  License: GPL  License: GPL
# Line 18  Patch6: smeserver-mysql57-2.0.0-SME10148 Line 18  Patch6: smeserver-mysql57-2.0.0-SME10148
18  Patch7: smeserver-mysql57-2.0.0-SME10197.patch  Patch7: smeserver-mysql57-2.0.0-SME10197.patch
19  Patch8: smeserver-mysql57-2.0.0-SME10202-prebackup.patch  Patch8: smeserver-mysql57-2.0.0-SME10202-prebackup.patch
20  Patch9: smeserver-mysql57-2.0.0-SME10830-user.frm.patch  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  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
24  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 29  BuildRequires: e-smith-devtools >= 1.13. Line 30  BuildRequires: e-smith-devtools >= 1.13.
30  AutoReqProv: no  AutoReqProv: no
31    
32  %changelog  %changelog
33    * Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-14.sme
34    - expand phpmyadmin config file on install [SME: 11877]
35    
36    * Wed Feb 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-13.sme
37    - adapt for SME10 [SME: 11877]
38      systemd service files
39      update event
40      changing paths
41    
42  * Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme  * Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme
43  - fix reload dump when should not  [SME: 10830]  - fix reload dump when should not  [SME: 10830]
44    
# Line 83  mysql57. Line 93  mysql57.
93  %patch7 -p1  %patch7 -p1
94  %patch8 -p1  %patch8 -p1
95  %patch9 -p1  %patch9 -p1
96    %patch10 -p1
97    
98  %build  %build
99  mkdir -p root/etc/e-smith/sql/init57  mkdir -p root/etc/e-smith/sql/init57
100  mkdir -p root/opt/rh/rh-mysql57/root  #mkdir -p root/opt/rh/rh-mysql57/root
101  perl createlinks  perl createlinks
102    
103  # add this for mysql.com rpm compatibility  # add this for mysql.com rpm compatibility
104  #mkdir -p root/var/run/mysql57-mysqld  #mkdir -p root/var/run/mysql57-mysqld
105  # we hould we rather link to the actual dir in opt , done in createlinks  # we hould we rather link to the actual dir in opt , done in createlinks
106    
107  mkdir -p root/etc/rc.d/init.d/supervise  #mkdir -p root/etc/rc.d/init.d/supervise
108  ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld  #ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
109    
110  mkdir -p root/etc/rc.d/rc7.d  #mkdir -p root/etc/rc.d/rc7.d
111  ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld  #ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
112  ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init  #ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
113    
114  mkdir -p root/service  #mkdir -p root/service
115  ln -s /var/service/mysql57-mysqld root/service  #ln -s /var/service/mysql57-mysqld root/service
116  touch root/var/service/mysql57-mysqld/down  #touch root/var/service/mysql57-mysqld/down
117    
118    rm -rf root/var/service
119  mkdir -p root/var/log/mysql57-mysqld  mkdir -p root/var/log/mysql57-mysqld
120  mkdir -p root/home/e-smith/db/mysql57  mkdir -p root/home/e-smith/db/mysql57
121    rm -rf root/etc/e-smith/templates.metadata/var/service
122    rm -rf root/service
123    rm -rf root/etc/e-smith/templates/opt
124    rm -rf root/etc/e-smith/templates/var/service
125    
126  %install  %install
127  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
128  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
129  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
130      --dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \      --file /sbin/e-smith/systemd/mysql57-initialize 'attr(0757,mysql,mysql)' \
131      --file /var/service/mysql57-mysqld/run 'attr(0757,root,root)' \      --file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \
132      --file /var/service/mysql57-mysqld/control/t 'attr(0750,root,root)' \      --dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \
133      --file /var/service/mysql57-mysqld/control/d 'attr(0750,root,root)' \      --dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \
134      --file /var/service/mysql57-mysqld/control/i 'attr(0750,root,root)' \  | grep -vP '/opt/rh/rh-mysql57$' \
135      --file /var/service/mysql57-mysqld/control/q 'attr(0750,root,root)' \  | grep -vP '/opt/rh/rh-mysql57/root$' \
     --file /var/service/mysql57-mysqld/log/run 'attr(0757,root,root)' \  
     --dir '/var/log/mysql57-mysqld' 'attr(2750,smelog,smelog)' \  
     --dir '/home/e-smith/db/mysql57' 'attr(0750,root,root)' \  
136      > %{name}-%{version}-filelist      > %{name}-%{version}-filelist
137    #--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
138  echo "%doc COPYING"          >> %{name}-%{version}-filelist  echo "%doc COPYING"          >> %{name}-%{version}-filelist
139    # /opt/rh/rh-mysql57 and /opt/rh/rh-mysql57/root conflicts
140    
141    
142  %clean  %clean
143  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT


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