Hide Forgot
Description of problem: I'd like to add: Requires: httpd or lighttpd in my package. If I do "Requires: webserver" it adds some options that I don't support (like nginx, which doesn't support cgi). Version-Release number of selected component (if applicable): How reproducible: Try to create an rpm that requires either one of two packages (or more). Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: I'll take a crack at adding this myself after I get some other things done first.
spoke to the devs on #rpm.org and this one isn't a good first bug. Seems boolean logic would be a lot harder to add than I thought. It would also need to be added in other places too (like yum). I'm handing this back to the default assignee, at least until I feel comfortable w/ adding this myself. I'm imagining that I'm an edge case, so I'm marking this as a low priority. If someone else would like to see this added, then people make a comment and change the priority to normal.
Actually this is one of the more popular rpm feature requests. But yes it's not that simple and would require support from yum & all and I just dont see this happening in rhel-6 lifetime -> nak. The conditional in this case can be accomplished with a couple of extra (meta-)packages: you could add two sub-packages, eg mypkg-httpd and mypkg-lighttpd which both provide 'mypkg-webserver', and then have the main package require that. It's of course more cumbersome than being able to just say "Requires: httpd or lighttpd" but doable, and works with every old rpm version out there. If you're interested in rpm development (as it appears from your comments) in general, the appropriate place for related discussions and suggestions is upstream mailing lists etc at rpm.org.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.
My apologies, as I originally thought this was upstream. After talking with Panu I've resubmitted this bug to the appropriate bts: http://rpm.org/ticket/853