File wsdd2.spec of Package wsdd2
#
# spec file for package wsdd2
#
Name: wsdd2
Version: 1.8.7
Release: 0
Summary: Web Services for Devices (WSD) discovery daemon
License: GPL-3.0+
Group: Productivity/Networking/File-Sharing
URL: https://github.com/Netgear/wsdd2
Source0: https://github.com/Netgear/wsdd2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Recommends: samba
%{?systemd_ordering}
%description
Web Services for Devices or Web Services on Devices (WSD), is a
Microsoft API to simplify programming connections to web service
enabled devices, such as Printers, Scanners and File Shares.
This daemon advertises and responds to probe requests from Windows
clients looking for File Shares. It also implements LLMNR Multicast
name lookup services.
%prep
%autosetup
%build
%set_build_flags
%make_build
sed -i -e s/smbd\.service/smb\.service/g wsdd2.service
%install
%make_install SBININSTALLDIR="%{_sbindir}" MANINSTALLDIR="%{_mandir}"
ln -s service %{buildroot}%{_sbindir}/rcwsdd2
%files
%license LICENSE
%doc README.md
%{_sbindir}/wsdd2
%{_sbindir}/rcwsdd2
%{_mandir}/man8/wsdd2.8*
%{_unitdir}/wsdd2.service
%pre
%service_add_pre wsdd2.service
%post
%service_add_post wsdd2.service
%preun
%service_del_preun wsdd2.service
%postun
%service_del_postun wsdd2.service
%changelog