私のrpmbuildが.fc30ではなく%{dist}.fc30.fc30であるのはなぜですか?

私のrpmbuildが.fc30ではなく%{dist}.fc30.fc30であるのはなぜですか?

ファイルがあります.spec

Name:           somefile
Version:        1.0.0
Release:        1%{?dist}
...

RPMの結果は次のとおりです。

somefile-1.0.0-1.fc30.fc30.noarch.rpm

なぜ2回%{dist}申請するのです.fc30か?削除すると%{dist}ファイルが残ります。

somefile-1.0.0-1.noarch.rpm

%{dist}予想通り、rpmに関しては次のようになります.fc30

$ rpm --eval %{dist}
.fc30

修正する

最後の部分が何でも繰り返されるようです。

Release:        1.123

これは私にファイルを提供します:somefile-1.0.0-1.123.123.noarch.rpm


修正する

これはdistマクロの結果のようです:

$ rpm --showrc | grep ' dist'
-13: dist   %{?distprefix}.fc30%{?with_bootstrap:~bootstrap}

私が間違って使用したのでしょうか?

ベストアンサー1

おすすめ記事