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

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

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


Revision 1.11 - (show annotations) (download)
Fri Nov 22 01:49:24 2019 UTC (5 years ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mysql55-2_0_0-9_el6_sme, HEAD
Changes since 1.10: +7 -1 lines
* Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme
- fix reload dump when unnecessary [SME: 10831]

1 Summary: smeserver specific mysql55 configuration and templates.
2 %define name smeserver-mysql55
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-mysql55-2.0.0-SME10094.patch
12 Patch1: smeserver-mysql55-2.0.0-SME10095-phpmyadmin.patch
13 Patch2: smeserver-mysql55-2.0.0-SME10099-prebackupdump.patch
14 Patch3: smeserver-mysql55-2.0.0-SME1096.patch
15 Patch4: smeserver-mysql55-2.0.0-SME10145-phmyadminFragment.patch
16 Patch5: smeserver-mysql55-2.0.0-SME10146-aliases.patch
17 Patch6: smeserver-mysql55-2.0.0-SME10831-user.frm.patch
18
19 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20 BuildArchitectures: noarch
21 Requires: mysql55-mysql-server
22 Requires: mysql55-mysql
23 Requires: mysql55-runtime
24 Requires: mysql55-mysql-libs
25 Requires: mysql55
26 Requires: e-smith-base
27 Requires: e-smith-lib >= 1.15.1-19
28 BuildRequires: e-smith-devtools >= 1.13.1-03
29 AutoReqProv: no
30
31 %changelog
32 * Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme
33 - fix reload dump when unnecessary [SME: 10831]
34
35 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-8.sme
36 - NFR new aliases for fast use: mysql55 mysqlshow55 mysqladmin55 mysqldump55 mysqlimport55 mysqlbinlog55 [SME: 10146]
37
38 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
39 - fix conflict with mysql57 phpmyadmin fragment [SME: 10145]
40
41 * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme
42 - fix init55 not used by dedicated mysql.init [SME: 1096]
43
44 * Sat Feb 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
45 - fix failure to dump mysql55 table on pre-backup event [SME: 1099]
46
47 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
48 - added template for phpmyadmin direct support [SME: 10095]
49 - you can access directly to your mysql55 db with the phpmyadmin contrib
50
51 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
52 - fix incorrect startup script [SME: 10094]
53 - MYSQL55_MYSQLD_SCLS_ENABLED is now MYSQL55_SCLS_ENABLED
54
55 * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
56 - first import to SME9
57 - mysql55 scl only available for x86_64
58
59 * Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
60 - fixed root pass link typo [SME: 8527]
61
62 * Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme
63 - initial release from e-smith-mysql 2.0.0-4
64
65 %description
66 This package adds necessary startup and configuration items for
67 mysql55.
68
69 %prep
70 %setup
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74 %patch3 -p1
75 %patch4 -p1
76 %patch5 -p1
77 %patch6 -p1
78
79 %build
80 mkdir -p root/etc/e-smith/sql/init55
81 perl createlinks
82
83 # add this for mysql.com rpm compatibility
84 #mkdir -p root/var/run/mysql55-mysqld
85 # we hould we rather link to the actual dir in opt , done in createlinks
86
87 mkdir -p root/etc/rc.d/init.d/supervise
88 ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql55-mysqld
89
90 mkdir -p root/etc/rc.d/rc7.d
91 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql55-mysqld
92 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init
93
94 mkdir -p root/service
95 ln -s /var/service/mysql55-mysqld root/service
96 touch root/var/service/mysql55-mysqld/down
97
98 mkdir -p root/var/log/mysql55-mysqld
99 mkdir -p root/home/e-smith/db/mysql55
100
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
105 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
106 --dir /var/run/mysql55-mysqld 'attr(0755,mysql,mysql)' \
107 --file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \
108 --file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \
109 --file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \
110 --file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \
111 --file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \
112 --file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \
113 --dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \
114 --dir '/home/e-smith/db/mysql55' 'attr(0750,root,root)' \
115 > %{name}-%{version}-filelist
116 echo "%doc COPYING" >> %{name}-%{version}-filelist
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %pre
122 %preun
123
124 %post
125 ## mysql.com compatibility
126 #[ -e /etc/rc.d/init.d/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld
127
128 %postun
129 #if [ "$1" == 0 ]; then
130 # [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-mysqld || :
131 #fi
132
133 %files -f %{name}-%{version}-filelist
134 %defattr(-,root,root)

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