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

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

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


Revision 1.10 - (show annotations) (download)
Thu Mar 16 01:32:15 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-9_el6_sme
Changes since 1.9: +9 -1 lines
* Wed Mar 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme
- some more modification to allow initialization [SME: 10148]
- error log was missing stoping initialization
- tweaking log format for system time

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 9
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 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19 BuildArchitectures: noarch
20 Requires: rh-mysql57
21 Requires: e-smith-base
22 Requires: e-smith-lib >= 1.15.1-19
23
24 BuildRequires: e-smith-devtools >= 1.13.1-03
25 AutoReqProv: no
26
27 %changelog
28 * Wed Mar 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme
29 - some more modification to allow initialization [SME: 10148]
30 - error log was missing stoping initialization
31 - tweaking log format for system time
32
33 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
34 - update run file and template paths [SME: 10148]
35 - r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc
36 - update run, set.password and my.cnf for rh-mysql57
37
38 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme
39 - fix wrong path /opt/rh/mysql57/ [SME: 10147]
40
41 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
42 - NFR new aliases for fast use: mysql57 mysqlshow57 mysqladmin57 mysqldump57 mysqlimport57 mysqlbinlog57 [SME: 10146]
43
44 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
45 - fix conflict with mysql55 phpmyadmin fragment [SME: 10145]
46
47 * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
48 - fix init57 not used by dedicated mysql.init [SME: 10096]
49
50 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
51 - fix requires rh-myql57
52
53 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
54 - first version forked from smeserver-mysql57-2.0.0-5
55
56
57 %description
58 This package adds necessary startup and configuration items for
59 mysql57.
60
61 %prep
62 %setup
63 %patch0 -p1
64 %patch1 -p1
65 %patch2 -p1
66 %patch3 -p1
67 %patch4 -p1
68 %patch5 -p1
69 %patch6 -p1
70
71 %build
72 mkdir -p root/etc/e-smith/sql/init57
73 mkdir -p root/opt/rh/rh-mysql57/root
74 perl createlinks
75
76 # add this for mysql.com rpm compatibility
77 #mkdir -p root/var/run/mysql57-mysqld
78 # we hould we rather link to the actual dir in opt , done in createlinks
79
80 mkdir -p root/etc/rc.d/init.d/supervise
81 ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
82
83 mkdir -p root/etc/rc.d/rc7.d
84 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
85 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
86
87 mkdir -p root/service
88 ln -s /var/service/mysql57-mysqld root/service
89 touch root/var/service/mysql57-mysqld/down
90
91 mkdir -p root/var/log/mysql57-mysqld
92 mkdir -p root/home/e-smith/db/mysql57
93
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
98 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
99 --dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
100 --file /var/service/mysql57-mysqld/run 'attr(0757,root,root)' \
101 --file /var/service/mysql57-mysqld/control/t 'attr(0750,root,root)' \
102 --file /var/service/mysql57-mysqld/control/d 'attr(0750,root,root)' \
103 --file /var/service/mysql57-mysqld/control/i 'attr(0750,root,root)' \
104 --file /var/service/mysql57-mysqld/control/q 'attr(0750,root,root)' \
105 --file /var/service/mysql57-mysqld/log/run 'attr(0757,root,root)' \
106 --dir '/var/log/mysql57-mysqld' 'attr(2750,smelog,smelog)' \
107 --dir '/home/e-smith/db/mysql57' 'attr(0750,root,root)' \
108 > %{name}-%{version}-filelist
109 echo "%doc COPYING" >> %{name}-%{version}-filelist
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %pre
115 %preun
116
117 %post
118 ## mysql.com compatibility
119 #[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld
120
121 %postun
122 #if [ "$1" == 0 ]; then
123 # [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || :
124 #fi
125
126 %files -f %{name}-%{version}-filelist
127 %defattr(-,root,root)

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