Name: vmtouch
Version: 0.8.0
Release: 1%{?dist}
Summary: Portable file system cache diagnostics and control
License: BSD
URL: http://hoytech.com/vmtouch/
Source0: https://github.com/hoytech/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: /usr/bin/dos2unix
BuildRequires: /usr/bin/mac2unix
# used by watch-vmtouch
Requires: /usr/bin/clear
%description
Vmtouch is a tool for learning about and controlling the file system cache of
Unix and Unix-like systems.
%prep
%setup -q -n%{name}-%{name}-%{version}
sed -i -e 's/install /install -p /' Makefile
chmod -x presentation/ui/default/bodybg.gif
mac2unix presentation/ui/default/print.css
dos2unix presentation/ui/default/iepngfix.htc
%build
cc %{optflags} -o %{name} %{name}.c
%install
make install DESTDIR=$RPM_BUILD_ROOT
install -p -D -m0644 %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
%files
%doc CHANGES README TODO presentation/
%{_sbindir}/%{name}
%{_sbindir}/watch-vmtouch
%{_mandir}/man8/%{name}.8*
%changelog
* Sat May 25 2013 Robin Lee <cheeselee@fedoraproject.org> - 0.8.0-1
- Initial package