[opensuse-packaging] how to disable build of noarch packages on certain architectures

Hi, Dirk did the following submit request: dmueller@suse.com píše v Po 05. 03. 2012 v 21:27 +0000:
openSUSE:Factory:ARM/libreoffice-l10n -> LibreOffice:Unstable/libreoffice-l10n
https://build.opensuse.org/request/show/108052
Description: - exclude from build on ARM
--- libreoffice-l10n.spec +++ libreoffice-l10n.spec @@ -63,10 +60,9 @@ # FIXME: the l10n files includes some duplicated files Source200: libreoffice-l10n-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build -#!ExclusiveArch: %ix86 x86_64 ppc +ExclusiveArch: %ix86 x86_64 ppc BuildArch: noarch
It looked reasonable but it caused the following build error: + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/LibreOffice:Unstable/openSUSE_11.4/23e1ba7955fe2e7e229fea9041b8fb33-libreoffice-l10n' --eval %suse_insert_debug_package /usr/src/packages/SOURCES/libreoffice-l10n.spec error: Architecture is not included: noarch It seems that Fedora was in the same trap, see http://www.redhat.com/archives/fedora-maintainers/2007-May/msg00711.html I do not remember who suggested the commented out #!ExclusiveArch: I have added it few years ago (2009). I guess that it does not work. Otherwise, Dirk would not create the submit request. Is there any working solution, please? Best Regards, Petr -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Tuesday 06 March 2012, Petr Mladek wrote:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/LibreOffice:Unstable/openSUSE_11.4/23e1ba7955fe2e7 e229fea9041b8fb33-libreoffice-l10n' --eval %suse_insert_debug_package /usr/src/packages/SOURCES/libreoffice-l10n.spec error: Architecture is not included: noarch
ah, okay, sorry. does it work if you add noarch to it as well? I only tested on arm, where it did work. feel free to revert my submitrequest, I'll try to come up with a different solution if above does not work. Thanks, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Dirk Müller píše v Út 06. 03. 2012 v 13:26 +0100:
On Tuesday 06 March 2012, Petr Mladek wrote:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/LibreOffice:Unstable/openSUSE_11.4/23e1ba7955fe2e7 e229fea9041b8fb33-libreoffice-l10n' --eval %suse_insert_debug_package /usr/src/packages/SOURCES/libreoffice-l10n.spec error: Architecture is not included: noarch
ah, okay, sorry. does it work if you add noarch to it as well?
I haven't tried it. It looks a bit weird :-)
I only tested on arm, where it did work. feel free to revert my submitrequest, I'll try to come up with a different solution if above does not work.
Could you please try ExcludeArch? It is suggested at http://www.redhat.com/archives/fedora-maintainers/2007-May/msg00738.html Best Regards, Petr -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Dirk Müller
-
Petr Mladek