/[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.2 - (hide annotations) (download)
Sun Feb 19 16:36:02 2017 UTC (7 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mysql57-2_0_0-2_el6_sme
Changes since 1.1: +5 -6 lines
* Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
- fix requires rh-myql57

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.2 %define release 2
6 unnilennium 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GPL
9     Group: Networking/Daemons
10     Source: %{name}-%{version}.tar.gz
11     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
12     BuildArchitectures: noarch
13 unnilennium 1.2 Requires: rh-mysql57
14 unnilennium 1.1 Requires: e-smith-base
15     Requires: e-smith-lib >= 1.15.1-19
16     BuildRequires: e-smith-devtools >= 1.13.1-03
17     AutoReqProv: no
18    
19     %changelog
20 unnilennium 1.2 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme
21     - fix requires rh-myql57
22    
23 unnilennium 1.1 * Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme
24     - first version forked from smeserver-mysql57-2.0.0-5
25    
26    
27     %description
28     This package adds necessary startup and configuration items for
29     mysql57.
30    
31     %prep
32     %setup
33    
34    
35     %build
36     mkdir -p root/etc/e-smith/sql/init57
37     perl createlinks
38    
39     # add this for mysql.com rpm compatibility
40     #mkdir -p root/var/run/mysql57-mysqld
41     # we hould we rather link to the actual dir in opt , done in createlinks
42    
43     mkdir -p root/etc/rc.d/init.d/supervise
44     ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld
45    
46     mkdir -p root/etc/rc.d/rc7.d
47     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld
48     ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init
49    
50     mkdir -p root/service
51     ln -s /var/service/mysql57-mysqld root/service
52     touch root/var/service/mysql57-mysqld/down
53    
54     mkdir -p root/var/log/mysql57-mysqld
55     mkdir -p root/home/e-smith/db/mysql57
56    
57    
58     %install
59     rm -rf $RPM_BUILD_ROOT
60     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
61     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
62     --dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \
63     --file /var/service/mysql57-mysqld/run 'attr(0757,root,root)' \
64     --file /var/service/mysql57-mysqld/control/t 'attr(0750,root,root)' \
65     --file /var/service/mysql57-mysqld/control/d 'attr(0750,root,root)' \
66     --file /var/service/mysql57-mysqld/control/i 'attr(0750,root,root)' \
67     --file /var/service/mysql57-mysqld/control/q 'attr(0750,root,root)' \
68     --file /var/service/mysql57-mysqld/log/run 'attr(0757,root,root)' \
69     --dir '/var/log/mysql57-mysqld' 'attr(2750,smelog,smelog)' \
70     --dir '/home/e-smith/db/mysql57' 'attr(0750,root,root)' \
71     > %{name}-%{version}-filelist
72     echo "%doc COPYING" >> %{name}-%{version}-filelist
73    
74     %clean
75     rm -rf $RPM_BUILD_ROOT
76    
77     %pre
78     %preun
79    
80     %post
81     ## mysql.com compatibility
82     #[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld
83    
84     %postun
85     #if [ "$1" == 0 ]; then
86     # [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || :
87     #fi
88    
89     %files -f %{name}-%{version}-filelist
90     %defattr(-,root,root)

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