|
|
|
@ -1,22 +1,28 @@
|
|
|
|
|
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
|
|
|
|
|
%bcond_without libnm_glib
|
|
|
|
|
%else
|
|
|
|
|
# Disable the legacy version by default
|
|
|
|
|
%bcond_with libnm_glib
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global real_version 1.8.6
|
|
|
|
|
%global rpm_version 1.8.6
|
|
|
|
|
%global release_version 1
|
|
|
|
|
|
|
|
|
|
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
|
|
|
|
|
|
|
|
|
|
Summary: NetworkManager VPN plugin for OpenVPN
|
|
|
|
|
Name: NetworkManager-openvpn
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 1.8.4
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: %{rpm_version}
|
|
|
|
|
Release: %{release_version}%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Source0: https://download.gnome.org/sources/NetworkManager-openvpn/1.8/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
Source0: https://download.gnome.org/sources/NetworkManager-openvpn/%{real_version_major}/%{name}-%{real_version}.tar.xz
|
|
|
|
|
#Patch1: 0001-example.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
|
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
@ -35,12 +41,15 @@ Requires: openvpn
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
Obsoletes: NetworkManager-openvpn < 1:0.9.8.2-3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude ^libnm-.*\\.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains software for integrating VPN capabilities with
|
|
|
|
|
the OpenVPN server with NetworkManager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n NetworkManager-openvpn-gnome
|
|
|
|
|
Summary: NetworkManager VPN plugin for OpenVPN - GNOME files
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
@ -54,10 +63,10 @@ Obsoletes: NetworkManager-openvpn < 1:0.9.8.2-3
|
|
|
|
|
This package contains software for integrating VPN capabilities with
|
|
|
|
|
the OpenVPN server with NetworkManager (GNOME files).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%autosetup -p1 -n "%{name}-%{real_version}"
|
|
|
|
|
|
|
|
|
|
#%patch1 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
if [ ! -f configure ]; then
|
|
|
|
@ -72,9 +81,11 @@ fi
|
|
|
|
|
--with-dist-version=%{version}-%{release}
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
getent group nm-openvpn >/dev/null || groupadd -r nm-openvpn
|
|
|
|
|
getent passwd nm-openvpn >/dev/null || \
|
|
|
|
@ -82,6 +93,7 @@ getent passwd nm-openvpn >/dev/null || \
|
|
|
|
|
-c "Default user for running openvpn spawned by NetworkManager" nm-openvpn
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
|
|
|
|
|
|
|
|
@ -98,6 +110,7 @@ rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
|
|
|
|
|
%doc AUTHORS README ChangeLog
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n NetworkManager-openvpn-gnome
|
|
|
|
|
%{_libexecdir}/nm-openvpn-auth-dialog
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn-editor.so
|
|
|
|
@ -108,7 +121,11 @@ rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
|
|
|
|
|
%{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 2 2018 Thomas Haller <thaller@redhat.com> - 1:1.8.6-1
|
|
|
|
|
- Update to 1.8.6 release
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|