From 8b1ff28ac0167b380a6a5c180b0480aa0ddc463c Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Apr 05 2019 16:55:39 +0000 Subject: Add the Systemd service template file. --- diff --git a/fedora-messaging.spec b/fedora-messaging.spec index 93013ba..02d4ce5 100644 --- a/fedora-messaging.spec +++ b/fedora-messaging.spec @@ -7,7 +7,7 @@ Tools and APIs to make working with AMQP in Fedora easier. Name: %{pkgname} Version: 1.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Set of tools for using Fedora's messaging infrastructure License: GPLv2+ @@ -30,6 +30,8 @@ BuildRequires: python3-sphinx BuildRequires: python3-twisted Requires: python3-%{pkgname} = %{version}-%{release} +BuildRequires: systemd-rpm-macros + %description %{desc} %package -n python3-%{pkgname} @@ -64,6 +66,7 @@ rm -rf docs/_build/*/.buildinfo %py3_install install -D -m 644 config.toml.example $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/config.toml install -D -m 644 docs/_build/man/fedora-messaging.1 $RPM_BUILD_ROOT%{_mandir}/man1/fedora-messaging.1 +install -D -m 644 fm-consumer@.service $RPM_BUILD_ROOT%{_unitdir}/fm-consumer@.service %check @@ -77,6 +80,7 @@ pytest-3 -vv %config(noreplace) %{_sysconfdir}/fedora-messaging/config.toml %{_mandir}/man1/%{name}.* %{_bindir}/%{name} +%{_unitdir}/fm-consumer@.service %files -n python3-%{pkgname} %license LICENSE @@ -89,6 +93,9 @@ pytest-3 -vv %changelog +* Thu Mar 07 2019 Aurelien Bompard - 1.5.0-2 +- Add the Systemd service template file. + * Thu Jan 24 2019 Jeremy Cline - 1.3.0-1 - Update to v1.3.0