File novell-nortelplugins.spec of Package novell-nortelplugins
#
# spec file for package novell-nortelplugins
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: novell-nortelplugins
BuildRequires: libbonoboui-devel libgcrypt-devel libglade2-devel libopenssl-devel libtool novell-ipsec-tools-devel turnpike
Summary: Plugins for IKE using turnpike enabled IPSec-tools
Version: 0.1.4
Release: 1
License: GPL-2.0+
Group: Productivity/Networking/Security
Source: %{name}-%{version}.tar.bz2
Patch0: novell-nortelplugins-no-static.patch
Patch1: %{name}-mtu-advmss.patch
Url: http://forge.novell.com/modules/xfmod/project/?turnpike
Requires: novell-ipsec-tools >= 0.7
Requires: turnpike
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArchitectures: noarch
#ExclusiveArch: %ix86
%define plugindir %prefix/lib/turnpike/plugins
%description
These are plugin packages to be used by turnpike enabled IKE through
ipsec-tools
Authors:
--------
Bin Li
Sureshkumar T
A Aravindhan
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
autoreconf -i -f
%define plugindir %{_prefix}/lib/turnpike/plugins
export CFLAGS="$RPM_OPT_FLAGS"
%configure \
--with-plugindir=%{plugindir}
make CFLAGS="$RPM_OPT_FLAGS"
%install
make install DESTDIR=%{buildroot}
rm %{buildroot}%{plugindir}/*.la
rm %{buildroot}%{plugindir}/*.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{plugindir}
%{plugindir}/ipalias
%{plugindir}/dnsupdate
%{plugindir}/libnortel.so*
%{plugindir}/libclinortel.so*
%{plugindir}/libguinortel.so*
%changelog