Initial Package Release

This commit is contained in:
Sam P 2020-02-27 16:32:43 -06:00 committed by sam.patwin
parent 27e3513de8
commit 4ff745a372
3 changed files with 74 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/wsdd-0.5.tar.gz
/wsdd.service
/wsdd.xml

3
sources Normal file
View File

@ -0,0 +1,3 @@
SHA512 (wsdd-0.5.tar.gz) = fe300de7d900f34b43c81358506b2e62ecbf980e6c65b377f87e3a9618afeef9dff2ed041b660b58bce0944d221ca26b2fc1c1ff7e0155edef615ed6d5ec5cd5
SHA512 (wsdd.service) = 48870632f10b706955306ce9a63f999c4689ec6b78d2519b469b42748041391b6f7ecd184852478e1be5cfdcb399cdc11ff792eb4bf26229f08c99ea63b4bca8
SHA512 (wsdd.xml) = 7717ae6458556a4de252cbce0889fc8e1c85f780c0b0a42c528dbf695bc43776720291b0cd1a4965a4660699689c79b4255aef704a27b16683849521d418204f

68
wsdd.spec Normal file
View File

@ -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 <survient@fedoraproject.org> - 0.5-2
- Removed unnecessary build dependency
* Thu Feb 20 2020 Sam P <survient@fedoraproject.org> - 0.5-1
- Updated to latest upstream release
* Wed Dec 11 2019 Sam P <survient@fedoraproject.org> - 0.4-2
- Added systemd unit scriptlet sections
* Tue Nov 19 2019 Sam P <survient@fedoraproject.org> - 0.4-1
- Initial package