]> git.pld-linux.org Git - SPECS.git/blob - mysqltuner.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / mysqltuner.spec
1 # TODO
2 # - perlish which(1) or hardcode mysqladmin path in patch0
3 Summary:        High Performance MySQL Tuning Script
4 Name:           mysqltuner
5 Version:        1.2.0
6 Release:        1
7 License:        GPL v3+
8 Group:          Applications
9 Source0:        https://github.com/rackerhacker/MySQLTuner-perl/archive/v%{version}.tar.gz?/%{name}-%{version}.tgz
10 # Source0-md5:  036c0e0254c66016ef87cb5ddff4b8e1
11 Patch0:         %{name}.patch
12 URL:            https://github.com/rackerhacker/MySQLTuner-perl
13 BuildRequires:  rpm-perlprov >= 4.1-13
14 Requires:       mysql-client
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
25
26 This script has been derived from many of the ideas in Matthew
27 Montgomery's MySQL tuning primer script.
28
29 %prep
30 %setup -q -n MySQLTuner-perl-%{version}
31 %patch0 -p1
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_sbindir}
36 install -p %{name}.pl $RPM_BUILD_ROOT%{_sbindir}/%{name}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc README
44 %attr(755,root,root) %{_sbindir}/%{name}
This page took 1.0298 seconds and 3 git commands to generate.