Feature changed by: Pascal Bleser (pbleser) Feature #310198, revision 3 Title: Allow for non version specific distro specific spec files Buildservice: Unconfirmed Priority Requester: Important Requested by: Stephen Shaw (decriptor) Description: Its nice that you can create a spec file that is specific to a distro and release, ie packages-openSUSE_11.3.spec and packages-Fedora_13. spec, but it would be really nice if I could have something like this: packages-openSUSE.spec (catch all for all openSUSE based repositories) packages-openSUSE_11.3.spec (this would take precedence over packages- openSUSE.spec) packages-Fedora.spec (catch all for all Fedora based repositories) packages-Fedora_12.spec (this would take precedence over packages- Fedora.spec) The idea is that a spec file for openSUSE might differ enough from an Fedora spec file and there are 2 openSUSE repositories and 2 Fedora repositories. By doing this I'd only really need 2 spec files instead of 4. + Discussion: + #1: Pascal Bleser (pbleser) (2010-07-24 13:25:13) + I've yet to see use cases where that would make sense, as you're better + off handling the minor differences between e.g. openSUSE versions with + conditionals (%if .. %endif). + Separate spec files really only make sense when 90% of the spec file + differs, because they have the huge drawback of requiring to be kept in + sync (same %description, same Summary, same URL, same Copyright, same % + build, same %install, almost same %files (but there are macros like % + {ext_man} for that), etc...) + Personally, I believe that per-distribution spec files are really not + compelling as they make up for a lot more work than using conditionals + -- even though those conditionals can get ugly at times, no question + about that. + IMHO, the best approach would actually to have more macros that handle + some/most of the differences between the RPM based distributions we + have in the OBS in a comfortable way. -- openSUSE Feature: https://features.opensuse.org/310198