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

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

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


Revision 1.2 - (show annotations) (download)
Wed Nov 4 20:29:22 2015 UTC (9 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql55-1_0_0-5_el5_sme
Changes since 1.1: +6 -2 lines
* Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
- fixed root pass link typo [SME: 8527]

1 Summary: smeserver specific mysql55 configuration and templates.
2 %define name smeserver-mysql55
3 Name: %{name}
4 %define version 1.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-1.0.0-typo.patch
12 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
13 BuildArchitectures: noarch
14 Requires: mysql55-mysql-server
15 Requires: mysql55-mysql
16 Requires: mysql55-runtime
17 Requires: mysql55-mysql-libs
18 Requires: mysql55
19 Requires: e-smith-base
20 Requires: e-smith-lib >= 1.15.1-19
21 BuildRequires: e-smith-devtools >= 1.13.1-03
22 AutoReqProv: no
23
24 %changelog
25 * Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
26 - fixed root pass link typo [SME: 8527]
27
28 * Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme
29 - initial release from e-smith-mysql 2.0.0-4
30
31 %description
32 This package adds necessary startup and configuration items for
33 mysql55.
34
35 %prep
36 %setup
37 %patch0 -p1
38
39 %build
40 mkdir -p root/etc/e-smith/sql/init55
41 perl createlinks
42
43 # add this for mysql.com rpm compatibility
44 #mkdir -p root/var/run/mysql55-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/mysql55-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/S50mysql55-mysqld
52 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init
53
54 mkdir -p root/service
55 ln -s /var/service/mysql55-mysqld root/service
56 touch root/var/service/mysql55-mysqld/down
57
58 mkdir -p root/var/log/mysql55-mysqld
59 mkdir -p root/home/e-smith/db/mysql55
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/mysql55-mysqld 'attr(0755,mysql,mysql)' \
67 --file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \
68 --file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \
69 --file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \
70 --file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \
71 --file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \
72 --file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \
73 --dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \
74 --dir '/home/e-smith/db/mysql55' '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/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld
87
88 %postun
89 #if [ "$1" == 0 ]; then
90 # [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-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