Hello.

I`m try build some packages on https://build.opensuse.org and have a question.

How I can properly tag my packages?

I try in my .spec files:

Code:
Release:       1%{?dist}
but after build, I get packages with equal names for different distributions. For example:
Code:
asterisk-13.21.cert2-15.1.x86_64.rpm
for both openSUSE Leap 15.0 and CentOS 7.

It seems that macros {?dist} didnt work. Builder just remove anything, what I wrote into Release: tag. Like this:
Code:
[   90s] I have the following modifications for asterisk.spec:
[   90s] 22c22
[   90s] < Release:       1%{?dist}
[   90s] ---
[   90s] > Release:       15.1
I need:
Code:
asterisk-13.21.cert2-lp150.15.1.x86_64.rpm - for openSUSE Leap 15.0
asterisk-13.21.cert2-15.1.el7.x86_64.rpm - for CentOS 7
P.S. I always read about "magic" string in .spec file: <CI_CNT>.<B_CNT>, but this still not working for me.

Thanks a lot.