Open lnussel opened 6 years ago
A question mostly for @adrianschroeter I guess :)
you could get that from the disturl, the packid is the last part behind the - if that helps you.
There is no "dot mode" in this regard, just package container contains a dot. You get the entire container name via
%disturl =~ s/.*\/[^-]*//
not sure rpm macros are powerful enough for that
Following situation:
Leap has
rubgem-arel
version8.0.0
, Factory hasrubygem-arel
version9.0.0
. We can't replacerubygem-arel
in Leap as it comes from SLE. So we need a parallel installable version. So far the approach to that is to copy the factory package torubygem-arel-9
, rename the spec file and in the spec file add%define mod_version_suffix -9
. So quite some work for an almost identical package. So I was wondering if the "magic dot" handling of obs could be used there. Ieosc sr openSUSE:Factory rubygem-arel openSUSE:Leap:15.1 rubygem-arel.9
Is there a way for the spec file to detect that it has this magic dot mode to activate the version suffix?