openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 183 forks source link

configs/alp: add is_alp macro #938

Closed danishprakash closed 1 year ago

danishprakash commented 1 year ago

One of our use cases can do away with some of the complexity if is_alp were to be supported. If this is not planned for some reason, is there a way to identify builds on ALP and otherwise? Thanks

Vogtinator commented 1 year ago

You could just use %if 0%{suse_version} >= 1600 && !0%{?is_opensuse} instead

dirkmueller commented 1 year ago

I think currently "ALP" is == 1600. I am not sure we want to have a "is_alp" macro everywhere before the tracks and versioning scheme is clarified. I'm leaning towards not merging that until that is clearer (just to prevent use)

danishprakash commented 1 year ago

Thanks for the help, the above suggestions should do the job. Closing this PR.