File ike.spec of Package ike
#
# spec file for package ike (Version 2.1.7)
#
# Copyright (c) 2010 SUSE LINUX Products 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: ike-qt3
Summary: The Shrew Soft VPN Client
Version: 2.1.7
Release: 1
Group: Productivity/Networking/Security
License: Copyleft
URL: http://www.shrew.net
#Source: http://www.shrew.net/download/ike/ike-2.1.6-release.tgz
Source: ike-%{version}-release.tar.bz2
Patch0: ike-2.1.6-cmake.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison >= 2.3
BuildRequires: cmake >= 2.4
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: libedit-devel
BuildRequires: openldap2-devel
%if 0%{?suse_version} >= 1500
BuildRequires: libopenssl-1_0_0-devel -libopenssl-devel -openssl-1_1
%else
BuildRequires: openssl-devel
%endif
BuildRequires: qt3-devel
Requires: qt3
Obsoletes: ike
%description
The Shrew Soft VPN Client for Unix is a free IPsec Client for FreeBSD,
NetBSD and Linux based operating systems. It was originally developed
to provide secure communications between mobile Windows hosts and
open source VPN gateways that utilize standards compliant software
such as ipsec-tools, OpenSWAN, FreeSWAN, StrongSWAN, isakmpd. It now
offers many of the advanced features only found in expensive commercial
software solutions and provides compatibility for VPN appliances
produced by vendors such as Cisco, Juniper, Checkpoint, Fortinet,
Netgear, Linksys, Zywall and many others. It supports most of the
features availalble in the Windows VPN Client version with the
exception of those which are not cross platform compatible.
%package doc
Summary: The Shrew Soft VPN Client docu
Group: Productivity/Networking/Security
%description doc
The Shrew Soft VPN Client documentation.
%prep
%setup -q -n ike
sed -i 498i\ 'return false;' source/iked/ike.socket.cpp
sed -i 's|define \"parser_class_name\"|define parser_class_name|g' source/iked/conf.parse.yy
%patch0 -p1
#rpmlint: wrong-file-end-of-line-encoding
pushd docs
for file in $(ls -1); do
%{__perl} -p -i -e 's/\r\n/\n/g' "$file"
done
popd
%build
cmake . -DPREFIX=%{_prefix} \
-DETCDIR=%{_sysconfdir} \
-DLIBDIR=%{_libdir} \
-DMANDIR=%{_mandir} \
-DNATT=YES \
-DLDAP=YES \
-DQTGUI=YES \
-DCMAKE_CXX_FLAGS:STRING='%{optflags} -fPIC' \
-DCMAKE_C_FLAGS:STRING='%{optflags} -fPIC'
%{__make} VERBOSE=1 %{?_smp_mflags}
%install
%makeinstall
# mv sample file to conf
%{__mv} $RPM_BUILD_ROOT/%{_sysconfdir}/iked.conf.sample \
$RPM_BUILD_ROOT/%{_sysconfdir}/iked.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc LICENSE.TXT README.TXT source/iked/iked.conf.sample
%config %{_sysconfdir}/iked.conf
%{_mandir}/man?/*
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/*.so*
%files doc
%defattr(-,root,root,-)
%doc docs/*
%changelog