Name: mytop Version: 1.6 Release: 2%{?dist} Summary: A top clone for MySQL Group: Applications/System License: GPLv2 URL: http://jeremy.zawodny.com/mysql/%{name}/ Source: http://jeremy.zawodny.com/mysql/%{name}/%{name}-%{version}.tar.gz Requires: perl(DBD::mysql) >= 1 Requires: perl(Term::ReadKey) >= 2.1 Requires: perl(Term::ANSIColor) perl(Time::HiRes) BuildRequires: perl(DBD::mysql) >= 1 BuildRequires: perl(DBI) >= 1.13 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Term::ReadKey) >= 2.1 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description mytop is a console-based tool for monitoring the threads and overall performance of MySQL servers. The user interface is modeled after familiar top application. %prep %setup -q %build %{__perl} Makefile.PL %{__make} %install %{__rm} -rf %{buildroot} %{__install} -D -m 0644 blib/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %{__install} -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name} %check %{__make} test %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %doc Changes README %{_mandir}/man1/%{name}.1* %{_bindir}/%{name} %changelog * Sun Dec 30 2007 Terje Rosten - 1.6-2 - remove explicit req on dbi, let rpm to the job. * Wed Dec 26 2007 Terje Rosten - 1.6-1 - Initial package