Skip to content

Commit b9cdb40

Browse files
rohityadavclouddhslove
authored andcommitted
packaging: have noarch defined for rpms (apache#10057)
Signed-off-by: Rohit Yadav <[email protected]>
1 parent 0718061 commit b9cdb40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packaging/centos7/cloud.spec

Lines changed: 4 additions & 1 deletion
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
@@ -38,6 +40,7 @@ Group: System Environment/Libraries
3840
# FIXME do groups for every single one of the subpackages
3941
Source0: %{name}-%{_maventag}.tgz
4042
BuildRoot: %{_tmppath}/%{name}-%{_maventag}-%{release}-build
43+
BuildArch: noarch
4144

4245
BuildRequires: java-11-openjdk-devel
4346
BuildRequires: ws-commons-util
@@ -127,7 +130,7 @@ Requires: qemu-kvm
127130
Requires: cryptsetup
128131
Requires: rng-tools
129132
Requires: (libgcrypt > 1.8.3 or libgcrypt20)
130-
Requires: (selinux-tools if qemu-tools)
133+
Requires: (selinux-tools if selinux-tools)
131134
Requires: sysstat
132135
Provides: cloud-agent
133136
Group: System Environment/Libraries

0 commit comments

Comments
 (0)