/[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.11 - (show annotations) (download)
Thu Mar 30 04:06:14 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-10_el6_sme
Changes since 1.10: +7 -1 lines
* Thu Mar 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-10.sme
- fix initialize and load table [SME: 10197]

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

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