From 5a5dcb96d07a00f540c256d53c924cde74362bce Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Mon, 19 Apr 2021 23:33:06 +0200 Subject: [PATCH] Fix installation nmstate-varlink.service Signed-off-by: Fernando Fernandez Mancera --- nmstate.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nmstate.spec b/nmstate.spec index c8e07c7..593b3a9 100644 --- a/nmstate.spec +++ b/nmstate.spec @@ -4,7 +4,7 @@ Name: nmstate Version: 1.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Declarative network manager API License: LGPLv2+ URL: https://github.com/%{srcname}/%{srcname} @@ -15,6 +15,8 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: gnupg2 +BuildRequires: systemd-devel +BuildRequires: systemd-rpm-macros Requires: python3-setuptools Requires: python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -70,6 +72,9 @@ gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0} %install %py3_install +mkdir -p %{buildroot}%{_unitdir} +install -p -m 644 %{buildroot}%{python3_sitelib}/nmstatectl/nmstate-varlink.service \ + %{buildroot}%{_unitdir}/nmstate-varlink.service %files %doc README.md @@ -77,6 +82,7 @@ gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0} %{_mandir}/man8/nmstatectl.8* %{python3_sitelib}/nmstatectl %{_bindir}/nmstatectl +%{_unitdir}/nmstate-varlink.service %files -n python3-%{libname} %license LICENSE @@ -90,6 +96,9 @@ gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0} %{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb* %changelog +* Mon Apr 19 2021 Fernando Fernandez Mancera - 1.0.3-2 +- Fix installation nmstate-varlink.service + * Thu Apr 15 2021 Fernando Fernandez Mancera - 1.0.3-1 - Upgrade to 1.0.3