]> git.pld-linux.org Git - packages/collectl.git/blame - collectl.spec
- do the files
[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
4Version: 2.4.3
5Release: 0.1
6License: Artistic, GPL
7Group: Applications/System
8Source0: http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz
694eecf2 9# Source0-md5: bcb74b5677e4b5a494ebe51f5e8d6710
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
694eecf2 23%{__sed} -i -e 's,\r$,,' FAQ-collectl.html
6bd5fb61
AM
24
25%install
26rm -rf $RPM_BUILD_ROOT
694eecf2
ER
27install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man1,/etc/rc.d/init.d,/var/log/%{name},%{_sysconfdir}}
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)
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/*
This page took 0.520539 seconds and 4 git commands to generate.