diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 0000000..2c6565e --- /dev/null +++ b/build/build.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +VERSION=1.4.5 + +mkdir -p mysqltuner-$VERSION +cp ../mysqltuner.pl mysqltuner.spec ../LICENSE mysqltuner-$VERSION +tar czf mysqltuner-${VERSION}.tgz mysqltuner-$VERSION +rpmbuild -ta mysqltuner-${VERSION}.tgz 2>/dev/null| grep --color=never '\.rpm' | cut -d: -f2 > ./lrpm.txt +mv $(cat ./lrpm.txt) . +rm -rf mysqltuner-$VERSION ./lrpm.txt diff --git a/build/mysqltuner-1.4.5-1.noarch.rpm b/build/mysqltuner-1.4.5-1.noarch.rpm new file mode 100644 index 0000000..4df88dd Binary files /dev/null and b/build/mysqltuner-1.4.5-1.noarch.rpm differ diff --git a/build/mysqltuner-1.4.5-1.src.rpm b/build/mysqltuner-1.4.5-1.src.rpm new file mode 100644 index 0000000..bab15fb Binary files /dev/null and b/build/mysqltuner-1.4.5-1.src.rpm differ diff --git a/build/mysqltuner-1.4.5.tgz b/build/mysqltuner-1.4.5.tgz new file mode 100644 index 0000000..854cf9b Binary files /dev/null and b/build/mysqltuner-1.4.5.tgz differ diff --git a/build/mysqltuner.spec b/build/mysqltuner.spec new file mode 100644 index 0000000..8132561 --- /dev/null +++ b/build/mysqltuner.spec @@ -0,0 +1,46 @@ +Summary: High Performance MySQL Tuning Script +Name: mysqltuner +Version: 1.4.5 +Release: 1 +License: GPL v3+ +Group: Applications +Source0: https://github.com/build/MySQLTuner-perl/build/%{name}-%{version}.tgz +URL: https://github.com/major/MySQLTuner-perl +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 +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 +performance. The script gives you automated MySQL tuning that is on +the level of what you would receive from a MySQL DBA. + +This script has been derived from many of the ideas in Matthew +Montgomery's MySQL tuning primer script. + +%prep +%setup -q + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sbindir} +install -p %{name}.pl $RPM_BUILD_ROOT%{_sbindir}/%{name} +install -d $RPM_BUILD_ROOT%{_datarootdir}/%{name} +install -p LICENSE $RPM_BUILD_ROOT%{_sbindir}/%{name} + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE +%attr(755,root,root) %{_sbindir}/%{name} + +%changelog +* Thu Jun 18 2015 Jean-Marie RENOUARD 1.4.5-1 +- Initial RPM release +