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

Annotation of /rpms/smeserver-mysql57/contribs9/smeserver-mysql57.spec

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


Revision 1.9 - (hide annotations) (download)
Mon Mar 13 05:25:37 2017 UTC (7 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-8_el6_sme
Changes since 1.8: +6 -1 lines
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
- update run file and template paths [SME: 10148]
- r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc
- update run, set.password and my.cnf for rh-mysql57

1 unnilennium 1.1 Summary: smeserver specific mysql57 configuration and templates.
2     %define name smeserver-mysql57
3     Name: %{name}
4     %define version 2.0.0
5 unnilennium 1.9 %define release 8
6 unnilennium 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GPL
9     Group: Networking/Daemons
10     Source: %{name}-%{version}.tar.gz
11 unnilennium 1.3 Patch0: smeserver-mysql57-2.0.0-SME10096.patch
12 unnilennium 1.4 Patch1: smeserver-mysql57-2.0.0-SME10145-phmyadminFragment.patch
13 unnilennium 1.6 Patch2: smeserver-mysql57-2.0.0-SME10146-aliases.patch
14 unnilennium 1.7 Patch3: smeserver-mysql57-2.0.0-SME10147-rhpath.patch
15 unnilennium 1.8 Patch4: smeserver-mysql57-2.0.0-SME10148.patch
16 unnilennium 1.9 Patch5: smeserver-mysql57-2.0.0-SME10148-initializeDB.patch
17 unnilennium 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18     BuildArchitectures: noarch
19 unnilennium 1.2 Requires: rh-mysql57
20 unnilennium 1.1 Requires: e-smith-base
21     Requires: e-smith-lib >= 1.15.1-19
22     BuildRequires: e-smith-devtools >= 1.13.1-03
23     AutoReqProv: no
24    
25     %changelog
26 unnilennium 1.8 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
27     - update run file and template paths [SME: 10148]
28 unnilennium 1.9 - r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc
29     - update run, set.password and my.cnf for rh-mysql57
30 unnilennium 1.8
31 unnilennium 1.7 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme
32     - fix wrong path /opt/rh/mysql57/ [SME: 10147]
33    
34 unnilennium 1.5 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
35     - NFR new aliases for fast use: mysql57 mysqlshow57 mysqladmin57 mysqldump57 mysqlimport57 mysqlbinlog57 [SME: 10146]
36    
37 unnilennium 1.4 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
38     - fix conflict with mysql55 phpmyadmin fragment [SME: 10145]
39    
40 unnilennium 1.3 * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
41     - fix init57 not used by dedicated mysql.init [SME: 10096]
42    
43 unnilennium 1.2 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
44     - fix requires rh-myql57
45    
46 unnilennium 1.1 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
47     - first version forked from smeserver-mysql57-2.0.0-5
48    
49    
50     %description
51     This package adds necessary startup and configuration items for
52     mysql57.
53    
54     %prep
55     %setup
56 unnilennium 1.3 %patch0 -p1
57 unnilennium 1.4 %patch1 -p1
58 unnilennium 1.5 %patch2 -p1
59 unnilennium 1.7 %patch3 -p1
60 unnilennium 1.8 %patch4 -p1
61 unnilennium 1.9 %patch5 -p1
62 unnilennium 1.1
63     %build
64     mkdir -p root/etc/e-smith/sql/init57
65 unnilennium 1.9 mkdir -p root/opt/rh/rh-mysql57/root
66 unnilennium 1.1 perl createlinks
67    
68     # add this for mysql.com rpm compatibility
69     #mkdir -p root/var/run/mysql57-mysqld
70     # we hould we rather link to the actual dir in opt , done in createlinks
71    
72     mkdir -p root/etc/rc.d/init.d/supervise
73     ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
74    
75     mkdir -p root/etc/rc.d/rc7.d
76     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
77     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
78    
79     mkdir -p root/service
80     ln -s /var/service/mysql57-mysqld root/service
81     touch root/var/service/mysql57-mysqld/down
82    
83     mkdir -p root/var/log/mysql57-mysqld
84     mkdir -p root/home/e-smith/db/mysql57
85    
86    
87     %install
88     rm -rf $RPM_BUILD_ROOT
89     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
90     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
91     --dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
92     --file /var/service/mysql57-mysqld/run 'attr(0757,root,root)' \
93     --file /var/service/mysql57-mysqld/control/t 'attr(0750,root,root)' \
94     --file /var/service/mysql57-mysqld/control/d 'attr(0750,root,root)' \
95     --file /var/service/mysql57-mysqld/control/i 'attr(0750,root,root)' \
96     --file /var/service/mysql57-mysqld/control/q 'attr(0750,root,root)' \
97     --file /var/service/mysql57-mysqld/log/run 'attr(0757,root,root)' \
98     --dir '/var/log/mysql57-mysqld' 'attr(2750,smelog,smelog)' \
99     --dir '/home/e-smith/db/mysql57' 'attr(0750,root,root)' \
100     > %{name}-%{version}-filelist
101     echo "%doc COPYING" >> %{name}-%{version}-filelist
102    
103     %clean
104     rm -rf $RPM_BUILD_ROOT
105    
106     %pre
107     %preun
108    
109     %post
110     ## mysql.com compatibility
111     #[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld
112    
113     %postun
114     #if [ "$1" == 0 ]; then
115     # [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || :
116     #fi
117    
118     %files -f %{name}-%{version}-filelist
119     %defattr(-,root,root)

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