/[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.3 - (show annotations) (download)
Wed Mar 8 23:52:19 2017 UTC (7 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-3_el6_sme
Changes since 1.2: +6 -2 lines
* Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
- fix init57 not used by dedicated mysql.init [SME: 10096]

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 3
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 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
13 BuildArchitectures: noarch
14 Requires: rh-mysql57
15 Requires: e-smith-base
16 Requires: e-smith-lib >= 1.15.1-19
17 BuildRequires: e-smith-devtools >= 1.13.1-03
18 AutoReqProv: no
19
20 %changelog
21 * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
22 - fix init57 not used by dedicated mysql.init [SME: 10096]
23
24 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
25 - fix requires rh-myql57
26
27 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
28 - first version forked from smeserver-mysql57-2.0.0-5
29
30
31 %description
32 This package adds necessary startup and configuration items for
33 mysql57.
34
35 %prep
36 %setup
37 %patch0 -p1
38
39 %build
40 mkdir -p root/etc/e-smith/sql/init57
41 perl createlinks
42
43 # add this for mysql.com rpm compatibility
44 #mkdir -p root/var/run/mysql57-mysqld
45 # we hould we rather link to the actual dir in opt , done in createlinks
46
47 mkdir -p root/etc/rc.d/init.d/supervise
48 ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
49
50 mkdir -p root/etc/rc.d/rc7.d
51 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
52 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
53
54 mkdir -p root/service
55 ln -s /var/service/mysql57-mysqld root/service
56 touch root/var/service/mysql57-mysqld/down
57
58 mkdir -p root/var/log/mysql57-mysqld
59 mkdir -p root/home/e-smith/db/mysql57
60
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
65 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
66 --dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
67 --file /var/service/mysql57-mysqld/run 'attr(0757,root,root)' \
68 --file /var/service/mysql57-mysqld/control/t 'attr(0750,root,root)' \
69 --file /var/service/mysql57-mysqld/control/d 'attr(0750,root,root)' \
70 --file /var/service/mysql57-mysqld/control/i 'attr(0750,root,root)' \
71 --file /var/service/mysql57-mysqld/control/q 'attr(0750,root,root)' \
72 --file /var/service/mysql57-mysqld/log/run 'attr(0757,root,root)' \
73 --dir '/var/log/mysql57-mysqld' 'attr(2750,smelog,smelog)' \
74 --dir '/home/e-smith/db/mysql57' 'attr(0750,root,root)' \
75 > %{name}-%{version}-filelist
76 echo "%doc COPYING" >> %{name}-%{version}-filelist
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %pre
82 %preun
83
84 %post
85 ## mysql.com compatibility
86 #[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld
87
88 %postun
89 #if [ "$1" == 0 ]; then
90 # [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || :
91 #fi
92
93 %files -f %{name}-%{version}-filelist
94 %defattr(-,root,root)

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