commit 48b4a2e3ee0431be6d8b3cd9da40db9e20093cf9 Author: Jan Palus <at...@pld-linux.org> Date: Mon Feb 19 21:29:52 2018 +0100
new (version 1.3.0) vmtouch-destdir.patch | 29 +++++++++++++++++++++++++++++ vmtouch.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) --- diff --git a/vmtouch.spec b/vmtouch.spec new file mode 100644 index 0000000..ed76f34 --- /dev/null +++ b/vmtouch.spec @@ -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* diff --git a/vmtouch-destdir.patch b/vmtouch-destdir.patch new file mode 100644 index 0000000..dffd20d --- /dev/null +++ b/vmtouch-destdir.patch @@ -0,0 +1,29 @@ +From 1640b6b2ab924915fcad010c09717aaaf0b6377c Mon Sep 17 00:00:00 2001 +From: Earnestly <zib...@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 ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/vmtouch.git/commitdiff/48b4a2e3ee0431be6d8b3cd9da40db9e20093cf9 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit