From: Elan Ruusamäe Date: Tue, 12 Nov 2019 09:30:30 +0000 (+0200) Subject: new, version 0.15 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=4d2af940b1a330f67e4aed473633103c81986926;p=packages%2Ffatrace.git new, version 0.15 based on fedora package, 53071be --- 4d2af940b1a330f67e4aed473633103c81986926 diff --git a/fatrace.spec b/fatrace.spec new file mode 100644 index 0000000..e0ae54e --- /dev/null +++ b/fatrace.spec @@ -0,0 +1,42 @@ +Summary: Reports file access events from all running processes +Name: fatrace +Version: 0.15 +Release: 1 +License: GPL v3 +Group: Development/Debuggers +URL: https://launchpad.net/fatrace +Source0: https://launchpad.net/fatrace/trunk/%{version}/+download/%{name}-%{version}.tar.xz +# Source0-md5: d33ec7c650ab25a835540e802bfab09f +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +fatrace reports file access events from all running processes. + +Its main purpose is to find processes which keep waking up the disk +unnecessarily and thus prevent some power saving. + +%prep +%setup -q + +%build +%{__make} \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags}" + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + PREFIX=%{_prefix} \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING NEWS +%attr(755,root,root) %{_sbindir}/fatrace +%attr(755,root,root) %{_sbindir}/power-usage-report +%{_mandir}/man1/fatrace.1*