%if 0%{?fedora} < 28 && 0%{?rhel} < 8 %bcond_without libnm_glib %else # Disable the legacy version by default %bcond_with libnm_glib %endif Name: NetworkManager-strongswan Version: 1.5.0 Release: 3%{?dist} Summary: NetworkManager strongSwan IPSec VPN plug-in License: GPLv2+ URL: https://www.strongswan.org/ Source0: https://download.strongswan.org/NetworkManager/%{name}-%{version}.tar.bz2 BuildRequires: make BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(libnm) >= 1.1.0 BuildRequires: pkgconfig(libnma) >= 1.1.0 BuildRequires: intltool BuildRequires: libtool %if %{with libnm_glib} BuildRequires: pkgconfig(dbus-glib-1) >= 0.30 BuildRequires: pkgconfig(NetworkManager) >= 1.1.0 BuildRequires: pkgconfig(libnm-util) BuildRequires: pkgconfig(libnm-glib) BuildRequires: pkgconfig(libnm-glib-vpn) BuildRequires: pkgconfig(libnm-gtk) %endif Requires: NetworkManager Requires: strongswan-charon-nm >= 5.8.3 %global __provides_exclude ^libnm-.*\\.so %description This package contains software for integrating the strongSwan IPSec VPN with NetworkManager. %package gnome Summary: NetworkManager VPN plugin for strongswan - GNOME files Requires: NetworkManager-strongswan = %{version}-%{release} %description gnome This package contains software for integrating the strongSwan IPSec VPN with the graphical desktop. %prep %setup -q %build %configure \ --disable-static \ %if %{without libnm_glib} --without-libnm-glib \ %endif --with-charon=%{_libexecdir}/strongswan/charon-nm \ --enable-more-warnings=no make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} %find_lang %{name} %files -f %{name}.lang %{_prefix}/lib/NetworkManager/VPN/nm-strongswan-service.name %doc NEWS %files gnome %{_datadir}/gnome-vpn-properties/strongswan %{_prefix}/lib/NetworkManager/nm-strongswan-auth-dialog %{_libdir}/NetworkManager/libnm-vpn-plugin-strongswan.so %exclude %{_libdir}/NetworkManager/libnm-vpn-plugin-strongswan.la %{_datadir}/appdata/NetworkManager-strongswan.appdata.xml %if %{with libnm_glib} %{_libdir}/NetworkManager/libnm-*-properties.so %{_sysconfdir}/NetworkManager/VPN/nm-strongswan-service.name %exclude %{_libdir}/NetworkManager/libnm-strongswan-properties.la %endif %changelog * Mon Jan 25 2021 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Apr 12 2020 Mikhail Zabaluev - 1.5.0-1 - Updated to 1.5.0 * Tue Jan 28 2020 Fedora Release Engineering - 1.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 28 2019 Mikhail Zabaluev - 1.4.5-1 - Update to 1.4.5 * Wed Jul 24 2019 Fedora Release Engineering - 1.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Aug 18 2018 Mikhail Zabaluev - 1.4.4-1 - new version * Thu Jul 12 2018 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 21 2018 Lubomir Rintel - 1.4.3-1 - Update to 1.4.3 * Wed Feb 07 2018 Fedora Release Engineering - 1.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Nov 30 2017 Lubomir Rintel - 1.4.2-1 - Update to 1.4.2 * Wed Aug 02 2017 Fedora Release Engineering - 1.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Sep 27 2016 Lubomir Rintel - 1.4.0-2 - Bring back the D-Bus policy until new charon-nm is released * Wed Sep 21 2016 Lubomir Rintel - 1.4.0-1 - New upstream release that integrates our NetworkManager 1.2 support * Wed Mar 30 2016 Lubomir Rintel - 1.3.1-3.20160330libnm - Update the NetworkManager 1.2 support patchset * Wed Feb 03 2016 Fedora Release Engineering - 1.3.1-3.20151023libnm - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Oct 23 2015 Lubomir Rintel - 1.3.1-2.20151023libnm - Add the NetworkManager 1.2 support patchset * Mon Oct 19 2015 Lubomir Rintel - 1.3.1-1 - Initial packaging