From b6a78061665f15d4b8908343fd68a8d95b7b209c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 07 2017 12:50:21 +0000 Subject: [PATCH 1/3] Add a customized pagure-logo for dist-git Fixes https://pagure.io/fedora-infrastructure/issue/6207 Signed-off-by: Pierre-Yves Chibon --- diff --git a/MANIFEST.in b/MANIFEST.in index ac7dcd0..d87779f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,3 +3,4 @@ include README.rst include dist_git_auth.py include dist_git_auth_tests.py recursive-include template * +recursive-include static * diff --git a/pagure_logo.svg b/pagure_logo.svg new file mode 100644 index 0000000..b44a71a --- /dev/null +++ b/pagure_logo.svg @@ -0,0 +1,153 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + Dist-Git + + + + + + + + + + + + + + + + + + + + diff --git a/static/pagure-logo.png b/static/pagure-logo.png new file mode 100644 index 0000000..21d020f Binary files /dev/null and b/static/pagure-logo.png differ From fbe4c3df26df377bb520ad5f12c1cfe29bbd32a0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 07 2017 12:55:12 +0000 Subject: [PATCH 2/3] Install the static files in the rpm Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure-dist-git.spec b/pagure-dist-git.spec index 2f9f5dd..9352442 100644 --- a/pagure-dist-git.spec +++ b/pagure-dist-git.spec @@ -98,6 +98,8 @@ 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/ +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/ # The tests require network access, so don't run them. From 512d63d7e055d46b5919809cf61003f6a5976e05 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 08 2017 16:10:24 +0000 Subject: [PATCH 3/3] 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.