forked from yoshinorim/mha4mysql-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmasterha_manager.spec
81 lines (62 loc) · 2.22 KB
/
masterha_manager.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Summary: Master High Availability Manager and Tools for MySQL, Manager Package
Name: mha4mysql-manager
Version: 0.56
Release: 0%{?dist}
License: GPL v2
Vendor: DeNA Co.,Ltd.
Group: Manager
URL: http://code.google.com/p/mysql-master-ha/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
Requires: perl(Config::Tiny)
Requires: perl(Log::Dispatch)
Requires: perl(Parallel::ForkManager)
Requires: mha4mysql-node >= 0.54
Source0: mha4mysql-manager-%{version}.tar.gz
%description
%{summary}.
%prep
%setup -q -n mha4mysql-manager-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS="vendor" INSTALLVENDORLIB=%{?perl_install_vendor_lib}
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
for brp in %{_prefix}/lib/rpm/%{_build_vendor}/brp-compress \
%{_prefix}/lib/rpm/brp-compress
do
[ -x $brp ] && $brp && break
done
find $RPM_BUILD_ROOT -type f \
| sed "s@^$RPM_BUILD_ROOT@@g" \
> %{name}-%{version}-%{release}-filelist
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit 1
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root,-)
%changelog
* Tue Apr 1 2014 Yoshinori Matsunobu <[email protected]>
- (Note: All changelogs are written here: http://code.google.com/p/mysql-master-ha/wiki/ReleaseNotes )
- Version 0.56
* Wed Dec 12 2012 Yoshinori Matsunobu <[email protected]>
- Version 0.55
* Sat Dec 1 2012 Yoshinori Matsunobu <[email protected]>
- Version 0.54
* Mon Jan 9 2012 Yoshinori Matsunobu <[email protected]>
- Version 0.53
* Fri Sep 16 2011 Yoshinori Matsunobu <[email protected]>
- Version 0.52
* Thu Aug 18 2011 Yoshinori Matsunobu <[email protected]>
- Version 0.51
* Sat Jul 23 2011 Yoshinori Matsunobu <[email protected]>
- Version 0.50