File mytop.spec of Package mytop

#
# spec file for package mytop (Version 1.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           mytop
Url:            http://jeremy.zawodny.com/mysql/mytop/
Version:        1.6
Release:        77
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