]> git.pld-linux.org Git - packages/vmtouch.git/commitdiff
new (version 1.3.0) auto/th/vmtouch-1.3.0-1
authorJan Palus <atler@pld-linux.org>
Mon, 19 Feb 2018 20:29:52 +0000 (21:29 +0100)
committerJan Palus <atler@pld-linux.org>
Mon, 19 Feb 2018 20:29:52 +0000 (21:29 +0100)
vmtouch-destdir.patch [new file with mode: 0644]
vmtouch.spec [new file with mode: 0644]

diff --git a/vmtouch-destdir.patch b/vmtouch-destdir.patch
new file mode 100644 (file)
index 0000000..dffd20d
--- /dev/null
@@ -0,0 +1,29 @@
+From 1640b6b2ab924915fcad010c09717aaaf0b6377c Mon Sep 17 00:00:00 2001
+From: Earnestly <zibeon@googlemail.com>
+Date: Sun, 23 Apr 2017 15:02:00 +0100
+Subject: [PATCH] support staged installs using DESTDIR
+
+---
+ Makefile | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 535138b..db484d7 100644
+--- a/Makefile
++++ b/Makefile
+@@ -16,12 +16,11 @@ vmtouch.8: vmtouch.pod
+       pod2man --section 8 --center "System Manager's Manual" --release " " vmtouch.pod > vmtouch.8
+ install: vmtouch vmtouch.8
+-      mkdir -p $(BINDIR) $(MANDIR)
+-      install -m 0755 vmtouch $(BINDIR)/vmtouch
+-      install -m 0644 vmtouch.8 $(MANDIR)/vmtouch.8
++      install -Dm 0755 vmtouch $(DESTDIR)$(BINDIR)/vmtouch
++      install -Dm 0644 vmtouch.8 $(DESTDIR)$(MANDIR)/vmtouch.8
+ clean:
+       rm -f vmtouch vmtouch.8
+ uninstall:
+-      rm $(BINDIR)/vmtouch $(MANDIR)/vmtouch.8
++      rm $(DESTDIR)$(BINDIR)/vmtouch $(DESTDIR)$(MANDIR)/vmtouch.8
diff --git a/vmtouch.spec b/vmtouch.spec
new file mode 100644 (file)
index 0000000..ed76f34
--- /dev/null
@@ -0,0 +1,42 @@
+Summary:       Portable file system cache diagnostics and control
+Name:          vmtouch
+Version:       1.3.0
+Release:       1
+License:       BSD
+Group:         Applications
+Source0:       https://github.com/hoytech/vmtouch/archive/v%{version}.tar.gz
+# Source0-md5: deaa76af2cadfde293547f1940208b0f
+Patch0:                %{name}-destdir.patch
+URL:           https://hoytech.com/vmtouch/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+vmtouch is a tool for learning about and controlling the file system
+cache of unix and unix-like systems.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       PREFIX="%{_prefix}" \
+       BINDIR="%{_bindir}" \
+       MANDIR="%{_mandir}/man8" \
+       DESTDIR="$RPM_BUILD_ROOT"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README.md TODO TUNING.md
+%attr(755,root,root) %{_bindir}/vmtouch
+%{_mandir}/man8/vmtouch.8*
This page took 0.101913 seconds and 4 git commands to generate.