A new user interface for you! Read more...

File mysqltuner.spec of Package mysqltuner

#
# spec file for package mysqltuner
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 joschibrauchle@gmx.de
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mysqltuner
Version:        1.7.13
Release:        0
Summary:        Checks MySQL performance and suggests possible optimizations
License:        GPL-3.0-only
Group:          Productivity/Databases/Tools
URL:            https://github.com/major/MySQLTuner-perl
Source:         https://github.com/major/MySQLTuner-perl/archive/%{version}.tar.gz#/MySQLTuner-perl-%{version}.tar.gz
BuildRequires:  dos2unix
Requires:       perl >= 5.6
BuildArch:      noarch

%description
MySQLTuner is a script written in Perl that will assist you with your
MySQL configuration and make recommendations for increased performance
and stability. Within seconds, it will display statistics about your
MySQL installation and the areas where it can be improved.

It's key to remember that MySQLTuner is a script which can assist you
with your server, but it is not the solution to a badly performing
MySQL server. The best performance gains come from a thorough review
of the queries sent to the server, and an evaluation of the MySQL
server itself. A qualified developer in your application's programming
or scripting language should be able to work with a MySQL database
administrator to find improvements for your server. Once the server
and application are optimized well, you may need to consider hardware
upgrades to the physical server itself.

%prep
%setup -q -n MySQLTuner-perl-%{version}
# remove CR characters
dos2unix README.md
sed -i mysqltuner.pl -e 's|#!%{_bindir}/env perl|#!%{_bindir}/perl|'

%build
#empty, but rpmlint wants it

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name}.pl %{buildroot}%{_bindir}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}.pl

%changelog