2 # - perlish which(1) or hardcode mysqladmin path in patch0
3 Summary: High Performance MySQL Tuning Script
9 Source0: https://github.com/rackerhacker/MySQLTuner-perl/archive/v%{version}.tar.gz?/%{name}-%{version}.tgz
10 # Source0-md5: 036c0e0254c66016ef87cb5ddff4b8e1
12 URL: https://github.com/rackerhacker/MySQLTuner-perl
13 BuildRequires: rpm-perlprov >= 4.1-13
14 Requires: mysql-client
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 MySQLTuner is a high-performance MySQL tuning script written in Perl
20 that will provide you with a snapshot of a MySQL server's health.
21 Based on the statistics gathered, specific recommendations will be
22 provided that will increase a MySQL server's efficiency and
23 performance. The script gives you automated MySQL tuning that is on
24 the level of what you would receive from a MySQL DBA.
26 This script has been derived from many of the ideas in Matthew
27 Montgomery's MySQL tuning primer script.
30 %setup -q -n MySQLTuner-perl-%{version}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_sbindir}
36 install -p %{name}.pl $RPM_BUILD_ROOT%{_sbindir}/%{name}
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
44 %attr(755,root,root) %{_sbindir}/%{name}