Changeset 2841

Show
Ignore:
Timestamp:
06/26/09 02:30:59 (9 months ago)
Author:
dhozac
Message:

Make the specfile work on Mandriva 2009.1.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/util-vserver.spec.in

    r2807 r2841  
    1010## --without doc             ...   disable doc generation 
    1111## --with legacy             ...   enable the legacy APIs 
     12## --without python          ...   disable the Python bindings 
    1213 
    1314%global confdir         %_sysconfdir/vservers 
     
    2122%global ver             %( echo %fullver | sed 's/-.*//' ) 
    2223%global subver          %( s=`echo %fullver | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} ) 
     24 
     25 
     26# Mandriva does funky stuff that break us. 
     27%if %{?mandriva_release:1}%{!?mandriva_release:0} 
     28%global mandriva                        1 
     29%global _disable_libtoolize             1 
     30%global _disable_ld_as_needed           1 
     31%global _disable_ld_no_undefined        1 
     32%global before_configure        \ 
     33        %setup_compile_flags    \ 
     34        CONFIGURE_TOP="${CONFIGURE_TOP:-.}" 
     35%endif 
    2336 
    2437 
     
    4154Provides:       vserver = %version-%release 
    4255Obsoletes:      vserver < %version 
    43 BuildRequires:  mount vconfig gawk iproute iptables 
     56BuildRequires:  mount vconfig gawk /sbin/ip iptables 
    4457BuildRequires:  gcc-c++ wget which diffutils 
    4558BuildRequires:  e2fsprogs-devel e2fsprogs