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

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

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


Revision 1.9 - (hide annotations) (download)
Sun Mar 12 20:14:35 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql55-2_0_0-7_el6_sme
Changes since 1.8: +6 -1 lines
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
- fix conflict with mysql57 phpmyadmin fragment [SME: 10145]

1 unnilennium 1.1 Summary: smeserver specific mysql55 configuration and templates.
2     %define name smeserver-mysql55
3     Name: %{name}
4 unnilennium 1.2 %define version 2.0.0
5 unnilennium 1.9 %define release 7
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.5 Patch0: smeserver-mysql55-2.0.0-SME10094.patch
12 unnilennium 1.6 Patch1: smeserver-mysql55-2.0.0-SME10095-phpmyadmin.patch
13 unnilennium 1.7 Patch2: smeserver-mysql55-2.0.0-SME10099-prebackupdump.patch
14 unnilennium 1.8 Patch3: smeserver-mysql55-2.0.0-SME1096.patch
15 unnilennium 1.9 Patch4: smeserver-mysql55-2.0.0-SME10145-phmyadminFragment.patch
16 unnilennium 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17     BuildArchitectures: noarch
18     Requires: mysql55-mysql-server
19     Requires: mysql55-mysql
20     Requires: mysql55-runtime
21     Requires: mysql55-mysql-libs
22     Requires: mysql55
23     Requires: e-smith-base
24     Requires: e-smith-lib >= 1.15.1-19
25     BuildRequires: e-smith-devtools >= 1.13.1-03
26     AutoReqProv: no
27    
28     %changelog
29 unnilennium 1.9 * Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme
30     - fix conflict with mysql57 phpmyadmin fragment [SME: 10145]
31    
32 unnilennium 1.8 * Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme
33     - fix init55 not used by dedicated mysql.init [SME: 1096]
34    
35 unnilennium 1.7 * Sat Feb 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme
36     - fix failure to dump mysql55 table on pre-backup event [SME: 1099]
37    
38 unnilennium 1.6 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme
39     - added template for phpmyadmin direct support [SME: 10095]
40     - you can access directly to your mysql55 db with the phpmyadmin contrib
41    
42 unnilennium 1.5 * Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
43     - fix incorrect startup script [SME: 10094]
44     - MYSQL55_MYSQLD_SCLS_ENABLED is now MYSQL55_SCLS_ENABLED
45    
46 unnilennium 1.4 * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
47 unnilennium 1.2 - first import to SME9
48     - mysql55 scl only available for x86_64
49    
50 unnilennium 1.1 * Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme
51     - fixed root pass link typo [SME: 8527]
52    
53     * Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme
54     - initial release from e-smith-mysql 2.0.0-4
55    
56     %description
57     This package adds necessary startup and configuration items for
58     mysql55.
59    
60     %prep
61     %setup
62 unnilennium 1.5 %patch0 -p1
63 unnilennium 1.6 %patch1 -p1
64 unnilennium 1.7 %patch2 -p1
65 unnilennium 1.8 %patch3 -p1
66 unnilennium 1.9 %patch4 -p1
67 unnilennium 1.1
68     %build
69     mkdir -p root/etc/e-smith/sql/init55
70     perl createlinks
71    
72     # add this for mysql.com rpm compatibility
73     #mkdir -p root/var/run/mysql55-mysqld
74     # we hould we rather link to the actual dir in opt , done in createlinks
75    
76     mkdir -p root/etc/rc.d/init.d/supervise
77     ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql55-mysqld
78    
79     mkdir -p root/etc/rc.d/rc7.d
80     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql55-mysqld
81     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init
82    
83     mkdir -p root/service
84     ln -s /var/service/mysql55-mysqld root/service
85     touch root/var/service/mysql55-mysqld/down
86    
87     mkdir -p root/var/log/mysql55-mysqld
88     mkdir -p root/home/e-smith/db/mysql55
89    
90    
91     %install
92     rm -rf $RPM_BUILD_ROOT
93     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
94     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
95     --dir /var/run/mysql55-mysqld 'attr(0755,mysql,mysql)' \
96     --file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \
97     --file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \
98     --file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \
99     --file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \
100     --file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \
101     --file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \
102     --dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \
103     --dir '/home/e-smith/db/mysql55' 'attr(0750,root,root)' \
104     > %{name}-%{version}-filelist
105     echo "%doc COPYING" >> %{name}-%{version}-filelist
106    
107     %clean
108     rm -rf $RPM_BUILD_ROOT
109    
110     %pre
111     %preun
112    
113     %post
114     ## mysql.com compatibility
115     #[ -e /etc/rc.d/init.d/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld
116    
117     %postun
118     #if [ "$1" == 0 ]; then
119     # [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-mysqld || :
120     #fi
121    
122     %files -f %{name}-%{version}-filelist
123     %defattr(-,root,root)

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