Updated to 1.2.12 release

Use upstream provided xz tarball instead of GitHub generated gz tarball.
Delete any transient nm-l2tp-ipsec-*.secrets files from versions <= 1.2.10
%ghost transient ipsec.nm-l2tp.secrets files.
Merged EPEL 7 spec file with Fedora spec file.
epel9
Douglas Kosovic 6 years ago
parent 4bc3c6ce6c
commit 2a3b5544b4

1
.gitignore vendored

@ -10,3 +10,4 @@
/NetworkManager-l2tp-1.2.6.tar.gz /NetworkManager-l2tp-1.2.6.tar.gz
/NetworkManager-l2tp-1.2.8.tar.gz /NetworkManager-l2tp-1.2.8.tar.gz
/NetworkManager-l2tp-1.2.10.tar.gz /NetworkManager-l2tp-1.2.10.tar.gz
/NetworkManager-l2tp-1.2.12.tar.xz

@ -1,29 +1,26 @@
%if 0%{?fedora} < 28 && 0%{?rhel} < 8 %if 0%{?fedora} < 28 && 0%{?rhel} < 8
%bcond_without libnm_glib %bcond_without libnm_glib
%else %else
# Disable the legacy version by default
%bcond_with libnm_glib %bcond_with libnm_glib
%endif %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.2.10 Version: 1.2.12
Release: 4%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://github.com/nm-l2tp/network-manager-l2tp URL: https://github.com/nm-l2tp/NetworkManager-l2tp
Source: https://github.com/nm-l2tp/network-manager-l2tp/archive/%{version}/%{name}-%{version}.tar.gz Source: https://github.com/nm-l2tp/NetworkManager-l2tp/releases/download/%{version}/%{name}-%{version}.tar.xz
%global ppp_version %(sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad) %global ppp_version %(sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad)
BuildRequires: glib2-devel
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0 BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
BuildRequires: glib2-devel BuildRequires: libnma-devel >= 1.2.0
BuildRequires: ppp-devel BuildRequires: ppp-devel
BuildRequires: libtool intltool gettext BuildRequires: libtool intltool gettext
BuildRequires: libsecret-devel BuildRequires: libsecret-devel
BuildRequires: libnma-devel >= 1.2.0
BuildRequires: libsecret-devel
%if %with libnm_glib %if %with libnm_glib
BuildRequires: NetworkManager-glib-devel >= 1:1.2.0 BuildRequires: NetworkManager-glib-devel >= 1:1.2.0
BuildRequires: libnm-gtk-devel >= 1.2.0 BuildRequires: libnm-gtk-devel >= 1.2.0
@ -33,11 +30,14 @@ Requires: dbus
Requires: NetworkManager >= 1:1.2.0 Requires: NetworkManager >= 1:1.2.0
Requires: ppp = %{ppp_version} Requires: ppp = %{ppp_version}
Requires: xl2tpd Requires: xl2tpd
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
Requires: libreswan
%else
Recommends: libreswan Recommends: libreswan
%endif
%global __provides_exclude ^libnm-.*\\.so %global __provides_exclude ^libnm-.*\\.so
%description %description
This package contains software for integrating L2TP and L2TP over This package contains software for integrating L2TP and L2TP over
IPsec VPN support with the NetworkManager. IPsec VPN support with the NetworkManager.
@ -51,15 +51,17 @@ This package contains software for integrating L2TP and L2TP over
IPsec VPN support with the NetworkManager (GNOME files). IPsec VPN support with the NetworkManager (GNOME files).
%prep %prep
%setup -q -n network-manager-l2tp-%{version} %setup -q
%build %build
autoreconf -fi if [ ! -f configure ]; then
intltoolize autoreconf -fi
intltoolize
fi
%configure \ %configure \
--disable-static \ --disable-static \
%if %without libnm_glib %if %with libnm_glib
--without-libnm-glib \ --with-libnm-glib \
%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}
@ -74,14 +76,27 @@ make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
mkdir -p %{buildroot}%{_sysconfdir}/ipsec.d
mkdir -p %{buildroot}%{_sysconfdir}/strongswan/ipsec.d
touch %{buildroot}%{_sysconfdir}/ipsec.d/ipsec.nm-l2tp.secrets
touch %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/ipsec.nm-l2tp.secrets
%find_lang %{name} %find_lang %{name}
%pre
# remove any NetworkManager-l2tp <= 1.2.10 transient ipsec-*.secrets files.
rm -f %{_sysconfdir}/ipsec.d/nm-l2tp-ipsec-*.secrets
rm -f %{_sysconfdir}/strongswan/ipsec.d/nm-l2tp-ipsec-*.secrets
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 %{_sysconfdir}/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
%ghost %attr(0600 - -) %{_sysconfdir}/ipsec.d/ipsec.nm-l2tp.secrets
%ghost %attr(0600 - -) %{_sysconfdir}/strongswan/ipsec.d/ipsec.nm-l2tp.secrets
%doc AUTHORS README.md NEWS %doc AUTHORS README.md NEWS
%license COPYING %license COPYING
@ -96,6 +111,13 @@ rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
%endif %endif
%changelog %changelog
* Sat Mar 16 2019 Douglas Kosovic <doug@uq.edu.au> - 1.2.12-1
- Updated to 1.2.12 release
- Use upstream provided xz tarball instead of GitHub generated gz tarball.
- Delete any transient nm-l2tp-ipsec-*.secrets files from versions <= 1.2.10
- %%ghost transient ipsec.nm-l2tp.secrets files.
- Merged EPEL 7 spec file with Fedora spec file.
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.10-4 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

@ -1 +1 @@
SHA512 (NetworkManager-l2tp-1.2.10.tar.gz) = 185a52d9d4fe67a73678c01c29490a1f6ac015967267ca73dc889397ec386812e76026095cbe2cd7f568aa545d730e7413aa0a59657a7a74770ebd3018518a1c SHA512 (NetworkManager-l2tp-1.2.12.tar.xz) = b3e6ab72e81df568b77afabd91cef40b35d2b9227087495b0b44f966ef937b6c78ccc94b019102c13fc76ba443f850fffe1ad7445f5967a1737532036e632422

Loading…
Cancel
Save