]>
Commit | Line | Data |
---|---|---|
48b4a2e3 JP |
1 | Summary: Portable file system cache diagnostics and control |
2 | Name: vmtouch | |
3 | Version: 1.3.0 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Applications | |
7 | Source0: https://github.com/hoytech/vmtouch/archive/v%{version}.tar.gz | |
8 | # Source0-md5: deaa76af2cadfde293547f1940208b0f | |
9 | Patch0: %{name}-destdir.patch | |
10 | URL: https://hoytech.com/vmtouch/ | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | vmtouch is a tool for learning about and controlling the file system | |
15 | cache of unix and unix-like systems. | |
16 | ||
17 | %prep | |
18 | %setup -q | |
19 | %patch0 -p1 | |
20 | ||
21 | %build | |
22 | %{__make} \ | |
23 | CC="%{__cc}" \ | |
24 | CFLAGS="%{rpmcflags}" \ | |
25 | LDFLAGS="%{rpmldflags}" | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | %{__make} install \ | |
30 | PREFIX="%{_prefix}" \ | |
31 | BINDIR="%{_bindir}" \ | |
32 | MANDIR="%{_mandir}/man8" \ | |
33 | DESTDIR="$RPM_BUILD_ROOT" | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
40 | %doc CHANGES README.md TODO TUNING.md | |
41 | %attr(755,root,root) %{_bindir}/vmtouch | |
42 | %{_mandir}/man8/vmtouch.8* |