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

Annotation of /rpms/smeserver-mysql57/contribs9/smeserver-mysql57.spec

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


Revision 1.13 - (hide annotations) (download)
Fri Nov 22 01:27:53 2019 UTC (4 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-12_el6_sme, HEAD
Changes since 1.12: +7 -1 lines
* Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme
- fix reload dump when should not  [SME: 10830]

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

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