このコンテンツは選択した言語では利用できません。
2.10.3. Converting Subpackages
For any subpackages that define their name with the
-n
option, prefix their name with %{?scl_prefix}
, as in the following example:
%package -n %{?scl_prefix}more
Prefixing applies not only to the
%package
macro, but also for %description
and %files
. For example:
%description -n %{?scl_prefix}rubygems RubyGems is the Ruby standard for publishing and managing third party libraries.
In case the subpackage requires the main package, make sure to also adjust the
Requires
tag in that subpackage so that the tag uses %{?scl_prefix}%{pkg_name}
. For example:
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}