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

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

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


Revision 1.5 - (hide annotations) (download)
Fri Feb 25 02:34:48 2022 UTC (2 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-14_el7_sme
Changes since 1.4: +4 -1 lines
* Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-14.sme
- expand phpmyadmin config file on install [SME: 11877]

1 jpp 1.1 Summary: smeserver specific mysql57 configuration and templates.
2     %define name smeserver-mysql57
3     Name: %{name}
4     %define version 2.0.0
5 jpp 1.5 %define release 14
6 jpp 1.1 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     Patch1: smeserver-mysql57-2.0.0-SME10145-phmyadminFragment.patch
13     Patch2: smeserver-mysql57-2.0.0-SME10146-aliases.patch
14     Patch3: smeserver-mysql57-2.0.0-SME10147-rhpath.patch
15     Patch4: smeserver-mysql57-2.0.0-SME10148.patch
16     Patch5: smeserver-mysql57-2.0.0-SME10148-initializeDB.patch
17     Patch6: smeserver-mysql57-2.0.0-SME10148-initializeDB2.patch
18     Patch7: smeserver-mysql57-2.0.0-SME10197.patch
19     Patch8: smeserver-mysql57-2.0.0-SME10202-prebackup.patch
20     Patch9: smeserver-mysql57-2.0.0-SME10830-user.frm.patch
21 jpp 1.2 Patch10: smeserver-mysql57-2.0.0-bz11877-systemd.patch
22 jpp 1.1
23     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
24     BuildArchitectures: noarch
25     Requires: rh-mysql57
26     Requires: e-smith-base
27     Requires: e-smith-lib >= 1.15.1-19
28    
29     BuildRequires: e-smith-devtools >= 1.13.1-03
30     AutoReqProv: no
31    
32     %changelog
33 jpp 1.5 * Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-14.sme
34     - expand phpmyadmin config file on install [SME: 11877]
35    
36 jpp 1.2 * Wed Feb 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-13.sme
37     - adapt for SME10 [SME: 11877]
38     systemd service files
39     update event
40     changing paths
41    
42 jpp 1.1 * Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme
43     - fix reload dump when should not [SME: 10830]
44    
45     * Mon Apr 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-11.sme
46     - fix pre-backup failure [SME: 10202]
47    
48     * Thu Mar 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-10.sme
49     - fix initialize and load table [SME: 10197]
50    
51     * Wed Mar 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme
52     - some more modification to allow initialization [SME: 10148]
53     - error log was missing stoping initialization
54     - tweaking log format for system time
55    
56     * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
57     - update run file and template paths [SME: 10148]
58     - r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc
59     - update run, set.password and my.cnf for rh-mysql57
60    
61     * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme
62     - fix wrong path /opt/rh/mysql57/ [SME: 10147]
63    
64     * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
65     - NFR new aliases for fast use: mysql57 mysqlshow57 mysqladmin57 mysqldump57 mysqlimport57 mysqlbinlog57 [SME: 10146]
66    
67     * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
68     - fix conflict with mysql55 phpmyadmin fragment [SME: 10145]
69    
70     * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
71     - fix init57 not used by dedicated mysql.init [SME: 10096]
72    
73     * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
74     - fix requires rh-myql57
75    
76     * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
77     - first version forked from smeserver-mysql57-2.0.0-5
78    
79    
80     %description
81     This package adds necessary startup and configuration items for
82     mysql57.
83    
84     %prep
85     %setup
86     %patch0 -p1
87     %patch1 -p1
88     %patch2 -p1
89     %patch3 -p1
90     %patch4 -p1
91     %patch5 -p1
92     %patch6 -p1
93     %patch7 -p1
94     %patch8 -p1
95     %patch9 -p1
96 jpp 1.2 %patch10 -p1
97 jpp 1.1
98     %build
99     mkdir -p root/etc/e-smith/sql/init57
100 jpp 1.2 #mkdir -p root/opt/rh/rh-mysql57/root
101 jpp 1.1 perl createlinks
102    
103     # add this for mysql.com rpm compatibility
104     #mkdir -p root/var/run/mysql57-mysqld
105     # we hould we rather link to the actual dir in opt , done in createlinks
106    
107 jpp 1.2 #mkdir -p root/etc/rc.d/init.d/supervise
108     #ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
109 jpp 1.1
110 jpp 1.2 #mkdir -p root/etc/rc.d/rc7.d
111     #ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
112     #ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
113    
114     #mkdir -p root/service
115     #ln -s /var/service/mysql57-mysqld root/service
116     #touch root/var/service/mysql57-mysqld/down
117 jpp 1.1
118 jpp 1.2 rm -rf root/var/service
119 jpp 1.1 mkdir -p root/var/log/mysql57-mysqld
120     mkdir -p root/home/e-smith/db/mysql57
121 jpp 1.2 rm -rf root/etc/e-smith/templates.metadata/var/service
122 jpp 1.3 rm -rf root/service
123 jpp 1.4 rm -rf root/etc/e-smith/templates/opt
124     rm -rf root/etc/e-smith/templates/var/service
125 jpp 1.1
126     %install
127     rm -rf $RPM_BUILD_ROOT
128     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
129     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
130 jpp 1.2 --file /sbin/e-smith/systemd/mysql57-initialize 'attr(0757,mysql,mysql)' \
131     --file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \
132     --dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \
133     --dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \
134 jpp 1.4 | grep -vP '/opt/rh/rh-mysql57$' \
135     | grep -vP '/opt/rh/rh-mysql57/root$' \
136 jpp 1.1 > %{name}-%{version}-filelist
137 jpp 1.2 #--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
138 jpp 1.1 echo "%doc COPYING" >> %{name}-%{version}-filelist
139 jpp 1.4 # /opt/rh/rh-mysql57 and /opt/rh/rh-mysql57/root conflicts
140    
141 jpp 1.1
142     %clean
143     rm -rf $RPM_BUILD_ROOT
144    
145     %pre
146     %preun
147    
148     %post
149     ## mysql.com compatibility
150     #[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld
151    
152     %postun
153     #if [ "$1" == 0 ]; then
154     # [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || :
155     #fi
156    
157     %files -f %{name}-%{version}-filelist
158     %defattr(-,root,root)

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