Author: glen Date: Fri Feb 29 11:51:51 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - do the files
---- Files affected: SPECS: collectl.spec (1.1 -> 1.2) ---- Diffs: ================================================================ Index: SPECS/collectl.spec diff -u SPECS/collectl.spec:1.1 SPECS/collectl.spec:1.2 --- SPECS/collectl.spec:1.1 Thu Feb 28 18:47:32 2008 +++ SPECS/collectl.spec Fri Feb 29 12:51:46 2008 @@ -1,4 +1,5 @@ # $Revision$, $Date$ +%include /usr/lib/rpm/macros.perl Summary: A utility to collect various linux performance data Name: collectl Version: 2.4.3 @@ -6,7 +7,12 @@ License: Artistic, GPL Group: Applications/System Source0: http://dl.sourceforge.net/collectl/%{name}-%{version}-src.tar.gz +# Source0-md5: bcb74b5677e4b5a494ebe51f5e8d6710 URL: http://collectl.sourceforge.net +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: sed >= 4.0 +Requires: perl-base >= 1:5.8.0 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -15,22 +21,29 @@ %prep %setup -q - -%build - -%clean -rm -Rf $RPM_BUILD_ROOT +%{__sed} -i -e 's,\r$,,' FAQ-collectl.html %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man1,/etc/rc.d/init.d,/var/log/%{name},%{_sysconfdir}} +cp -a man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 +install initd/collectl $RPM_BUILD_ROOT/etc/rc.d/init.d +install collectl.pl $RPM_BUILD_ROOT%{_sbindir}/collectl +cp -a formatit.ph $RPM_BUILD_ROOT%{_sbindir} # XXX, move it out of sbindir, as not executable and not directly invokable +cp -a collectl.conf $RPM_BUILD_ROOT%{_sysconfdir} -install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} -install -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d -install -d $RPM_BUILD_ROOT%{_mandir}/man1 -install -d $RPM_BUILD_ROOT/var/log/%{name} +%clean +rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc FAQ-collectl.html RELEASE-collectl +%attr(754,root,root) /etc/rc.d/init.d/collectl +%attr(755,root,root) %{_sbindir}/collectl +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collectl.conf +# XXX not executable +%{_sbindir}/formatit.ph +%{_mandir}/man1/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -38,6 +51,8 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.2 2008-02-29 11:51:46 glen +- do the files + Revision 1.1 2008-02-28 17:47:32 arekm - worse than raw - ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/collectl.spec?r1=1.1&r2=1.2&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
