File wsdd2.spec of Package wsdd2

#
# spec file for package wsdd2
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           wsdd2
Version:        1.8.6
Release:        0
Summary:        WSD/LLMNR Discovery/Name Service Daemon
License:        GPL-3.0-only
Group:          System/Daemons
URL:            https://github.com/Netgear/wsdd2
Source:         %{name}-%{version}.tar.gz

%description
With Microsoft turning off SMB1 feature completely on Windows 10, any Samba shares on the local network become invisible to Windows 10 computers. That's due to the fact that SMB1 is required for Computer Browser service to function.

Newer Windows systems can use WSD (Web Services for Devices) to discover shares hosted on other Windows computers while Linux systems normally utilize mNDS/DNS-SD for service discovery. Microsoft is moving to support mDNS/DNS-SD, but not yet there.

The primary purpose of this project is to enable WSD on Samba servers so that network shares hosted on a Unix box can appear in Windows File Explorer / Network.

%prep
%setup -q

%build
sed -i -e 's|smbd.service|smb.service|g' wsdd2.service
%make_build

%install
%make_install

%pre
%service_add_pre wsdd2.service

%post
%service_add_post wsdd2.service

%preun
%service_del_preun wsdd2.service

%postun
%service_del_postun wsdd2.service

%files
%license LICENSE
%doc README.md
%{_sbindir}/wsdd2
%attr(0644,-,-) %{_mandir}/man8/wsdd2.8.gz
%{_unitdir}/wsdd2.service

%changelog
openSUSE Build Service is sponsored by