File collectl.spec of Package collectl
#
# spec file for package collectl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: collectl
Summary: Collects data that describes the current system status
License: Artistic-1.0 ; GPL-2.0+
Url: http://collectl.sourceforge.net
Group: System/Monitoring
Version: 3.4.3
Release: 1
Source: %name-%version.src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Unlike most monitoring tools that either focus on a small set of
statistics, format their output in only one way, run either
interatively or as a daemon but not both, collectl tries to do it all.
%prep
%setup -q
%build
%install
install -m 755 -D collectl.pl %buildroot%_sbindir/collectl
install -m 755 -D readS %buildroot%_sbindir/collectl-readS
install -m 644 -D collectl.conf %buildroot/%_sysconfdir/collectl.conf
install -D formatit.ph %buildroot%_datadir/%name/formatit.ph
install -D lexpr.ph %buildroot%_datadir/%name/lexpr.ph
install -D sexpr.ph %buildroot%_datadir/%name/sexpr.ph
install -D vmstat.ph %buildroot%_datadir/%name/vmstat.ph
install -m 755 -D initd/collectl-suse %buildroot/%_sysconfdir/init.d/collectl
ln -s /etc/init.d/collectl %buildroot%_sbindir/rccollectl
install -m 644 -D man1/collectl.1 %buildroot%_mandir/man1/collectl.1
%preun
%stop_on_removal collectl
%postun
%restart_on_update collectl
%insserv_cleanup
%files
%defattr(-,root,root)
%doc docs/* COPYING ARTISTIC GPL README RELEASE-collectl
%config(noreplace) %_sysconfdir/collectl.conf
%_sysconfdir/init.d/collectl
%_sbindir/collectl
%_sbindir/collectl-readS
%_sbindir/rccollectl
%_datadir/collectl
%_mandir/man1/collectl.1.gz
%changelog