File mipv6d.spec of Package mipv6d
#
# spec file for package mipv6d
#
# Copyright (c) 2013 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: mipv6d
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: indent
BuildRequires: openssl-devel
%if 0%{?suse_version} > 1140
BuildRequires: libnl-1_1-devel
%else
BuildRequires: libnl-devel
%endif
Url: http://umip.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: MIPL - Mobile IPv6 for Linux
License: GPL-2.0
Group: Productivity/Networking/Other
Version: 2.0.2.umip.0.4
Release: 0
Source0: mipv6-2.0.2-umip-0.4.tar.bz2
Source1: mipv6d.init
%description
MIPL Mobile IPv6 for Linux is an implementation of the Mobility Support
in IP version 6 (RFC 3775).
This user space part works together with Mobile IPv6 enabled Linux
kernels. See INSTALL and any other documents referred there for
installation instructions and required kernel compile options.
MIPL Mobile IPv6 for Linux has been developed in the GO-Core Project at
the Helsinki University of Technology. See AUTHORS for core
development team and THANKS for complete listing of contributors.
Authors:
--------
Ville Nuorvala <vnuorval@tcs.hut.fi>
Antti J. Tuominen <anttit@tcs.hut.fi>
NEMO support:
Romain KUNTZ <kuntz@lsiit.u-strasbg.fr>
Sebastien DECUGIS
Arnaud EBALARD
%prep
%setup -q -n mipv6-2.0.2-umip-0.4
%build
aclocal
autoheader
automake --foreign --copy --add-missing
autoconf
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
--disable-debug \
--prefix=/usr \
--sysconfdir=/etc
make clean
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
install -m0755 $RPM_SOURCE_DIR/mipv6d.init \
$RPM_BUILD_ROOT%{_sysconfdir}/init.d/mipv6d
ln -sf %{_sysconfdir}/init.d/mipv6d \
$RPM_BUILD_ROOT%{_sbindir}/rcmipv6d
touch $RPM_BUILD_ROOT%{_sysconfdir}/mip6d.conf
%post
%{?fillup_and_insserv:%fillup_and_insserv -f -n mipv6d}
%preun
%{?stop_on_removal:%stop_on_removal mipv6d}
%postun
%{?insserv_cleanup:%insserv_cleanup}
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING README INSTALL INSTALL.kernel README.IPsec NEWS
%doc extras/*
%doc licenses/*
%doc /usr/share/man/man1/mip6d.1.gz
%doc /usr/share/man/man5/mip6d.conf.5.gz
%doc /usr/share/man/man7/mipv6.7.gz
%ghost %config(noreplace) %attr(600,root,root) %{_sysconfdir}/mip6d.conf
%{_sysconfdir}/init.d/mipv6d
%{_sbindir}/mip6d
%{_sbindir}/rcmipv6d
%changelog