/[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.7 - (show annotations) (download)
Sat Feb 18 13:53:42 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql55-2_0_0-5_el6_sme
Changes since 1.6: +7 -1 lines
* Sat Feb 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
- fix failure to dump mysql55 table on pre-backup event [SME: 1099]

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 5
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 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
15 BuildArchitectures: noarch
16 Requires: mysql55-mysql-server
17 Requires: mysql55-mysql
18 Requires: mysql55-runtime
19 Requires: mysql55-mysql-libs
20 Requires: mysql55
21 Requires: e-smith-base
22 Requires: e-smith-lib >= 1.15.1-19
23 BuildRequires: e-smith-devtools >= 1.13.1-03
24 AutoReqProv: no
25
26 %changelog
27 * Sat Feb 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
28 - fix failure to dump mysql55 table on pre-backup event [SME: 1099]
29
30 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
31 - added template for phpmyadmin direct support [SME: 10095]
32 - you can access directly to your mysql55 db with the phpmyadmin contrib
33
34 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
35 - fix incorrect startup script [SME: 10094]
36 - MYSQL55_MYSQLD_SCLS_ENABLED is now MYSQL55_SCLS_ENABLED
37
38 * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
39 - first import to SME9
40 - mysql55 scl only available for x86_64
41
42 * Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
43 - fixed root pass link typo [SME: 8527]
44
45 * Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme
46 - initial release from e-smith-mysql 2.0.0-4
47
48 %description
49 This package adds necessary startup and configuration items for
50 mysql55.
51
52 %prep
53 %setup
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57
58
59 %build
60 mkdir -p root/etc/e-smith/sql/init55
61 perl createlinks
62
63 # add this for mysql.com rpm compatibility
64 #mkdir -p root/var/run/mysql55-mysqld
65 # we hould we rather link to the actual dir in opt , done in createlinks
66
67 mkdir -p root/etc/rc.d/init.d/supervise
68 ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql55-mysqld
69
70 mkdir -p root/etc/rc.d/rc7.d
71 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql55-mysqld
72 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init
73
74 mkdir -p root/service
75 ln -s /var/service/mysql55-mysqld root/service
76 touch root/var/service/mysql55-mysqld/down
77
78 mkdir -p root/var/log/mysql55-mysqld
79 mkdir -p root/home/e-smith/db/mysql55
80
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
85 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
86 --dir /var/run/mysql55-mysqld 'attr(0755,mysql,mysql)' \
87 --file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \
88 --file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \
89 --file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \
90 --file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \
91 --file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \
92 --file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \
93 --dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \
94 --dir '/home/e-smith/db/mysql55' 'attr(0750,root,root)' \
95 > %{name}-%{version}-filelist
96 echo "%doc COPYING" >> %{name}-%{version}-filelist
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %pre
102 %preun
103
104 %post
105 ## mysql.com compatibility
106 #[ -e /etc/rc.d/init.d/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld
107
108 %postun
109 #if [ "$1" == 0 ]; then
110 # [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-mysqld || :
111 #fi
112
113 %files -f %{name}-%{version}-filelist
114 %defattr(-,root,root)

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