File hp-vnet.spec of Package hp-vnet-11-1
Name: hp-vnet
BuildRequires: gcc-c++ kernel-source kernel-syms module-init-tools flex bison sysfsutils python-devel tud-l4env-devel
License: GPL v2
Group: System/Kernel
Version: 1825
Release: 1
Summary: HP-vnet userspace part
Source: hp-vnet-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%suse_kernel_module_package -n %{name}
%description
This package contains the userland utilities to make use of the HP-vnet
kernel module.
%package KMP
Summary: HP-vnet kernel part
Group: System/Kernel
%description KMP
This is the HP-vnet kernel module proper.
%package -n libvnet1
Summary: HP-vnet library
Group: System/Kernel
%description -n libvnet1
The library to utilise the HP-vnet kernel module.
%package devel
Summary: HP-vnet development library
Group: Development/Kernel
%description devel
Static library to build HP-vnet-using programs.
%prep
%setup
%build
make CFLAGS="$RPM_OPT_FLAGS" usertools_build
mkdir -p obj || true
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r ksrc obj/$flavor
# HACK: fix the l4 part of kernel-source / kernel-syms so that <asm/...>
# can resolve to headers in asm-i386
case $flavor in
l4*) ln -s /usr/src/linux/include/asm-i386 obj/$flavor/asm ;;
esac
make -C /usr/src/linux-obj/%_target_cpu/$flavor M=$PWD/obj/$flavor EXTRA_CFLAGS+=-I$PWD/obj/$flavor
done
%install
DESTDIR=%buildroot BINDIR=%_bindir LIBDIR=%_libdir make usertools_install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor M=$PWD/obj/$flavor \
modules_install
done
%clean
rm -rf %buildroot
%files
%defattr(-, root, root)
%_bindir/*
%files -n libvnet1
%defattr(-, root, root)
%_libdir/lib*.so*
%files devel
%defattr(044, root, root)
%_libdir/lib*.a
%post -n libvnet1
/sbin/ldconfig
%postun -n libvnet1
/sbin/ldconfig
%changelog -n hp-vnet
* Thu Apr 2 2009 - ramunno@polito.it
- bump version to 1602, snapshotting trunk in opentc svn
- fixed #ifdef preventing the building
* Tue Mar 31 2009 - ramunno@polito.it
- bump version to 1588, snapshotting trunk in opentc svn
- added many fixes and python interface for Resource Manager
- added changelog directive to this spec file: log entries from hp-vnet.changes
- deleted hp-vnet.changes
- added python-devel as requirement for building
- removed hp-vnet-user_install.patch from RPM (applied directly to SVN trunk)
- updates calls to make targets (because updated in Makefile files)
* Fri Feb 27 2009 - duwe@suse.de
- bump version to 1440, snapshotting trunk in opentc svn (version for 11.1)
* Tue Oct 28 2008 - draht@suse.de
- bump version to 810, snapshotting trunk in opentc svn
* Tue Jun 17 2008 - mmarek@suse.cz
- also package the kernel part
* Tue Jun 17 2008 - mmarek@suse.cz
- packaged the hp-vnet userspace part (rev 806)