commit NetworkManager-openconnect for openSUSE:Factory

2024-04-02 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2024-04-02 16:39:54

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1905 (New)


Package is "NetworkManager-openconnect"

Tue Apr  2 16:39:54 2024 rev:35 rq:1163505 version:1.2.10

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2023-12-05 17:02:31.123605005 +0100
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1905/NetworkManager-openconnect.changes
  2024-04-02 16:39:55.611735143 +0200
@@ -1,0 +2,6 @@
+Thu Mar 28 07:55:28 UTC 2024 - Jonathan Kang 
+
+- Add missing supplements(bsc#1220391):
+  + NMA subpackage: Main package and gnome-control-center
+
+---



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.1NjWGU/_old  2024-04-02 16:39:56.103753275 +0200
+++ /var/tmp/diff_new_pack.1NjWGU/_new  2024-04-02 16:39:56.107753422 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package NetworkManager-openconnect
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -61,6 +61,7 @@
 Provides:   %{name}-gnome = %{version}
 Obsoletes:  %{name}-gnome
 Supplements:(%{name} and NetworkManager-applet)
+Supplements:(%{name} and gnome-control-center)
 
 %description -n NetworkManager-applet-openconnect
 NetworkManager-openconnect provides VPN support to NetworkManager for


commit NetworkManager-openconnect for openSUSE:Factory

2023-12-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2023-12-05 17:02:07

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.25432 (New)


Package is "NetworkManager-openconnect"

Tue Dec  5 17:02:07 2023 rev:34 rq:1130775 version:1.2.10

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2023-05-23 14:53:42.890188996 +0200
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.25432/NetworkManager-openconnect.changes
 2023-12-05 17:02:31.123605005 +0100
@@ -1,0 +2,9 @@
+Thu Nov  2 14:34:19 UTC 2023 - Callum Farmer 
+
+- Rename gnome subpackage to NetworkManager-applet-openconnect
+  to more accurately reflect its usage
+- Add missing supplements:
+  - NM and openconnect
+  - NMA subpackage: Main package and NMA
+
+---



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.ndHWzV/_old  2023-12-05 17:02:31.923634494 +0100
+++ /var/tmp/diff_new_pack.ndHWzV/_new  2023-12-05 17:02:31.927634641 +0100
@@ -43,9 +43,9 @@
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(openconnect) >= 3.02
 BuildRequires:  pkgconfig(webkit2gtk-4.1)
-Requires:   %{name}-frontend
 Requires:   NetworkManager >= 1.1.0
 Requires:   openconnect
+Supplements:(NetworkManager and openconnect)
 %sysusers_requires
 ExcludeArch:s390 s390x
 
@@ -53,13 +53,16 @@
 NetworkManager-openconnect provides VPN support to NetworkManager for
 OpenConnect, an implementation of the Cisco AnyConnect VPN system.
 
-%package gnome
+%package -n NetworkManager-applet-openconnect
 Summary:NetworkManager VPN support for OpenConnect
 Group:  Productivity/Networking/System
 Requires:   %{name} = %{version}
 Provides:   %{name}-frontend
+Provides:   %{name}-gnome = %{version}
+Obsoletes:  %{name}-gnome
+Supplements:(%{name} and NetworkManager-applet)
 
-%description gnome
+%description -n NetworkManager-applet-openconnect
 NetworkManager-openconnect provides VPN support to NetworkManager for
 OpenConnect, an implementation of the Cisco AnyConnect VPN system.
 
@@ -96,7 +99,7 @@
 %{_datadir}/dbus-1/system.d/nm-openconnect-service.conf
 %{_sysusersdir}/system-user-nm-openconnect.conf
 
-%files gnome
+%files -n NetworkManager-applet-openconnect
 %{_datadir}/metainfo/network-manager-openconnect.metainfo.xml
 %{_libexecdir}/nm-openconnect-auth-dialog
 %{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect-editor.so


commit NetworkManager-openconnect for openSUSE:Factory

2023-05-23 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2023-05-23 14:53:32

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1533 (New)


Package is "NetworkManager-openconnect"

Tue May 23 14:53:32 2023 rev:33 rq:1088410 version:1.2.10

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2022-10-29 20:15:49.489800870 +0200
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1533/NetworkManager-openconnect.changes
  2023-05-23 14:53:42.890188996 +0200
@@ -1,0 +2,17 @@
+Wed May 17 17:34:50 UTC 2023 - Bjørn Lie 
+
+- Update to version 1.2.10:
+  + Improved cancellation handling.
+  + Support SAML/SSO authentication for some VPN protocols.
+  + Allow useragent override.
+  + Support webkit2gtk-4.1.
+  + Allow choosing certificates/keys from PKCS#11 tokens.
+  + Allow custom interface name.
+  + Allow UDP connectivity to be disabled.
+  + Support multi-certificate authentication for AnyConnect.
+  + Fix hangs with external browsers which spam stdout.
+  + Updated translations.
+- Drop dbus-location.patch: Fixed upstream.
+- Add pkgconfig(webkit2gtk-4.1) BuildRequires: New dependency.
+
+---

Old:

  NetworkManager-openconnect-1.2.8.tar.xz
  dbus-location.patch

New:

  NetworkManager-openconnect-1.2.10.tar.xz



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.KQAKDk/_old  2023-05-23 14:53:44.122196285 +0200
+++ /var/tmp/diff_new_pack.KQAKDk/_new  2023-05-23 14:53:44.130196332 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package NetworkManager-openconnect
 #
-# 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:   NetworkManager-openconnect
-Version:1.2.8
+Version:1.2.10
 Release:0
 Summary:NetworkManager VPN support for OpenConnect
 License:GPL-2.0-or-later AND LGPL-2.1-only
@@ -25,11 +25,11 @@
 URL:http://www.gnome.org/projects/NetworkManager
 Source0:
https://download.gnome.org/sources/NetworkManager-openconnect/1.2/%{name}-%{version}.tar.xz
 Source1:system-user-nm-openconnect.conf
-Patch0: dbus-location.patch
+
 BuildRequires:  autoconf
 BuildRequires:  automake
-BuildRequires:  libtool
 BuildRequires:  intltool
+BuildRequires:  libtool
 BuildRequires:  libxml2-tools
 BuildRequires:  pkgconfig
 BuildRequires:  sysuser-tools
@@ -42,6 +42,7 @@
 BuildRequires:  pkgconfig(libsecret-unstable)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(openconnect) >= 3.02
+BuildRequires:  pkgconfig(webkit2gtk-4.1)
 Requires:   %{name}-frontend
 Requires:   NetworkManager >= 1.1.0
 Requires:   openconnect
@@ -96,7 +97,7 @@
 %{_sysusersdir}/system-user-nm-openconnect.conf
 
 %files gnome
-%{_datadir}/appdata/network-manager-openconnect.metainfo.xml
+%{_datadir}/metainfo/network-manager-openconnect.metainfo.xml
 %{_libexecdir}/nm-openconnect-auth-dialog
 %{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect-editor.so
 %{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-openconnect-editor.so

++ NetworkManager-openconnect-1.2.8.tar.xz -> 
NetworkManager-openconnect-1.2.10.tar.xz ++
 413132 lines of diff (skipped)


commit NetworkManager-openconnect for openSUSE:Factory

2022-10-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2022-10-29 20:15:19

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.2275 (New)


Package is "NetworkManager-openconnect"

Sat Oct 29 20:15:19 2022 rev:32 rq:1032111 version:1.2.8

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2022-03-15 19:03:59.280910202 +0100
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.2275/NetworkManager-openconnect.changes
  2022-10-29 20:15:49.489800870 +0200
@@ -1,0 +2,7 @@
+Thu Oct 27 15:37:33 UTC 2022 - Callum Farmer 
+
+- Add dbus-location.patch: move dbus system.d conf file to /usr
+  (bsc#1204795)
+- Due to patching: add BRs autoconf, automake and libtool
+
+---

New:

  dbus-location.patch



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.5fbqIz/_old  2022-10-29 20:15:49.989803534 +0200
+++ /var/tmp/diff_new_pack.5fbqIz/_new  2022-10-29 20:15:49.993803555 +0200
@@ -25,7 +25,10 @@
 URL:http://www.gnome.org/projects/NetworkManager
 Source0:
https://download.gnome.org/sources/NetworkManager-openconnect/1.2/%{name}-%{version}.tar.xz
 Source1:system-user-nm-openconnect.conf
-
+Patch0: dbus-location.patch
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
 BuildRequires:  intltool
 BuildRequires:  libxml2-tools
 BuildRequires:  pkgconfig
@@ -65,6 +68,7 @@
 %autosetup -p1
 
 %build
+autoreconf -fiv
 %configure \
--disable-static \
--with-gtk4=yes \
@@ -88,7 +92,7 @@
 %{_libexecdir}/nm-openconnect-service
 %{_libexecdir}/nm-openconnect-service-openconnect-helper
 %{_vpnservicedir}/nm-openconnect-service.name
-%{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
+%{_datadir}/dbus-1/system.d/nm-openconnect-service.conf
 %{_sysusersdir}/system-user-nm-openconnect.conf
 
 %files gnome

++ dbus-location.patch ++
>From 6d8cb1911cd04d7cfb569671c394ed0295be47ea Mon Sep 17 00:00:00 2001
From: worldofpeace 
Date: Sun, 15 Sep 2019 23:37:18 -0400
Subject: [PATCH] Move D-Bus conf file to $(datadir)/dbus-1/system.d

Since D-Bus 1.9.18 configuration files installed by third-party should
go in share/dbus-1/system.d. The old location is for sysadmin overrides.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index a38b352..2d5ec79 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,7 @@ plugin_LTLIBRARIES =
 
 CLEANFILES = *.bak *~
 
-dbusservicedir = $(sysconfdir)/dbus-1/system.d
+dbusservicedir = $(datadir)/dbus-1/system.d
 dbusservice_DATA = nm-openconnect-service.conf
 
 nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
-- 
GitLab


commit NetworkManager-openconnect for openSUSE:Factory

2022-03-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2022-03-15 19:03:52

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.25692 (New)


Package is "NetworkManager-openconnect"

Tue Mar 15 19:03:52 2022 rev:31 rq:961668 version:1.2.8

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2021-11-15 00:06:28.711608575 +0100
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.25692/NetworkManager-openconnect.changes
 2022-03-15 19:03:59.280910202 +0100
@@ -1,0 +2,17 @@
+Sat Mar 12 17:09:37 UTC 2022 - Bj??rn Lie 
+
+- Update to version 1.2.8:
+  + Gtk4 version of the editor plugin is now available (for use
+with Control Center of GNOME 42 or later).
+  + Fix SNI and authgroup problems.
+  + Handle IPv6 nameservers.
+  + Allow IP prefixes of 0 for routing rules.
+  + Updated translations.
+- Add pkgconfig(gtk4) and pkgconfig(libnma-gtk4) BuildRequires and
+  pass --with-gtk4=yes to configure, build the gtk4 version.
+- Stop passing --without-libnm-glib to configure, no longer
+  needed, nor recognized.
+- Add optional libxml2-tools BuildRequires, build runs
+  xml-stripblanks preprocessing if available.
+
+---

Old:

  NetworkManager-openconnect-1.2.6.tar.xz

New:

  NetworkManager-openconnect-1.2.8.tar.xz



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.vEx3JK/_old  2022-03-15 19:03:59.716910498 +0100
+++ /var/tmp/diff_new_pack.vEx3JK/_new  2022-03-15 19:03:59.720910500 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package NetworkManager-openconnect
 #
-# Copyright (c) 2021 SUSE LLC
+# 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
@@ -17,7 +17,7 @@
 
 
 Name:   NetworkManager-openconnect
-Version:1.2.6
+Version:1.2.8
 Release:0
 Summary:NetworkManager VPN support for OpenConnect
 License:GPL-2.0-or-later AND LGPL-2.1-only
@@ -25,13 +25,17 @@
 URL:http://www.gnome.org/projects/NetworkManager
 Source0:
https://download.gnome.org/sources/NetworkManager-openconnect/1.2/%{name}-%{version}.tar.xz
 Source1:system-user-nm-openconnect.conf
+
 BuildRequires:  intltool
+BuildRequires:  libxml2-tools
 BuildRequires:  pkgconfig
 BuildRequires:  sysuser-tools
 BuildRequires:  pkgconfig(dbus-glib-1)
 BuildRequires:  pkgconfig(gcr-3) >= 3.4
 BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
+BuildRequires:  pkgconfig(gtk4) >= 4.0
 BuildRequires:  pkgconfig(libnm) >= 1.1.0
+BuildRequires:  pkgconfig(libnma-gtk4) >= 1.8.33
 BuildRequires:  pkgconfig(libsecret-unstable)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(openconnect) >= 3.02
@@ -63,7 +67,7 @@
 %build
 %configure \
 --disable-static \
---without-libnm-glib \
+   --with-gtk4=yes \
 %{nil}
 %make_build
 %sysusers_generate_pre %{SOURCE1} NetworkManager-openconnect 
system-user-nm-openconnect.conf
@@ -90,8 +94,8 @@
 %files gnome
 %{_datadir}/appdata/network-manager-openconnect.metainfo.xml
 %{_libexecdir}/nm-openconnect-auth-dialog
-%{_datadir}/gnome-vpn-properties/
 %{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect-editor.so
+%{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-openconnect-editor.so
 
 %files lang -f %{name}.lang
 

++ NetworkManager-openconnect-1.2.6.tar.xz -> 
NetworkManager-openconnect-1.2.8.tar.xz ++
 347002 lines of diff (skipped)


commit NetworkManager-openconnect for openSUSE:Factory

2021-11-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2021-11-15 00:06:19

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1890 (New)


Package is "NetworkManager-openconnect"

Mon Nov 15 00:06:19 2021 rev:30 rq:930895 version:1.2.6

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2021-07-22 22:43:46.979166762 +0200
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1890/NetworkManager-openconnect.changes
  2021-11-15 00:06:28.711608575 +0100
@@ -1,0 +2,6 @@
+Tue Sep 14 11:00:00 UTC 2021 - Stanislav Brabec 
+
+- Remove obsolete translation-update-upstream support
+  (jsc#SLE-21105).
+
+---



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.lMDdZi/_old  2021-11-15 00:06:29.311609063 +0100
+++ /var/tmp/diff_new_pack.lMDdZi/_new  2021-11-15 00:06:29.315609066 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package NetworkManager-openconnect
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,7 @@
 Source1:system-user-nm-openconnect.conf
 BuildRequires:  intltool
 BuildRequires:  pkgconfig
-BuildRequires:  translation-update-upstream
+BuildRequires:  sysuser-tools
 BuildRequires:  pkgconfig(dbus-glib-1)
 BuildRequires:  pkgconfig(gcr-3) >= 3.4
 BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
@@ -35,7 +35,6 @@
 BuildRequires:  pkgconfig(libsecret-unstable)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(openconnect) >= 3.02
-BuildRequires:  sysuser-tools
 Requires:   %{name}-frontend
 Requires:   NetworkManager >= 1.1.0
 Requires:   openconnect
@@ -60,7 +59,6 @@
 
 %prep
 %autosetup -p1
-translation-update-upstream
 
 %build
 %configure \


commit NetworkManager-openconnect for openSUSE:Factory

2021-07-22 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2021-07-22 22:43:07

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1899 (New)


Package is "NetworkManager-openconnect"

Thu Jul 22 22:43:07 2021 rev:29 rq:907578 version:1.2.6

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2021-06-09 21:51:35.390398570 +0200
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.1899/NetworkManager-openconnect.changes
  2021-07-22 22:43:46.979166762 +0200
@@ -1,0 +2,5 @@
+Sun Jun 13 13:30:56 UTC 2021 - Callum Farmer 
+
+- Add now working CONFIG parameter to sysusers generator
+
+---



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.ad4yPq/_old  2021-07-22 22:43:47.375166246 +0200
+++ /var/tmp/diff_new_pack.ad4yPq/_new  2021-07-22 22:43:47.379166241 +0200
@@ -68,7 +68,7 @@
 --without-libnm-glib \
 %{nil}
 %make_build
-%sysusers_generate_pre %{SOURCE1} NetworkManager-openconnect
+%sysusers_generate_pre %{SOURCE1} NetworkManager-openconnect 
system-user-nm-openconnect.conf
 
 %install
 %make_install


commit NetworkManager-openconnect for openSUSE:Factory

2021-06-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package NetworkManager-openconnect for 
openSUSE:Factory checked in at 2021-06-09 21:51:29

Comparing /work/SRC/openSUSE:Factory/NetworkManager-openconnect (Old)
 and  /work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.32437 (New)


Package is "NetworkManager-openconnect"

Wed Jun  9 21:51:29 2021 rev:28 rq:897531 version:1.2.6

Changes:

--- 
/work/SRC/openSUSE:Factory/NetworkManager-openconnect/NetworkManager-openconnect.changes
2020-05-02 22:14:39.472199242 +0200
+++ 
/work/SRC/openSUSE:Factory/.NetworkManager-openconnect.new.32437/NetworkManager-openconnect.changes
 2021-06-09 21:51:35.390398570 +0200
@@ -1,0 +2,5 @@
+Thu Jun  3 11:07:23 UTC 2021 - Callum Farmer 
+
+- Change to using systemd-sysusers
+
+---

New:

  system-user-nm-openconnect.conf



Other differences:
--
++ NetworkManager-openconnect.spec ++
--- /var/tmp/diff_new_pack.E1CwwQ/_old  2021-06-09 21:51:36.694400894 +0200
+++ /var/tmp/diff_new_pack.E1CwwQ/_new  2021-06-09 21:51:36.698400901 +0200
@@ -24,7 +24,7 @@
 Group:  Productivity/Networking/System
 URL:http://www.gnome.org/projects/NetworkManager
 Source0:
https://download.gnome.org/sources/NetworkManager-openconnect/1.2/%{name}-%{version}.tar.xz
-
+Source1:system-user-nm-openconnect.conf
 BuildRequires:  intltool
 BuildRequires:  pkgconfig
 BuildRequires:  translation-update-upstream
@@ -35,10 +35,11 @@
 BuildRequires:  pkgconfig(libsecret-unstable)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(openconnect) >= 3.02
+BuildRequires:  sysuser-tools
 Requires:   %{name}-frontend
 Requires:   NetworkManager >= 1.1.0
 Requires:   openconnect
-Requires(pre):  pwdutils
+%sysusers_requires
 ExcludeArch:s390 s390x
 
 %description
@@ -67,20 +68,16 @@
 --without-libnm-glib \
 %{nil}
 %make_build
+%sysusers_generate_pre %{SOURCE1} NetworkManager-openconnect
 
 %install
 %make_install
 %find_lang %{name} %{?no_lang_C}
 find %{buildroot} -type f -name "*.la" -delete -print
+mkdir -p %{buildroot}%{_sysusersdir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/
 
-%pre
-getent group  nm-openconnect >/dev/null || groupadd -r nm-openconnect
-getent passwd nm-openconnect >/dev/null || useradd  -r -g nm-openconnect \
--d 
%{_localstatedir}/lib/nm-openconnect \
--s /sbin/nologin \
--c "NetworkManager user 
for OpenConnect" \
-nm-openconnect
-exit 0
+%pre -f NetworkManager-openconnect.pre
 
 %files
 %license COPYING
@@ -90,6 +87,7 @@
 %{_libexecdir}/nm-openconnect-service-openconnect-helper
 %{_vpnservicedir}/nm-openconnect-service.name
 %{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
+%{_sysusersdir}/system-user-nm-openconnect.conf
 
 %files gnome
 %{_datadir}/appdata/network-manager-openconnect.metainfo.xml

++ system-user-nm-openconnect.conf ++
#Type Name   ID GECOS Home directory
   Shell
u nm-openconnect -  "NetworkManager user for OpenConnect" 
/var/lib/nm-openconnect  -