%define ver 20070815 Name: uml_utilities Version: %{ver} Release: 2%{?dist} License: GPLv2+ URL: http://user-mode-linux.sourceforge.net/index.html Source0: http://user-mode-linux.sourceforge.net/%{name}/%{name}_%{ver}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: fuse-devel, readline-devel, ncurses-devel Group: Applications/Internet Summary: Utilities for user-mode linux kernel %description This package contains the utilities for user-mode linux for networking, COW, etc. %prep %setup -q -n tools-%{ver} %build %{__make} %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT # Makefiles do hardcoded stripping, breaking debug package for mfile in */Makefile; do sed -i "s/install -s/install /" $mfile; done make install DESTDIR=$RPM_BUILD_ROOT # we need port-helper in the path mylib=`echo %{_libdir} | sed "s/\/usr//"` ln -s ..$mylib/uml/port-helper $RPM_BUILD_ROOT%{_bindir}/port-helper %files %defattr(-,root,root,-) %doc COPYING Changelog %attr(755,root,root) %dir %{_libdir}/uml %attr(4755,root,root) %{_bindir}/uml_net %{_bindir}/jailtest %{_bindir}/tunctl %{_bindir}/uml_mconsole %{_bindir}/uml_moo %{_bindir}/uml_switch %{_bindir}/uml_mkcow %{_bindir}/uml_watchdog %{_bindir}/port-helper %{_libdir}/uml/port-helper #%attr(755,root,root) %{_libdir}/uml/functions #%attr(755,root,root) %{_bindir}/mkrootfs #paul these were missing %{_bindir}/uml_mount %{_sbindir}/jail_uml %{_bindir}/humfsify %clean rm -rf ${RPM_BUILD_ROOT} %changelog * Sun Nov 2 2008 Paul Wouters - 20070815-2 - Added -q to setup * Sat Nov 1 2008 Paul Wouters - 20070815-1 - Was pointed to newer version of source at obscured location - Hack out hardcoded stripping of binaries - -D_FILE_OFFSET_BITS=64 no longer needed * Tue Oct 28 2008 Paul Wouters - 20060622-2 - Added a link to port-helper, so it is in the path * Fri Oct 24 2008 Paul Wouters - 20060622-1 - Initial package based on spec file in the sourcecode