/[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.5 - (hide annotations) (download)
Thu Feb 16 05:46:59 2017 UTC (7 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql55-2_0_0-3_el6_sme
Changes since 1.4: +7 -3 lines
* Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme
- fix incorrect startup script [SME: 10094]
- MYSQL55_MYSQLD_SCLS_ENABLED is now MYSQL55_SCLS_ENABLED

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

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