#run: rpmbuild -ba --define='packager Your Name' --define 'dist .fc6' vde2.spec
Name:	 vde2
Version: 2.1.6
Release: 1%{?dist}
Summary: Virtual Distributed Ethernet
License: GPL
Group:   Networking/Other
Url:     http://vde.sourceforge.net/

Source0: http://prdownloads.sourceforge.net/vde/%{name}-%{version}.tar.bz2
Source1: README.fedora

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
BuildRequires: autoconf automake libtool
Requires:  libc.so.6(GLIBC_2.4), rpmlib(CompressedFileNames) <= 3.0.4-1, libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.0), libvde2, libc.so.6(GLIBC_2.1.3), rtld(GNU_HASH), rpmlib(PayloadFilesHavePrefix) <= 4.0-1, libvdeplug.so.2, libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4)
Obsoletes: vde <= 1.5.11
Provides:  vde = %{version}-%{release}

# do not end description with a ./dot/period
%description
 VDE is a virtual network that can be spawned over a set of physical computers over the Internet

 VDE connects together:
  (1) real GNU-linux boxes (tuntap)
  (2) virtual machines: UML-User Mode Linux, qemu, bochs, MPS.

 VDE can be used:
  (i) to create a general purpose tunnel
      (any protocol that runs over Ethernet can be put into the tunnel)
  (ii) to connect a set of virtual machines to the Internet with no
    need of free access of tuntap
  (iii) to support mobility: a VDE can stay interconnected despite
    of the change of virtual cables, i.e. the change of IP addresses
    and interface in the real world

 VDE2 includes: 
   VLAN and Fast Spanning Tree Protocol management
   run time configuration interface:
     (a console for interactive use, a control terminal for daemons)
   wirefilter, a configurable tool able to introduce:
     delays, packet loss, linut bandwidth and several other filtering features


%define libname lib%{name}

%package -n %{libname}
Summary: VDE libraries
Group:   Networking/Other

# do not end description with a ./dot/period
%description -n %{libname}
Library files for VDE


%package -n %{libname}-devel
Summary: VDE development libraries
Group:   Development/Other

# do not end description with a ./dot/period
%description -n %{libname}-devel
Development files (headers, libraries) for libvde


%prep
%setup -q
cp %SOURCE1 .

%build
%configure
make %{?_smp_mflags}  # from fedora spec template

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT  # from fedora spec template
#  %makeinstall  # do not use this form anymore

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libexecdir}/vdetap
%doc README README.fedora
%{_mandir}/man1/*.1*

%files -n %{libname}
%{_libdir}/libvde*.so.*

%files -n %{libname}-devel
%{_includedir}/libvde*.h
%{_libdir}/libvde*.so
%{_libdir}/libvde*.*a
%{_libdir}/vde2/libvde*.so
%{_libdir}/vde2/libvde*.*a

%changelog
* Fri Jun 01 2007 Gerry Reno <greno@verizon.net>
- Release 1
- first Fedora package


