Check ifarch and ifnarch
This commit is contained in:
parent
196c93ccab
commit
e72ddcf825
@ -12,7 +12,6 @@ Release: 0.21%{?dist}
|
|||||||
Summary: %{distro} release files
|
Summary: %{distro} release files
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
URL: https://almalinux.org
|
URL: https://almalinux.org
|
||||||
ExclusiveArch: x86_64_v2
|
|
||||||
|
|
||||||
Provides: centos-release = %{version}-%{release}
|
Provides: centos-release = %{version}-%{release}
|
||||||
Provides: centos-stream-release = %{version}-%{release}
|
Provides: centos-stream-release = %{version}-%{release}
|
||||||
@ -106,6 +105,53 @@ This package provides the package repository files for %{distro}.
|
|||||||
This package provides the RPM signature keys for %{distro}.
|
This package provides the RPM signature keys for %{distro}.
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
echo "ifarch x86_64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch x86_64_v2
|
||||||
|
echo "in ifarch x86_64_v2"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch x86_64_v2 x86_64
|
||||||
|
echo "in ifarch x86_64_v2 x86_64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch ppc64le x86_64
|
||||||
|
echo "in ifarch ppc64le x86_64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch x86_64 aarch64
|
||||||
|
echo "in ifarch x86_64 aarch64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifnarch x86_64
|
||||||
|
echo "in ifnarch x86_64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifnarch x86_64 aarch64
|
||||||
|
echo "in ifnarch x86_64 aarch64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifnarch x86_64_v2
|
||||||
|
echo "in ifnarch x86_64_v2"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch aarch64
|
||||||
|
echo "ifarch aarch64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch ppc64le
|
||||||
|
echo "ifarch ppc64le"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifnarch aarch64
|
||||||
|
echo "ifnarch aarch64"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|
||||||
# copy license and contributors doc here for %%license and %%doc macros
|
# copy license and contributors doc here for %%license and %%doc macros
|
||||||
mkdir -p ./docs
|
mkdir -p ./docs
|
||||||
cp %{SOURCE201} ./docs
|
cp %{SOURCE201} ./docs
|
||||||
|
Loading…
Reference in New Issue
Block a user