From d953db3242e0af77eae706a4f3d5a956634bf335 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Mon, 19 Jun 2017 21:26:57 +0200 Subject: [PATCH] specfile: Preserve timestamps with install --- ksh.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ksh.spec b/ksh.spec index a64e19b..1cb42d1 100644 --- a/ksh.spec +++ b/ksh.spec @@ -232,13 +232,13 @@ export CC=gcc %install mkdir -p %{buildroot}{/bin,%{_bindir},%{_mandir}/man1} -install -c -m 755 arch/*/bin/ksh %{buildroot}/bin/ksh -install -c -m 755 arch/*/bin/shcomp %{buildroot}%{_bindir}/shcomp -install -c -m 644 arch/*/man/man1/sh.1 %{buildroot}%{_mandir}/man1/ksh.1 +install -p -m 755 arch/*/bin/ksh %{buildroot}/bin/ksh +install -p -m 755 arch/*/bin/shcomp %{buildroot}%{_bindir}/shcomp +install -p -m 644 arch/*/man/man1/sh.1 %{buildroot}%{_mandir}/man1/ksh.1 mkdir -p %{buildroot}%{_sysconfdir}/skel -install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/skel/.kshrc -install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kshrc -install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/binfmt.d/kshcomp.conf +install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/skel/.kshrc +install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kshrc +install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/binfmt.d/kshcomp.conf %check [ -f ./skipcheck -o -f ./../skipcheck ] && exit 0 ||: