forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maatkit.spec
102 lines (71 loc) · 2.76 KB
/
maatkit.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Name: maatkit
Version: 6070
Release: 1%{?dist}
Summary: Essential command-line utilities for MySQL
Group: Applications/Databases
License: GPLv2 or Artistic
URL: http://www.maatkit.org/
Source0: http://maatkit.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(DBD::mysql) >= 1.0
Requires: perl(Term::ReadKey) >= 2.10
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This toolkit contains essential command-line utilities for MySQL, such as a
table checksum tool and query profiler. It provides missing features such as
checking slaves for data consistency, with emphasis on quality and
scriptability.
%prep
%setup -q
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING INSTALL Changelog*
%{_bindir}/*
%{_mandir}/man1/*.1*
%{perl_vendorlib}/maatkit.pod
#%{_mandir}/man3/*.3*
#%{perl_vendorlib}/maatkit.pm
#%{perl_vendorlib}/maatkitdsn.pm
%changelog
* Wed Apr 07 2010 David Hrbáč <[email protected]> - 6070-1
- new upstream version
* Mon Mar 29 2010 David Hrbáč <[email protected]> - 5899-1
- new upstream version
* Mon Dec 07 2009 David Hrbáč <[email protected]> - 5240-1
- new upstream version
* Thu Nov 19 2009 David Hrbáč <[email protected]> - 5014-1
- new upstream version
* Wed Oct 07 2009 David Hrbáč <[email protected]> - 4790-1
- new upstream version
* Tue Sep 22 2009 David Hrbáč <[email protected]> - 2725-3
- initial build
* Sat Jul 25 2009 Fedora Release Engineering <[email protected]> - 2725-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 2725-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Jan 4 2009 Sven Lankes <[email protected]> - 2725-1
- new upstream release
* Thu Dec 25 2008 Lubomir Rintel <[email protected]> - 2582-3
- Really fix the DBD dependency...
* Wed Dec 24 2008 Lubomir Rintel <[email protected]> - 2582-2
- Fix DBD driver dependency
* Tue Dec 23 2008 Lubomir Rintel <[email protected]> - 2582-1
- Bump release
- Fix BRs
* Sun Jul 13 2008 Lubomir Rintel <[email protected]> - 1972-2
- Cleanup for inclusion in Fedora
* Tue Jun 12 2007 Sven Edge <[email protected]> - 547-1
- initial packaging attempt