NetworkManager-strongswan/NetworkManager-strongswan.spec
Bjørn Lie 4205bd65b7 Accepting request 311401 from home:dimstar:branches:GNOME:Factory
- Drop the sed hack to fix bnc#824079: since verson 1.3.1, the
  charon binary to be found is already called charon-nm by
  upstream (boo#934129).
- Clean out conditions for legacy openSUSE versions: we will always
  require strongswan > 5 as a consequence (which is correct, as
  that's when charon-nm was introduced).

OBS-URL: https://build.opensuse.org/request/show/311401
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/NetworkManager-strongswan?expand=0&rev=14
2015-06-10 10:57:48 +00:00

97 lines
3.0 KiB
RPMSpec

#
# spec file for package NetworkManager-strongswan
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
Version: 1.3.1
Release: 0
Summary: NetworkManager VPN support for strongSwan
License: GPL-2.0+
Group: Productivity/Networking/System
Url: http://www.strongswan.org/
Source0: http://download.strongswan.org/NetworkManager/%{name}-%{version}.tar.bz2
Source1: README
# PATCH-FIX-UPSTREAM nm-strongswan-service-conf.patch binli@opensuse.org -- Dismiss the rpmlint warning for 'send_interface'
Patch0: nm-strongswan-service-conf.patch
BuildRequires: intltool
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)
Requires: %{name}-frontend
Requires: NetworkManager >= 0.9.0
Requires: strongswan-nm >= 5.0.1
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
cp %{SOURCE1} README.SUSE
%build
%configure\
--disable-static \
--disable-more-warnings
%__make %{?_smp_flags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.SUSE
%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
%{_datadir}/gnome-vpn-properties/
%files lang -f %{name}.lang
%changelog