- Do not use url for patch mytop_five_o.patch as its no longer accessible OBS-URL: https://build.opensuse.org/package/show/server:database/mytop?expand=0&rev=17
65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package mytop
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mytop
|
|
Version: 1.6
|
|
Release: 0
|
|
Summary: A top Clone for MySQL
|
|
License: GPL-2.0-or-later
|
|
URL: https://jeremy.zawodny.com/mysql/mytop/
|
|
Source: http://jeremy.zawodny.com/mysql/mytop/mytop-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM mytop_five_o.patch -- makes it work with mysql 5.0
|
|
Patch1: mytop_five_o.patch
|
|
# PATCH-FIX-UPSTREAM mytop_option-and-doc.patch [bnc#716439] cwh@suse.de -- fixed starting failure and documentation
|
|
Patch2: mytop_option-and-doc.patch
|
|
Requires: perl = %{perl_version}
|
|
Requires: perl-DBD-mysql
|
|
Requires: perl-DBI
|
|
Requires: perl-TermReadKey
|
|
BuildArch: noarch
|
|
BuildRequires: perl-macros
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
perl Makefile.PL
|
|
%make_build
|
|
|
|
%check
|
|
%make_build test
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install_vendor
|
|
%perl_process_packlist
|
|
|
|
%files
|
|
%doc Changes
|
|
%{_mandir}/man?/mytop.1%{?ext_man}
|
|
%{_bindir}/mytop
|
|
|
|
%changelog
|