File mytop.spec of Package mytop

#
# spec file for package mytop (Version 1.6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           mytop
URL:            http://jeremy.zawodny.com/mysql/mytop/
Version:        1.6
Release:        1
Group:          Productivity/Databases/Tools
Source:         mytop-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A top Clone for MySQL
License:        GPL v2 or later
Requires:       perl = %{perl_version} perl-DBI perl-DBD-mysql perl-TermReadKey

%description
mytop is a console-based (non-GUI) tool for monitoring the threads and
overall performance of MySQL 3.22.x, 3.23.x, and 4.x servers.

- With Term::ANSIColor installed you even get color.

- If you install Time::HiRes, get good real-time queries/second stats.



Authors:
--------
    Jeremy Zawodny <Jeremy@zawodny.com>

%prep
%setup -n mytop-%{version}

%build
perl Makefile.PL
make

%check
make test

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes
%doc %{_mandir}/man?/mytop.1.gz
/usr/bin/mytop
%dir %{perl_vendorarch}/auto/mytop
%{perl_vendorarch}/auto/mytop/.packlist
/var/adm/perl-modules/%{name}

%changelog
* Mon Jul 23 2007 - cwh@suse.de
- update to v1.6: Allows passwords that contain spaces
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Mon Feb 21 2005 - cwh@suse.de
- initial realease
openSUSE Build Service is sponsored by