]>
Commit | Line | Data |
---|---|---|
6bd5fb61 AM |
1 | Summary: A utility to collect various linux performance data |
2 | Name: collectl | |
d7993851 | 3 | Version: 2.5.1 |
6bd5fb61 AM |
4 | Release: 0.1 |
5 | License: Artistic, GPL | |
caf6f57d | 6 | Group: Daemons |
6bd5fb61 | 7 | Source0: http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz |
d7993851 | 8 | # Source0-md5: eea1db0893ee9911bc9c10b1e7f687ac |
6bd5fb61 | 9 | URL: http://collectl.sourceforge.net |
694eecf2 ER |
10 | BuildRequires: perl-devel >= 1:5.8.0 |
11 | BuildRequires: rpm-perlprov >= 4.1-13 | |
12 | BuildRequires: sed >= 4.0 | |
13 | Requires: perl-base >= 1:5.8.0 | |
6bd5fb61 AM |
14 | BuildArch: noarch |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | A utility to collect linux performance data. | |
19 | ||
20 | %prep | |
21 | %setup -q | |
d7993851 | 22 | %{__sed} -i -e 's,\r$,,' docs/FAQ-collectl.html |
6bd5fb61 AM |
23 | |
24 | %install | |
25 | rm -rf $RPM_BUILD_ROOT | |
d7993851 | 26 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d,/var/log/%{name},%{_sysconfdir}} |
694eecf2 ER |
27 | cp -a man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
28 | install initd/collectl $RPM_BUILD_ROOT/etc/rc.d/init.d | |
29 | install collectl.pl $RPM_BUILD_ROOT%{_sbindir}/collectl | |
30 | cp -a formatit.ph $RPM_BUILD_ROOT%{_sbindir} # XXX, move it out of sbindir, as not executable and not directly invokable | |
31 | cp -a collectl.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
6bd5fb61 | 32 | |
694eecf2 ER |
33 | %clean |
34 | rm -rf $RPM_BUILD_ROOT | |
6bd5fb61 AM |
35 | |
36 | %files | |
37 | %defattr(644,root,root,755) | |
d7993851 | 38 | %doc docs/* RELEASE-collectl |
694eecf2 ER |
39 | %attr(754,root,root) /etc/rc.d/init.d/collectl |
40 | %attr(755,root,root) %{_sbindir}/collectl | |
41 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collectl.conf | |
42 | # XXX not executable | |
43 | %{_sbindir}/formatit.ph | |
44 | %{_mandir}/man1/* |