]> git.pld-linux.org Git - packages/iproute2.git/blobdiff - iproute2.spec
- wrr has now similar bcond as there is for efsq already
[packages/iproute2.git] / iproute2.spec
index e28a213f0fff4877314d5d37d72c163aa9af8c0b..458a305682c8ce42aba68298a854ce218e2128f1 100644 (file)
@@ -3,7 +3,8 @@
 # _without_tetex       - don't build documentation
 # _without_tc          - don't build tc program (it breaks static linkage)
 # _without_tc_esfq     - build tc without esfq support (requires patched headers)
-#
+# _without_tc_wrr      - build tc without wrr support
+
 %define                _kernel24       %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
 
 %define mainver                2.4.7
@@ -107,7 +108,7 @@ a przestrzeni
 
 %build
 WRRDEF=""
-grep -q tc_wrr_class_weight %{_kernelsrcdir}/include/linux/pkt_sched.h || WRRDEF="-DNEED_WRR_DEFS"
+%{!?_without_tc_wrr:WRRDEF="-DNEED_WRR_DEFS"}
 
 %{__make} \
        CC="%{__cc}" \
This page took 0.077724 seconds and 4 git commands to generate.