Updated to 1.8.6 release

Remove redundant libnm_glib conditionals
explictly recommend libreswan >= 4.0 because of change in NSS DB location.
AppData file now in %{_datadir}/metainfo/
D-Bus policy file now in %{_datadir}/dbus-1/system.d/
epel9
Douglas Kosovic 4 years ago
parent 53a2f472cc
commit 9222bb3bc1

1
.gitignore vendored

@ -15,3 +15,4 @@
/NetworkManager-l2tp-1.2.16.tar.xz /NetworkManager-l2tp-1.2.16.tar.xz
/NetworkManager-l2tp-1.8.0.tar.xz /NetworkManager-l2tp-1.8.0.tar.xz
/NetworkManager-l2tp-1.8.2.tar.xz /NetworkManager-l2tp-1.8.2.tar.xz
/NetworkManager-l2tp-1.8.6.tar.xz

@ -1,13 +1,7 @@
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%bcond_without libnm_glib
%else
%bcond_with libnm_glib
%endif
Summary: NetworkManager VPN plugin for L2TP and L2TP/IPsec Summary: NetworkManager VPN plugin for L2TP and L2TP/IPsec
Name: NetworkManager-l2tp Name: NetworkManager-l2tp
Version: 1.8.2 Version: 1.8.6
Release: 2%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://github.com/nm-l2tp/NetworkManager-l2tp URL: https://github.com/nm-l2tp/NetworkManager-l2tp
Source: https://github.com/nm-l2tp/NetworkManager-l2tp/releases/download/%{version}/%{name}-%{version}.tar.xz Source: https://github.com/nm-l2tp/NetworkManager-l2tp/releases/download/%{version}/%{name}-%{version}.tar.xz
@ -16,27 +10,19 @@ Source: https://github.com/nm-l2tp/NetworkManager-l2tp/releases/download/%{ve
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0 BuildRequires: NetworkManager-libnm-devel >= 1:1.8.0
BuildRequires: libnma-devel >= 1.2.0 BuildRequires: libnma-devel >= 1.8.0
BuildRequires: ppp-devel BuildRequires: ppp-devel
BuildRequires: libtool intltool gettext BuildRequires: libtool intltool gettext
BuildRequires: libsecret-devel BuildRequires: libsecret-devel
%if %with libnm_glib BuildRequires: openssl-devel >= 1:1.1.0
BuildRequires: NetworkManager-glib-devel >= 1:1.2.0
BuildRequires: libnm-gtk-devel >= 1.2.0
%endif
BuildRequires: openssl-devel
BuildRequires: nss-devel BuildRequires: nss-devel
Requires: dbus Requires: dbus
Requires: NetworkManager >= 1:1.2.0 Requires: NetworkManager >= 1:1.8.0
Requires: ppp = %{ppp_version} Requires: ppp = %{ppp_version}
Requires: xl2tpd Requires: xl2tpd
%if 0%{?fedora} < 24 && 0%{?rhel} < 8 Recommends: (libreswan >= 4.0 or strongswan)
Requires: libreswan
%else
Recommends: (libreswan or strongswan)
%endif
%global __provides_exclude ^libnm-.*\\.so %global __provides_exclude ^libnm-.*\\.so
@ -62,8 +48,8 @@ if [ ! -f configure ]; then
fi fi
%configure \ %configure \
--disable-static \ --disable-static \
%if %with libnm_glib %if 0%{?rhel} == 8
--with-libnm-glib \ --enable-libreswan-dh2 \
%endif %endif
--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \ --with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
--with-dist-version=%{version}-%{release} --with-dist-version=%{version}-%{release}
@ -93,7 +79,7 @@ exit 0
%files -f %{name}.lang %files -f %{name}.lang
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp.so %{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp.so
%{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf %{_datadir}/dbus-1/system.d/nm-l2tp-service.conf
%{_prefix}/lib/NetworkManager/VPN/nm-l2tp-service.name %{_prefix}/lib/NetworkManager/VPN/nm-l2tp-service.name
%{_libexecdir}/nm-l2tp-service %{_libexecdir}/nm-l2tp-service
%{_libdir}/pppd/%{ppp_version}/nm-l2tp-pppd-plugin.so %{_libdir}/pppd/%{ppp_version}/nm-l2tp-pppd-plugin.so
@ -105,14 +91,16 @@ exit 0
%files gnome %files gnome
%{_libexecdir}/nm-l2tp-auth-dialog %{_libexecdir}/nm-l2tp-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp-editor.so %{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp-editor.so
%{_datadir}/appdata/network-manager-l2tp.metainfo.xml %{_datadir}/metainfo/network-manager-l2tp.metainfo.xml
%if %with libnm_glib
%{_sysconfdir}/NetworkManager/VPN/nm-l2tp-service.name
%{_libdir}/NetworkManager/libnm-*-properties.so
%endif
%changelog %changelog
* Tue Nov 03 2020 Douglas Kosovic <doug@uq.edu.au> - 1.8.6-1
- Updated to 1.8.6 release
- Remove redundant libnm_glib conditionals
- explictly recommend libreswan >= 4.0 because of change in NSS DB location.
- AppData file now in %%{_datadir}/metainfo/
- D-Bus policy file now in %%{_datadir}/dbus-1/system.d/
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2 * Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

@ -1 +1 @@
SHA512 (NetworkManager-l2tp-1.8.2.tar.xz) = fc7f4037a4e2d442231f3c72692b7d405f13507625828dc4b975fab3717c7c0daaeaa757ef2ed875f347a87ac4ccaf5a0df1834235d8879f3d1e0d1b450531b8 SHA512 (NetworkManager-l2tp-1.8.6.tar.xz) = 968e8c9140f800935e57e6a58fb4cc8a92385427b8a070a5106c37f5a9d05cfcc1333fe706dfa5ae79dfdcdde89e4becd7866a4e5f535b32e1edafe7171946a7

Loading…
Cancel
Save