Description of problem: It is currently impossible to define the DISTTAG tag using the %{disttag} macro. We would like to utilize this tag to store module build information, in addition to DISTRIBUTION. Version-Release number of selected component (if applicable): rpm-4.14.1-9.fc28.x86_64 How reproducible: Always. Steps to Reproduce: 1. Define %disttag in your ~/.rpmmacros 2. Build an RPM 3. Check for its presence with rpm -q --qf '%{disttag}\n' Actual results: DISTTAG is not defined. Expected results: DISTTAG is defined. Additional info: This is supposedly going into 4.14.2 but, if possible, we would like to have this sooner as it's blocking MBS changes.
This should be fixed in rawhide now (rpm >= 4.14.2-rc1)
FWIW, confirmed.
Re-opening because I've just noticed that it still doesn't work for SRPMs. %distribution does, for example. Binary RPMs are fine.
Right, it's indeed not among the tags that are copied to src.rpm. Fixed upstream now: https://github.com/rpm-software-management/rpm/commit/9296916dddc922b0459929681452c657df4fe69e
Copying to src.rpm added in rpm >= 4.14.2-rc2 now in rawhide so closing again.