Skip to content

Commit 96b757c

Browse files
packaging: have noarch defined for rpms (#10057)
Signed-off-by: Rohit Yadav <[email protected]>
1 parent 5167c3b commit 96b757c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packaging/el8/cloud.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
%define __os_install_post %{nil}
1919
%global debug_package %{nil}
20+
%global __requires_exclude libc\\.so\\..*
21+
%define _binaries_in_noarch_packages_terminate_build 0
2022

2123
# DISABLE the post-percentinstall java repacking and line number stripping
2224
# we need to find a way to just disable the java repacking and line number stripping, but not the autodeps
@@ -35,6 +37,7 @@ Group: System Environment/Libraries
3537
# FIXME do groups for every single one of the subpackages
3638
Source0: %{name}-%{_maventag}.tgz
3739
BuildRoot: %{_tmppath}/%{name}-%{_maventag}-%{release}-build
40+
BuildArch: noarch
3841

3942
BuildRequires: (java-11-openjdk-devel or java-17-openjdk-devel)
4043
#BuildRequires: ws-commons-util
@@ -117,7 +120,7 @@ Requires: qemu-kvm
117120
Requires: cryptsetup
118121
Requires: rng-tools
119122
Requires: (libgcrypt > 1.8.3 or libgcrypt20)
120-
Requires: (selinux-tools if qemu-tools)
123+
Requires: (selinux-tools if selinux-tools)
121124
Requires: sysstat
122125
Provides: cloud-agent
123126
Group: System Environment/Libraries

0 commit comments

Comments
 (0)