]> git.pld-linux.org Git - packages/collectl.git/blob - collectl.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/collectl.git] / collectl.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        A utility to collect various linux performance data
3 Name:           collectl
4 Version:        2.5.1
5 Release:        0.1
6 License:        Artistic, GPL
7 Group:          Daemons
8 Source0:        http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz
9 # Source0-md5:  eea1db0893ee9911bc9c10b1e7f687ac
10 URL:            http://collectl.sourceforge.net
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
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
23 %{__sed} -i -e 's,\r$,,' docs/FAQ-collectl.html
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_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}
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %files
38 %defattr(644,root,root,755)
39 %doc docs/* 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.076225 seconds and 3 git commands to generate.