diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f1130d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/wsdd-0.5.tar.gz +/wsdd.service +/wsdd.xml diff --git a/sources b/sources new file mode 100644 index 0000000..8dfcdd0 --- /dev/null +++ b/sources @@ -0,0 +1,3 @@ +SHA512 (wsdd-0.5.tar.gz) = fe300de7d900f34b43c81358506b2e62ecbf980e6c65b377f87e3a9618afeef9dff2ed041b660b58bce0944d221ca26b2fc1c1ff7e0155edef615ed6d5ec5cd5 +SHA512 (wsdd.service) = 48870632f10b706955306ce9a63f999c4689ec6b78d2519b469b42748041391b6f7ecd184852478e1be5cfdcb399cdc11ff792eb4bf26229f08c99ea63b4bca8 +SHA512 (wsdd.xml) = 7717ae6458556a4de252cbce0889fc8e1c85f780c0b0a42c528dbf695bc43776720291b0cd1a4965a4660699689c79b4255aef704a27b16683849521d418204f diff --git a/wsdd.spec b/wsdd.spec new file mode 100644 index 0000000..3271e17 --- /dev/null +++ b/wsdd.spec @@ -0,0 +1,68 @@ +Name: wsdd +Version: 0.5 +Release: 2%{?dist} +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 +BuildArch: noarch +BuildRequires: systemd +Requires(pre): shadow-utils + + +%description +wsdd implements a Web Service Discovery host daemon. This enables (Samba) +hosts, like your local NAS device, to be found by Web Service Discovery Clients +like Windows. + + +%prep +%autosetup + + +%install +install -pDm644 %{S:1} %{buildroot}%{_unitdir}/wsdd.service +install -pDm644 %{S:2} %{buildroot}%{_usr}/lib/firewalld/services/wsdd.xml +install -pDm644 man/wsdd.1 %{buildroot}%{_mandir}/man1/wsdd.1 +install -pDm755 src/wsdd.py %{buildroot}%{_bindir}/wsdd + + +%pre +getent group wsdd >/dev/null || groupadd -r wsdd +getent passwd wsdd >/dev/null || \ + useradd -r -g wsdd -d / -s /sbin/nologin \ + -c "%{summary}" wsdd +exit 0 + +%post +%systemd_post wsdd.service + +%preun +%systemd_preun wsdd.service + +%postun +%systemd_postun_with_restart wsdd.service + +%files +%{_unitdir}/wsdd.service +%{_usr}/lib/firewalld/services/wsdd.xml +%{_bindir}/wsdd +%{_mandir}/man1/wsdd.1* +%license LICENCE +%doc AUTHORS README.md + + +%changelog +* Fri Feb 21 2020 Sam P - 0.5-2 +- Removed unnecessary build dependency + +* Thu Feb 20 2020 Sam P - 0.5-1 +- Updated to latest upstream release + +* Wed Dec 11 2019 Sam P - 0.4-2 +- Added systemd unit scriptlet sections + +* Tue Nov 19 2019 Sam P - 0.4-1 +- Initial package