/[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.10 - (hide annotations) (download)
Sun Mar 12 20:47:54 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql55-2_0_0-8_el6_sme
Changes since 1.9: +6 -1 lines
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-8.sme
- NFR new aliases for fast use: mysql55 mysqlshow55 mysqladmin55 mysqldump55 mysqlimport55 mysqlbinlog55 [SME: 10146]

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

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