From 512d63d7e055d46b5919809cf61003f6a5976e05 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 08 2017 16:10:24 +0000 Subject: Preserve the timestamp when installing files --- diff --git a/pagure-dist-git.spec b/pagure-dist-git.spec index 9352442..f9b1ebe 100644 --- a/pagure-dist-git.spec +++ b/pagure-dist-git.spec @@ -97,9 +97,9 @@ dist-git which has a different access model than regular projects on pagure # Install the custom template/theme mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ -install -m 644 template/repo_info.html $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ +install -p -m 644 template/repo_info.html $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/static/ -install -m 644 static/pagure-logo.png $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/static/ +install -p -m 644 static/pagure-logo.png $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/static/ # The tests require network access, so don't run them.