Accepting request 1077022 from home:hgraeber:branches:network

- Force the use of python 3.10 for openSUSE Leap
- Update to version 0.7.1
  * GitHub workflow for static analyses added (syntax, format, and type checks are performed).
  * Added EnvironmentFile and according example for systemd-based distros.
  * Make wsdd work (again) on MacOS (#139). Thanks to Eugene Gershnik.
  * Application profile for UFW has been added (#169)
  * Use of implicitly present async I/O loop instead created one for API servers. Fixes regression due
    to changed API in Python 3.10 (see #162)
  * Source code is spiced with type hints now.
  * man page moved to section 8.

OBS-URL: https://build.opensuse.org/request/show/1077022
OBS-URL: https://build.opensuse.org/package/show/network/wsdd?expand=0&rev=25
This commit is contained in:
2023-04-03 15:34:00 +00:00
committed by Git OBS Bridge
parent 55fdfae23a
commit 40894ea470
4 changed files with 28 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b406901e41454a40773be5ba13be067613e1170d0b701f5c07b9b1b7807928bc
size 30155

3
wsdd-0.7.1.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:deb4e647c7dbcaace8a88100db83b9a80fa0f67b9490c04c76db2b142d4457a4
size 35921

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Apr 3 15:09:07 UTC 2023 - Herbert Graeber <herbert@graeber-clan.de>
- Force the use of python 3.10 for openSUSE Leap
-------------------------------------------------------------------
Mon Apr 3 10:14:25 UTC 2023 - Herbert Graeber <herbert@graeber-clan.de>
- Update to version 0.7.1
* GitHub workflow for static analyses added (syntax, format, and type checks are performed).
* Added EnvironmentFile and according example for systemd-based distros.
* Make wsdd work (again) on MacOS (#139). Thanks to Eugene Gershnik.
* Application profile for UFW has been added (#169)
* Use of implicitly present async I/O loop instead created one for API servers. Fixes regression due
to changed API in Python 3.10 (see #162)
* Source code is spiced with type hints now.
* man page moved to section 8.
-------------------------------------------------------------------
Wed Jun 29 20:07:14 UTC 2022 - Herbert Graeber <herbert@graeber-clan.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package wsdd
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: wsdd
Version: 0.7.0
Version: 0.7.1
Release: 0
Summary: A Web Service Discovery host daemon
License: MIT
@@ -34,7 +34,6 @@ Source7: ws-discovery-udp.xml
%endif
Patch1: %{name}-shebang.patch
BuildRequires: firewall-macros
BuildRequires: python3
BuildRequires: sysuser-tools
Requires(post): %fillup_prereq
Supplements: samba
@@ -56,10 +55,13 @@ for devices running Samba, like NAS or file sharing servers on your local networ
%build
%sysusers_generate_pre %{SOURCE6} %{name} %{name}-user.conf
%if 0%{suse_version} <= 1599
sed -i '1s/python3/python3.10/' src/wsdd.py
%endif
%install
install -m 755 -D src/wsdd.py %{buildroot}%{_sbindir}/%{name}
install -m 644 -D man/wsdd.1 %{buildroot}/%{_mandir}/man1/wsdd.1
install -m 644 -D man/wsdd.8 %{buildroot}/%{_mandir}/man8/wsdd.8
install -m 755 -D %{SOURCE1} %{buildroot}%{_libexecdir}/wsdd-init.sh
mkdir -p %{buildroot}%{_unitdir}
sed 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE2} >%{buildroot}%{_unitdir}/wsdd.service
@@ -96,7 +98,7 @@ install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/
%license LICENSE
%doc README.md
%{_sbindir}/%{name}
%{_mandir}/man1/wsdd.1%{?ext_man}
%{_mandir}/man8/wsdd.8%{?ext_man}
%{_sbindir}/rc%{name}
%{_unitdir}/wsdd.service
%{_libexecdir}/wsdd-init.sh