2010-12-06 14:44:14 +01:00
|
|
|
#
|
2011-09-29 10:10:27 +02:00
|
|
|
# spec file for package NetworkManager-strongswan
|
2010-12-06 14:44:14 +01:00
|
|
|
#
|
2014-04-02 11:36:29 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-06 14:44:14 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: NetworkManager-strongswan
|
2011-09-29 10:10:27 +02:00
|
|
|
Version: 1.3.0
|
2013-03-13 23:45:37 +01:00
|
|
|
Release: 0
|
2010-12-06 14:44:14 +01:00
|
|
|
Summary: NetworkManager VPN support for strongSwan
|
2013-03-13 23:45:37 +01:00
|
|
|
License: GPL-2.0+
|
2010-12-06 14:44:14 +01:00
|
|
|
Group: Productivity/Networking/System
|
2013-03-13 23:45:37 +01:00
|
|
|
Url: http://www.strongswan.org/
|
2011-09-29 10:10:27 +02:00
|
|
|
Source0: http://download.strongswan.org/NetworkManager/%{name}-%{version}.tar.bz2
|
2010-12-06 14:44:14 +01:00
|
|
|
Source1: README
|
2010-12-06 16:16:38 +01:00
|
|
|
# PATCH-FIX-UPSTREAM nm-strongswan-service-conf.patch binli@opensuse.org -- Dismiss the rpmlint warning for 'send_interface'
|
2010-12-06 14:44:14 +01:00
|
|
|
Patch0: nm-strongswan-service-conf.patch
|
|
|
|
BuildRequires: intltool
|
2011-09-29 10:25:39 +02:00
|
|
|
BuildRequires: pkgconfig(NetworkManager) >= 0.9.0
|
|
|
|
BuildRequires: pkgconfig(dbus-glib-1) >= 0.30
|
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.6
|
|
|
|
BuildRequires: pkgconfig(libgnomeui-2.0)
|
|
|
|
BuildRequires: pkgconfig(libnm-glib)
|
|
|
|
BuildRequires: pkgconfig(libnm-glib-vpn)
|
|
|
|
BuildRequires: pkgconfig(libnm-util)
|
2010-12-06 14:44:14 +01:00
|
|
|
Requires: %{name}-frontend
|
2011-09-29 10:10:27 +02:00
|
|
|
Requires: NetworkManager >= 0.9.0
|
2013-08-13 21:10:40 +02:00
|
|
|
%if 0%{?suse_version} <= 1220
|
2010-12-06 14:44:14 +01:00
|
|
|
Requires: strongswan >= 4.1.13
|
2013-08-13 21:10:40 +02:00
|
|
|
%else
|
|
|
|
Requires: strongswan-nm >= 5.0.1
|
|
|
|
%endif
|
2010-12-06 14:44:14 +01:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
|
|
|
|
%description
|
|
|
|
NetworkManager-strongswan provides VPN support to NetworkManager for
|
|
|
|
strongSwan.
|
|
|
|
|
|
|
|
%package gnome
|
|
|
|
Summary: NetworkManager VPN support for strongSwan
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: NetworkManager-gnome >= 0.5.1
|
|
|
|
Provides: %{name}-frontend
|
|
|
|
|
|
|
|
%description gnome
|
|
|
|
NetworkManager-strongswan provides VPN support to NetworkManager for
|
|
|
|
strongSwan.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
2010-12-06 16:16:38 +01:00
|
|
|
cp %{SOURCE1} README.SUSE
|
2010-12-06 14:44:14 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure\
|
2014-04-02 11:36:29 +02:00
|
|
|
--disable-static \
|
|
|
|
--disable-more-warnings
|
2010-12-06 14:44:14 +01:00
|
|
|
%__make %{?_smp_flags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2011-09-29 10:25:39 +02:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-12-06 14:44:14 +01:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -delete -print
|
|
|
|
|
2013-08-13 21:10:40 +02:00
|
|
|
# bnc#824079
|
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
sed -i "s/charon/charon-nm/" %{buildroot}%{_sysconfdir}/NetworkManager/VPN/nm-strongswan-service.name
|
|
|
|
%endif
|
|
|
|
|
2010-12-06 14:44:14 +01:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-12-06 16:16:38 +01:00
|
|
|
%doc README.SUSE
|
2010-12-06 14:44:14 +01:00
|
|
|
%dir %{_sysconfdir}/NetworkManager/VPN
|
|
|
|
%config %{_sysconfdir}/NetworkManager/VPN/nm-strongswan-service.name
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/nm-strongswan-service.conf
|
|
|
|
|
|
|
|
%files gnome
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/NetworkManager/libnm-strongswan-properties.so
|
|
|
|
%{_libexecdir}/nm-strongswan-auth-dialog
|
2011-09-29 10:25:39 +02:00
|
|
|
%{_datadir}/gnome-vpn-properties/
|
2010-12-06 14:44:14 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|