From 518b96a64ffc3b197222e5cb3b4a813af084485d Mon Sep 17 00:00:00 2001 From: Matt Jia Date: Aug 14 2017 04:31:47 +0000 Subject: install systemd files in greenwave.spec --- diff --git a/greenwave.spec b/greenwave.spec index 37aa56a..f0a6003 100644 --- a/greenwave.spec +++ b/greenwave.spec @@ -23,6 +23,8 @@ BuildRequires: python-flask BuildRequires: pytest BuildRequires: python-requests %endif +%{?systemd_requires} +BuildRequires: systemd BuildRequires: PyYAML BuildArch: noarch %if 0%{?fedora} || 0%{?rhel} > 7 @@ -49,6 +51,11 @@ make -C docs html text %install %py2_install +install -d %{buildroot}%{_unitdir} +install -m0644 \ + systemd/%{name}.service \ + systemd/%{name}.socket \ + %{buildroot}%{_unitdir} %check export PYTHONPATH=%{buildroot}/%{python2_sitelib}