From 70c695f3a7c9a29ca96202cf3451099005a4d848 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 18 2015 11:04:27 +0000 Subject: Add a new pagure subpackage: pagure-ev package for the eventsource server --- diff --git a/files/pagure.spec b/files/pagure.spec index 23469d2..678c7b8 100644 --- a/files/pagure.spec +++ b/files/pagure.spec @@ -71,7 +71,6 @@ Requires: mod_wsgi # No dependency of the app per se, but required to make it working. Requires: gitolite3 - %description Pagure is a light-weight git-centered forge based on pygit2. @@ -98,6 +97,21 @@ Milters (Mail filters) allowing the integration of pagure and emails. This is useful for example to allow commenting on a ticket by email. +%package ev +Summary: EventSource server for pagure +BuildArch: noarch + +Requires: python-redis +Requires: python-trollius +Requires: python-trollius-redis +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +%description ev +Pagure comes with an eventsource server allowing live update of the pages +supporting it. This packages provides it. + + %prep %setup -q @@ -142,15 +156,28 @@ install -m 644 milters/pagure_milter.service \ install -m 644 milters/comment_email_milter.py \ $RPM_BUILD_ROOT/%{_datadir}/pagure/comment_email_milter.py +# Install the eventsource +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure-ev +install -m 644 ev-server/pagure-stream-server.py \ + $RPM_BUILD_ROOT/%{_datadir}/pagure-ev/pagure-stream-server.py +install -m 644 ev-server/pagure_ev.service \ + $RPM_BUILD_ROOT/%{_unitdir}/pagure_ev.service + %post milters %systemd_post pagure_milter.service +%post ev +%systemd_post pagure_milter.service %preun milters %systemd_preun pagure_milter.service +%preun ev +%systemd_preun pagure_milter.service %postun milters %systemd_postun_with_restart pagure_milter.service +%postun ev +%systemd_postun_with_restart pagure_milter.service %files @@ -176,6 +203,12 @@ install -m 644 milters/comment_email_milter.py \ %{_datadir}/pagure/comment_email_milter.py* +%files +%license LICENSE +%{_datadir}/pagure-ev/ +%{_unitdir}/pagure_milter.service + + %changelog * Tue Jun 16 2015 Pierre-Yves Chibon - 0.1.15-1 - Update 0.1.15