@ -1,40 +1,49 @@
%global ppp_version %(rpm -q ppp-devel --queryformat '%{VERSION}')
%global ppp_version %(rpm -q ppp-devel --queryformat '%{VERSION}')
Summary: NetworkManager VPN plugin for l2tp
Summary: NetworkManager VPN plugin for L2TP and L2TP/IPSec
Name: NetworkManager-l2tp
Name: NetworkManager-l2tp
Version: 1.2.0
Version: 1.2.2
Release: 1%{?dist}
Release: 1%{?dist}
License: GPLv2+
License: GPLv2+
URL: https://launchpad.net/~seriy-pr/+archive/network-manager-l2tp
URL: https://github.com/nm-l2tp/network-manager-l2tp
Source: https://github.com/nm-l2tp/network-manager-l2tp/archive/1.2.0.tar.gz#/%{name}-%{version}.tar.gz
Source: https://github.com/nm-l2tp/network-manager-l2tp/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: libtool
BuildRequires: gtk3-devel
BuildRequires: gtk3-devel >= 3.0
BuildRequires: NetworkManager-devel
BuildRequires: NetworkManager-glib-devel >= 1.2
BuildRequires: NetworkManager-glib-devel >= 1:1.2.0
BuildRequires: NetworkManager-libnm-devel >= 1.2
BuildRequires: NetworkManager-libnm-devel >= 1:1.2.0
BuildRequires: libnm-gtk-devel >= 1.0
BuildRequires: glib2-devel
BuildRequires: libnma-devel >= 1.2
BuildRequires: libsecret-devel
BuildRequires: intltool gettext
BuildRequires: ppp-devel
BuildRequires: ppp-devel
BuildRequires: autoconf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: automake
BuildRequires: libtool intltool gettext
BuildRequires: libsecret-devel
BuildRequires: libnm-gtk-devel >= 0.9
BuildRequires: libnma-devel >= 1.2.0
Requires: nm-connection-editor
Requires: dbus
Requires: dbus
Requires: NetworkManager
Requires: NetworkManager >= 1:1.2.0
Requires: ppp = %{ppp_version}
Requires: ppp = %{ppp_version}
Requires: shared-mime-info >= 0.16-3
Requires: pptp
Requires: xl2tpd
Requires: xl2tpd
Requires: libreswan
Requires: libreswan
%filter_provides_in %{_libdir}/pppd/%{ppp_version}/nm-l2tp-pppd-plugin.so
%global _privatelibs libnm-l2tp-properties[.]so.*
%filter_provides_in %{_libdir}/NetworkManager/lib*.so
%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$
%description
%description
This package contains software for integrating L2TP VPN support with
This package contains software for integrating L2TP and L2TP over
the NetworkManager and the GNOME desktop.
IPSec VPN support with the NetworkManager.
%package gnome
Summary: NetworkManager VPN plugin for L2TP and L2TP/IPSec - GNOME files
Requires: NetworkManager-l2tp = %{version}-%{release}
Requires: nm-connection-editor
Obsoletes: NetworkManager-l2tp < 1.2.2
%description gnome
This package contains software for integrating L2TP and L2TP over
IPSec VPN support with the NetworkManager (GNOME files).
%prep
%prep
%setup -q -n network-manager-l2tp-%{version}
%setup -q -n network-manager-l2tp-%{version}
@ -54,25 +63,34 @@ make %{?_smp_mflags}
make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"
make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/nm-l2tp-pppd-plugin .la
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/* .la
%find_lang %{name}
%find_lang %{name}
%files -f %{name}.lang
%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf
%{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf
# Content must not be changed
%config %{_sysconfdir}/NetworkManager/VPN/nm-l2tp-service.name
%{_prefix}/lib/NetworkManager/VPN/nm-l2tp-service.name
%{_prefix}/lib/NetworkManager/VPN/nm-l2tp-service.name
%{_libdir}/NetworkManager/lib*.so
%{_libdir}/pppd/2.*/nm-l2tp-pppd-plugin.so
%{_libexecdir}/nm-l2tp-auth-dialog
%{_libexecdir}/nm-l2tp-service
%{_libexecdir}/nm-l2tp-service
%{_datadir}/gnome-vpn-properties/l2tp
%{_libexecdir}/nm-l2tp-auth-dialog
%{_datadir}/appdata/network-manager-l2tp.appdata.xml
%{_libdir}/pppd/%{ppp_version}/nm-l2tp-pppd-plugin.so
%doc AUTHORS NEWS README.md
%{_datadir}/appdata/network-manager-l2tp.metainfo.xml
%doc AUTHORS README.md
%license COPYING
%license COPYING
%files gnome
%{_libdir}/NetworkManager/lib*.so*
%dir %{_datadir}/gnome-vpn-properties/l2tp
%{_datadir}/gnome-vpn-properties/l2tp/nm-l2tp-dialog.ui
%{_sysconfdir}/NetworkManager/VPN/nm-l2tp-service.name
%{_datadir}/appdata/network-manager-l2tp.metainfo.xml
%changelog
%changelog
* Mon May 16 2016 Douglas Kosovic <doug@uq.edu.au> - 1.2.2-1
- Updated to 1.2.2 release
- Added NetworkManager-l2tp-gnome RPM for GNOME files
- Updated BuildRequires, Requires, URL and Source
- Replaced filter_provides macro with newer macros
* Sat Apr 23 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.2.0-1
* Sat Apr 23 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.2.0-1
- Update to 1.2.0 release
- Update to 1.2.0 release