create required nm-openvpn user [release 1.8.18-2mamba;Fri May 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 17:50:35 +01:00
parent dde27016e8
commit 58ca4908b5
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: NetworkManager-openvpn
Version: 1.8.18
Release: 1mamba
Release: 2mamba
Summary: NetworkManager plugin for openvpn VPN clients
Group: Network/Libraries
Vendor: openmamba
@ -9,6 +9,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gnome.org
Source: https://download.gnome.org/sources/NetworkManager-openvpn/%{majver}/NetworkManager-openvpn-%{version}.tar.xz
Source1: openvpn-sysusers.conf
Patch0: %{name}-1.8.10-dbus_policy.patch
Patch1: NetworkManager-openvpn-0.9.6.0-gtk-3.6.patch
Patch2: NetworkManager-openvpn-1.8.10-libnm-1.22.2.patch
@ -61,13 +62,20 @@ autoreconf -f -i
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/nm-openvpn.conf
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
%sysusers_create_package nm-openvpn %{SOURCE1}
:
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysusersdir}/nm-openvpn.conf
%{_datadir}/metainfo/network-manager-openvpn.metainfo.xml
%{_datadir}/dbus-1/system.d/nm-openvpn-service.conf
%{_prefix}/lib/NetworkManager/VPN/nm-openvpn-service.name
@ -84,6 +92,9 @@ autoreconf -f -i
#ChangeLog NEWS README
%changelog
* Fri May 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.18-2mamba
- create required nm-openvpn user
* Sat Mar 12 2022 Automatic Build System <autodist@mambasoft.it> 1.8.18-1mamba
- automatic version update by autodist

1
openvpn-sysusers.conf Normal file
View File

@ -0,0 +1 @@
u nm-openvpn - "NetworkManager OpenVPN"