subpackage - how to specify noarch?
All, I have two editors that I have created rpms for. Both rely on the same additional language-specs for gtksourceview, so I just separated those files into a subpackage for packaging purposes. I want the subpackge to be noarch. I've tried adding BuildArch: noarch to the subpackage declaration block, but that doesn't work. Currently I have: %package -n gtksv2-lang-extra Version: 1.0 Summary: Additional syntax files for GtkSourceView2 License: GPL-2.0+ Group: GTK %description -n gtksv2-lang-extra Additional syntax files for GtkSourceView2 (asm-intel, xorg, qmake, gnuplot, apache) BuildArch: noarch <snip> %files -n gtksv2-lang-extra /usr/share/gtksourceview-2.0/language-specs/apache.lang /usr/share/gtksourceview-2.0/language-specs/asm-intel.lang /usr/share/gtksourceview-2.0/language-specs/gnuplot.lang /usr/share/gtksourceview-2.0/language-specs/qmake.lang /usr/share/gtksourceview-2.0/language-specs/xorg.conf.lang I looked at %lang_package, but if I attempt to use %lang_package instead of %package, the build fails saying the subpackage can't be found. What's the trick to create the subpackage as noarch? -- David C. Rankin, J.D.,P.E.
On Fri, 2022-06-03 at 02:13 -0500, David C. Rankin wrote:
All,
I have two editors that I have created rpms for. Both rely on the same additional language-specs for gtksourceview, so I just separated those files into a subpackage for packaging purposes. I want the subpackge to be noarch. I've tried adding BuildArch: noarch to the subpackage declaration block, but that doesn't work.
Currently I have:
%package -n gtksv2-lang-extra Version: 1.0 Summary: Additional syntax files for GtkSourceView2 License: GPL-2.0+ Group: GTK %description -n gtksv2-lang-extra Additional syntax files for GtkSourceView2 (asm-intel, xorg, qmake, gnuplot, apache) BuildArch: noarch
<snip>
BuildArch: noarch would be the correct thing - BUT you should put it into the %package definition, not in the %description Cheers, Dominique
participants (2)
-
David C. Rankin
-
Dominique Leuenberger / DimStar