[packages/mysqltuner] up to 1.2.0
glen
glen at pld-linux.org
Fri Apr 12 10:57:31 CEST 2013
commit dbc1946b67c209ab5e1844d9281ab6e86369f064
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Apr 12 11:57:23 2013 +0300
up to 1.2.0
mysqltuner.patch | 4 ++--
mysqltuner.spec | 20 ++++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/mysqltuner.spec b/mysqltuner.spec
index 0bff575..8856de9 100644
--- a/mysqltuner.spec
+++ b/mysqltuner.spec
@@ -3,21 +3,21 @@
%include /usr/lib/rpm/macros.perl
Summary: High Performance MySQL Tuning Script
Name: mysqltuner
-Version: 0.9.9
-Release: 0.3
+Version: 1.2.0
+Release: 1
License: GPL v3+
-Group: Daemons
-URL: http://rackerhacker.com/mysqltuner/
-Source0: http://mysqltuner.com/%{name}.pl
+Group: Applications
+Source0: https://github.com/rackerhacker/MySQLTuner-perl/archive/v%{version}.tar.gz?/%{name}-%{version}.tgz
+# Source0-md5: 036c0e0254c66016ef87cb5ddff4b8e1
Patch0: %{name}.patch
-# Source0-md5: 097ceed8577ff4dbed134970fd8781e4
+URL: https://github.com/rackerhacker/MySQLTuner-perl
BuildRequires: rpm-perlprov >= 4.1-13
Requires: mysql-client
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-MySQLTuner is a high-performance MySQL tuning script written in perl
+MySQLTuner is a high-performance MySQL tuning script written in Perl
that will provide you with a snapshot of a MySQL server's health.
Based on the statistics gathered, specific recommendations will be
provided that will increase a MySQL server's efficiency and
@@ -28,18 +28,18 @@ This script has been derived from many of the ideas in Matthew
Montgomery's MySQL tuning primer script.
%prep
-%setup -q -c -T
-%{__sed} -e 's,\r$,,' %{SOURCE0} > %{name}
+%setup -q -n MySQLTuner-perl-%{version}
%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sbindir}
-install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
+install -p %{name}.pl $RPM_BUILD_ROOT%{_sbindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README
%attr(755,root,root) %{_sbindir}/%{name}
diff --git a/mysqltuner.patch b/mysqltuner.patch
index d3b7d36..0bbd570 100644
--- a/mysqltuner.patch
+++ b/mysqltuner.patch
@@ -1,7 +1,7 @@
TODO: cook perlish which(), or hardcode
---- ./mysqltuner 2008-11-27 00:28:03.594608254 +0200
-+++ ./mysqltuner 2008-11-27 00:27:41.121275469 +0200
+--- ./mysqltuner.pl 2008-11-27 00:28:03.594608254 +0200
++++ ./mysqltuner.pl 2008-11-27 00:27:41.121275469 +0200
@@ -34,7 +34,6 @@
#
use strict;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysqltuner.git/commitdiff/dbc1946b67c209ab5e1844d9281ab6e86369f064
More information about the pld-cvs-commit
mailing list