From 5aa3411a73c14aaf70d668554ec80c067d063af4 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Tue, 7 Nov 2023 10:46:23 +0100 Subject: [PATCH] Use service file from upstream --- sources | 2 -- wsdd.spec | 15 +++++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/sources b/sources index ba41b0d..cc8d549 100644 --- a/sources +++ b/sources @@ -1,5 +1,3 @@ SHA512 (wsdd-0.7.1.tar.gz) = 3d65fd5d5b4bd6ff37409e07301e082ffd2bb5df184cc12730e2cb2d36ebef030c6121b515af9c7eca59562e73414c7da6f7a6cd1b05c3bb27745e402cd7f684 -SHA512 (wsdd.service) = 39e050cb4dfdeeee11eaaea027d8794e10f153a2ce1f6601fc30b6e053d87cec21f36997d65c5d361d5799a3901d92afebb4e689ec613125a4a7be92456d5054 SHA512 (wsdd.xml) = 36def332798589dde0a5c514f64812f888208e18b8ccd163f1e1ab80fd81838c9b6c900f5e4d1a45ace571b1effa16182ad8116c7bdd836a4c8cf36f49bd863e SHA512 (wsdd-http.xml) = 6238be4d37eaeb412ce87f67cd6fa19af3a3dea25c1a23537eff6955eaf7bcce399a13d845107b65a3c4bb0bc89d4bf372570742aa5ed0b2f7ecfd0598c1a23e -SHA512 (wsdd.sysconfig) = 12909698de7cd5972e721184dd7dcecf9bc4a25647e4516a7298666957c9b927e033517065c24ea350a9db72b3dc76fba6d260f16c1a5db4fee52daab04e3581 diff --git a/wsdd.spec b/wsdd.spec index 0f536c0..e593d45 100644 --- a/wsdd.spec +++ b/wsdd.spec @@ -5,10 +5,8 @@ Summary: Web Services Dynamic Discovery host daemon License: MIT URL: https://github.com/christgau/wsdd Source0: https://github.com/christgau/wsdd/archive/v%{version}/wsdd-%{version}.tar.gz -Source1: wsdd.service -Source2: wsdd.xml -Source3: wsdd-http.xml -Source4: wsdd.sysconfig +Source1: wsdd.xml +Source2: wsdd-http.xml # https://github.com/christgau/wsdd/issues/149 Patch: c4a5f346bbb22777a8f66b0d6c6ef899f6d6cc74.patch @@ -26,13 +24,14 @@ like Windows. %prep %autosetup -p1 +sed -i "s/;BindsTo=smb.service/BindsTo=smb.service/" etc/systemd/wsdd.service %install -install -pDm644 %{S:1} %{buildroot}%{_unitdir}/wsdd.service -install -pDm644 %{S:2} %{buildroot}%{_usr}/lib/firewalld/services/wsdd.xml -install -pDm644 %{S:3} %{buildroot}%{_usr}/lib/firewalld/services/wsdd-http.xml -install -pDm644 %{S:4} %{buildroot}%{_sysconfdir}/sysconfig/wsdd +install -pDm644 %{S:1} %{buildroot}%{_usr}/lib/firewalld/services/wsdd.xml +install -pDm644 %{S:2} %{buildroot}%{_usr}/lib/firewalld/services/wsdd-http.xml +install -pDm644 etc/systemd/wsdd.defaults %{buildroot}%{_sysconfdir}/sysconfig/wsdd +install -pDm644 etc/systemd/wsdd.service %{buildroot}%{_unitdir}/wsdd.service install -pDm644 man/wsdd.8 %{buildroot}%{_mandir}/man8/wsdd.8 install -pDm755 src/wsdd.py %{buildroot}%{_bindir}/wsdd