]> git.pld-linux.org Git - packages/collectl.git/blame - collectl.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/collectl.git] / collectl.spec
CommitLineData
6bd5fb61
AM
1Summary: A utility to collect various linux performance data
2Name: collectl
d7993851 3Version: 2.5.1
6bd5fb61
AM
4Release: 0.1
5License: Artistic, GPL
caf6f57d 6Group: Daemons
6bd5fb61 7Source0: http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz
d7993851 8# Source0-md5: eea1db0893ee9911bc9c10b1e7f687ac
6bd5fb61 9URL: http://collectl.sourceforge.net
694eecf2
ER
10BuildRequires: perl-devel >= 1:5.8.0
11BuildRequires: rpm-perlprov >= 4.1-13
12BuildRequires: sed >= 4.0
13Requires: perl-base >= 1:5.8.0
6bd5fb61
AM
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18A 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
25rm -rf $RPM_BUILD_ROOT
d7993851 26install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d,/var/log/%{name},%{_sysconfdir}}
694eecf2
ER
27cp -a man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
28install initd/collectl $RPM_BUILD_ROOT/etc/rc.d/init.d
29install collectl.pl $RPM_BUILD_ROOT%{_sbindir}/collectl
30cp -a formatit.ph $RPM_BUILD_ROOT%{_sbindir} # XXX, move it out of sbindir, as not executable and not directly invokable
31cp -a collectl.conf $RPM_BUILD_ROOT%{_sysconfdir}
6bd5fb61 32
694eecf2
ER
33%clean
34rm -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/*
This page took 0.093118 seconds and 4 git commands to generate.