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