/[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.3 - (show annotations) (download)
Thu Feb 16 04:06:58 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
Changes since 1.2: +2 -2 lines
* Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
- first import to SME9
- mysql55 scl only available for x86_64

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 1
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 Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
26 - first import to SME9
27 - mysql55 scl only available for x86_64
28
29 * Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
30 - fixed root pass link typo [SME: 8527]
31
32 * Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme
33 - initial release from e-smith-mysql 2.0.0-4
34
35 %description
36 This package adds necessary startup and configuration items for
37 mysql55.
38
39 %prep
40 %setup
41 #%patch0 -p1
42
43 %build
44 mkdir -p root/etc/e-smith/sql/init55
45 perl createlinks
46
47 # add this for mysql.com rpm compatibility
48 #mkdir -p root/var/run/mysql55-mysqld
49 # we hould we rather link to the actual dir in opt , done in createlinks
50
51 mkdir -p root/etc/rc.d/init.d/supervise
52 ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql55-mysqld
53
54 mkdir -p root/etc/rc.d/rc7.d
55 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql55-mysqld
56 ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init
57
58 mkdir -p root/service
59 ln -s /var/service/mysql55-mysqld root/service
60 touch root/var/service/mysql55-mysqld/down
61
62 mkdir -p root/var/log/mysql55-mysqld
63 mkdir -p root/home/e-smith/db/mysql55
64
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
69 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
70 --dir /var/run/mysql55-mysqld 'attr(0755,mysql,mysql)' \
71 --file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \
72 --file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \
73 --file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \
74 --file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \
75 --file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \
76 --file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \
77 --dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \
78 --dir '/home/e-smith/db/mysql55' 'attr(0750,root,root)' \
79 > %{name}-%{version}-filelist
80 echo "%doc COPYING" >> %{name}-%{version}-filelist
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %pre
86 %preun
87
88 %post
89 ## mysql.com compatibility
90 #[ -e /etc/rc.d/init.d/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld
91
92 %postun
93 #if [ "$1" == 0 ]; then
94 # [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-mysqld || :
95 #fi
96
97 %files -f %{name}-%{version}-filelist
98 %defattr(-,root,root)

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