#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 Obsoletes: vde <= 1.5.11 Provides: vde = %{version}-%{release} %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 %description -n %{libname} Library files for VDE %package -n %{libname}-devel Summary: VDE development libraries Group: Development/Other Requires: %libname = %version-%release %description -n %{libname}-devel Development files (headers, libraries) for libvde %prep %setup -q cp %SOURCE1 . %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/* %{_libexecdir}/vdetap %doc README README.fedora %{_mandir}/man1/*.1* %files -n %{libname} %defattr(-,root,root,-) %{_libdir}/libvde*.so.* %files -n %{libname}-devel %defattr(-,root,root,-) %{_includedir}/libvde*.h %{_libdir}/libvde*.so %{_libdir}/libvde*.*a %dir %{_libdir}/vde2 %{_libdir}/vde2/libvde*.so %{_libdir}/vde2/libvde*.*a %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %changelog * Tue Jun 05 2007 Gerry Reno - Release 1 - first Fedora package