File novell-nortelplugins.spec of Package novell-nortelplugins
#
# spec file for package novell-nortelplugins (Version 0.1.3)
#
# Copyright (c) 2009 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 novell-ipsec-tools-devel turnpike
%define prefix /usr
%define sysconfdir /etc%prefix
%define plugindir %prefix/lib/turnpike/plugins
Summary: Plugins for IKE using turnpike enabled IPSec-tools
Version: 0.1.3
Release: 108.<RELEASE2>
License: GPL v2 or later
Group: Productivity/Networking/Security
Source: %{name}-%{version}.tar.gz
Url: http://www.novell.com/
Patch0: %{name}-ipalias_wrong_mtu_and_route.patch
Patch1: %{name}-get_encflag.patch
Patch2: %{name}-ppc_support.patch
Patch3: %{name}-routelist.patch
Patch4: %{name}-get_dev.patch
Patch5: %{name}-support_ipsec.patch
Requires: novell-ipsec-tools >= 0.6
Requires: turnpike
Requires: kernel >= 2.5.54
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#NoSource: 0
#BuildArchitectures: noarch
#ExclusiveArch: %ix86
%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
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
CFLAGS="$RPM_OPT_FLAGS -I%{prefix}/include" \
./configure \
--prefix=%{prefix} \
--exec-prefix=%{prefix} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--sysconfdir=%{sysconfdir} \
--sharedstatedir=/var/run \
--localstatedir=/var \
--mandir=%{prefix}/share/man \
--infodir=%{prefix}/share/info \
--libdir=%{plugindir} \
--libexecdir=%{plugindir} \
--with-plugindir=%{plugindir}
make
%install
rm -rf %{buildroot}
mkdir %{buildroot}
make install DESTDIR=%{buildroot}
rm %{buildroot}%{plugindir}/*.la
rm %{buildroot}%{plugindir}/*.a
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{plugindir}
%{plugindir}
%changelog