]> git.pld-linux.org Git - packages/collectl.git/blame - collectl.spec
- upgraded to 2.5.1
[packages/collectl.git] / collectl.spec
CommitLineData
694eecf2 1%include /usr/lib/rpm/macros.perl
6bd5fb61
AM
2Summary: A utility to collect various linux performance data
3Name: collectl
d7993851 4Version: 2.5.1
6bd5fb61
AM
5Release: 0.1
6License: Artistic, GPL
7Group: Applications/System
8Source0: http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz
d7993851 9# Source0-md5: eea1db0893ee9911bc9c10b1e7f687ac
6bd5fb61 10URL: http://collectl.sourceforge.net
694eecf2
ER
11BuildRequires: perl-devel >= 1:5.8.0
12BuildRequires: rpm-perlprov >= 4.1-13
13BuildRequires: sed >= 4.0
14Requires: perl-base >= 1:5.8.0
6bd5fb61
AM
15BuildArch: noarch
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19A utility to collect linux performance data.
20
21%prep
22%setup -q
d7993851 23%{__sed} -i -e 's,\r$,,' docs/FAQ-collectl.html
6bd5fb61
AM
24
25%install
26rm -rf $RPM_BUILD_ROOT
d7993851 27install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d,/var/log/%{name},%{_sysconfdir}}
694eecf2
ER
28cp -a man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
29install initd/collectl $RPM_BUILD_ROOT/etc/rc.d/init.d
30install collectl.pl $RPM_BUILD_ROOT%{_sbindir}/collectl
31cp -a formatit.ph $RPM_BUILD_ROOT%{_sbindir} # XXX, move it out of sbindir, as not executable and not directly invokable
32cp -a collectl.conf $RPM_BUILD_ROOT%{_sysconfdir}
6bd5fb61 33
694eecf2
ER
34%clean
35rm -rf $RPM_BUILD_ROOT
6bd5fb61
AM
36
37%files
38%defattr(644,root,root,755)
d7993851 39%doc docs/* RELEASE-collectl
694eecf2
ER
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/*
This page took 0.056176 seconds and 4 git commands to generate.