|
|
|
@ -1,7 +1,13 @@
|
|
|
|
|
%if 0%{?fedora} < 36 && 0%{?rhel} < 10
|
|
|
|
|
%bcond_with gtk4
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without gtk4
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: NetworkManager VPN plugin for L2TP and L2TP/IPsec
|
|
|
|
|
Name: NetworkManager-l2tp
|
|
|
|
|
Version: 1.20.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 1.20.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://github.com/nm-l2tp/NetworkManager-l2tp
|
|
|
|
|
Source: https://github.com/nm-l2tp/NetworkManager-l2tp/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
@ -12,23 +18,22 @@ BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
|
BuildRequires: NetworkManager-libnm-devel >= 1:1.8.0
|
|
|
|
|
BuildRequires: NetworkManager-libnm-devel >= 1:1.20.0
|
|
|
|
|
BuildRequires: libnma-devel >= 1.8.0
|
|
|
|
|
BuildRequires: ppp-devel
|
|
|
|
|
BuildRequires: libtool gettext
|
|
|
|
|
BuildRequires: libsecret-devel
|
|
|
|
|
BuildRequires: openssl-devel >= 1:1.1.0
|
|
|
|
|
BuildRequires: nss-devel
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
BuildRequires: libnma-gtk4-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: dbus
|
|
|
|
|
Requires: NetworkManager >= 1:1.8.0
|
|
|
|
|
Requires: dbus-common
|
|
|
|
|
Requires: NetworkManager >= 1:1.20.0
|
|
|
|
|
Requires: ppp = %{ppp_version}
|
|
|
|
|
Requires: xl2tpd
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
Recommends: (libreswan or strongswan)
|
|
|
|
|
%else
|
|
|
|
|
Recommends: (libreswan >= 4.0 or strongswan)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude ^libnm-.*\\.so
|
|
|
|
|
|
|
|
|
@ -53,6 +58,9 @@ if [ ! -f configure ]; then
|
|
|
|
|
fi
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
--with-gtk4 \
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
--enable-libreswan-dh2 \
|
|
|
|
|
--with-nm-ipsec-nss-dir=%{_sysconfdir}/ipsec.d \
|
|
|
|
@ -99,9 +107,16 @@ exit 0
|
|
|
|
|
%files gnome
|
|
|
|
|
%{_libexecdir}/nm-l2tp-auth-dialog
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp-editor.so
|
|
|
|
|
%{_datadir}/metainfo/network-manager-l2tp.metainfo.xml
|
|
|
|
|
%{_metainfodir}/network-manager-l2tp.metainfo.xml
|
|
|
|
|
%if %with gtk4
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-l2tp-editor.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 18 2022 Douglas Kosovic <doug@uq.edu.au> - 1.20.2-1
|
|
|
|
|
- Updated to 1.20.2 release
|
|
|
|
|
- Conditional gtk4 support added
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|