File NetworkManager-openvpn.spec of Package NetworkManager-openvpn
#
# spec file for package NetworkManager-openvpn
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: NetworkManager-openvpn
Version: 1.8.10
Release: 0
Summary: NetworkManager VPN support for OpenVPN
License: GPL-2.0-or-later
Group: Productivity/Networking/System
URL: https://www.gnome.org/projects/NetworkManager
Source0: https://download.gnome.org/sources/NetworkManager-openvpn/1.8/%{name}-%{version}.tar.xz
# Merge request #4
Patch1: compress.patch
# Merge request #15
Patch2: tls-version-min-max-option.patch
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm) >= 1.2.0
BuildRequires: pkgconfig(libnma) >= 1.2.0
BuildRequires: pkgconfig(libsecret-1) >= 0.18
Requires: NetworkManager >= 1.2.0
Requires: openvpn
Recommends: %{name}-frontend
Recommends: %{name}-lang
ExcludeArch: s390
%description
NetworkManager-openvpn provides VPN support to NetworkManager for
OpenVPN.
%package gnome
Summary: NetworkManager VPN support for OpenVPN
Group: Productivity/Networking/System
Requires: %{name} = %{version}-%{release}
Provides: %{name}-frontend
%description gnome
NetworkManager-openvpn provides VPN support to NetworkManager for
OpenVPN.
%lang_package
%prep
%autosetup -p1
translation-update-upstream
%build
%configure\
--disable-static \
--without-libnm-glib \
%{nil}
%make_build
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%pre
getent group nm-openvpn >/dev/null || groupadd -r nm-openvpn
getent passwd nm-openvpn >/dev/null || useradd -r -g nm-openvpn \
-d %{_localstatedir}/lib/openvpn \
-s /sbin/nologin \
-c "NetworkManager user for OpenVPN" \
nm-openvpn
exit 0
%files
%license COPYING
%doc README
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn.so
%{_libexecdir}/nm-openvpn-service
%{_libexecdir}/nm-openvpn-service-openvpn-helper
%dir %{_libexecdir}/NetworkManager
%dir %{_libexecdir}/NetworkManager/VPN
%{_libexecdir}/NetworkManager/VPN/nm-openvpn-service.name
%config %{_sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf
%files gnome
%{_datadir}/appdata/network-manager-openvpn.metainfo.xml
%{_libexecdir}/nm-openvpn-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn-editor.so
%files lang -f %{name}.lang
%changelog