Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. = prjconf =
  2. Macros:
  3. %with_MYVAR %%nosuchvar
  4.  
  5. = spec =
  6. %bcond_with MYVAR
  7.  
  8. %prep
  9. echo "with_MYVAR:%{with_MYVAR}"
  10. %if %{with MYVAR}
  11. echo "with_MYVAR is set!"
  12. %else
  13. echo "with_MYVAR is *not* set!"
  14. %endif
  15. exit 1
  16.  
  17. = osc build =
  18. [ 6s] + echo with_MYVAR:%nosuchvar
  19. [ 6s] with_MYVAR:%nosuchvar
  20. [ 6s] + echo 'with_MYVAR is set!'
  21. [ 6s] with_MYVAR is set!
  22. [ 6s] + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement